Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871252 - app-antivirus/clamav-0.105.1 - /.../crypto.c: error: implicit declaration of function strptime [-Werror,-Wimplicit-function-declar
Summary: app-antivirus/clamav-0.105.1 - /.../crypto.c: error: implicit declaration of ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Antivirus Team
URL:
Whiteboard: fixed in ???
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-18 10:03 UTC by Toralf Förster
Modified: 2024-10-27 11:47 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.39 KB, text/plain)
2022-09-18 10:03 UTC, Toralf Förster
Details
app-antivirus:clamav-0.105.1:20220918-095957.log (app-antivirus:clamav-0.105.1:20220918-095957.log,105.91 KB, text/plain)
2022-09-18 10:03 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,3.78 KB, application/x-bzip)
2022-09-18 10:03 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,212.03 KB, text/plain)
2022-09-18 10:03 UTC, Toralf Förster
Details
environment (environment,144.84 KB, text/plain)
2022-09-18 10:03 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,14.18 KB, application/x-bzip)
2022-09-18 10:03 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,8.60 KB, application/x-bzip)
2022-09-18 10:03 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,43.93 KB, application/x-bzip)
2022-09-18 10:03 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-09-18 10:03:24 UTC
too long lines were shrinked:

1 warning generated.
[67/220] /var/tmp/portage/app-antivirus/clamav-0.105.1/temp/clang -DHAVE_CONFIG_H -DTFM_CHECK -DTFM_NO_ASM -DTHIS_IS_LIBCLAMAV -Dclamav_EXPORTS -I/var/tmp/portage/app-antivirus/clamav-0.105.1/work/clamav-0.105.1_build/libclamav -I/var/tmp/portage/app-antivirus/clamav-0.105.1/work/clamav-0.105.1/libc
FAILED: libclamav/CMakeFiles/clamav.dir/crypto.c.o 
/var/tmp/portage/app-antivirus/clamav-0.105.1/temp/clang -DHAVE_CONFIG_H -DTFM_CHECK -DTFM_NO_ASM -DTHIS_IS_LIBCLAMAV -Dclamav_EXPORTS -I/var/tmp/portage/app-antivirus/clamav-0.105.1/work/clamav-0.105.1_build/libclamav -I/var/tmp/portage/app-antivirus/clamav-0.105.1/work/clamav-0.105.1/libclamunrar_
/var/tmp/portage/app-antivirus/clamav-0.105.1/work/clamav-0.105.1/libclamav/crypto.c:1100:10: error: implicit declaration of function 'strptime' [-Werror,-Wimplicit-function-declaration]
    if (!strptime(str, fmt, t)) {
         ^

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20220915-203738

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit 4737e48d935a07ae10cdeb0bcba4f17c85f93223
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 18 08:46:57 2022 +0000

    2022-09-18 08:46:56 UTC

emerge -qpvO app-antivirus/clamav
[ebuild  N    ] app-antivirus/clamav-0.105.1  USE="clamapp -clamonacc -doc -experimental (-jit) -libclamav-only -milter -rar (-selinux) -systemd -test"
Comment 1 Toralf Förster gentoo-dev 2022-09-18 10:03:25 UTC
Created attachment 810781 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-18 10:03:26 UTC
Created attachment 810784 [details]
app-antivirus:clamav-0.105.1:20220918-095957.log
Comment 3 Toralf Förster gentoo-dev 2022-09-18 10:03:27 UTC
Created attachment 810787 [details]
clang.tar.bz2
Comment 4 Toralf Förster gentoo-dev 2022-09-18 10:03:28 UTC
Created attachment 810790 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2022-09-18 10:03:30 UTC
Created attachment 810793 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2022-09-18 10:03:31 UTC
Created attachment 810796 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-18 10:03:32 UTC
Created attachment 810799 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-09-18 10:03:33 UTC
Created attachment 810802 [details]
temp.tar.bz2
Comment 9 Thomas Raschbacher gentoo-dev 2022-09-19 06:54:14 UTC
Just a quick guess is that it might be something similar to this: 
https://stackoverflow.com/questions/15334558/compiler-gets-warnings-when-using-strptime-function-c
(i know that is about a warning, but maybe some change in clang .. will look into it later, but if someone who knows more about clang has clues please let me know)
Comment 10 Thomas Raschbacher gentoo-dev 2022-09-23 12:47:48 UTC
It compiled just fine with LLVM and CLANG 15.0.1 here will have to see if I can somehow reproduce it or figure out what is causing it
Comment 11 Michael Orlitzky gentoo-dev 2022-09-23 20:46:26 UTC
(In reply to Thomas Raschbacher from comment #10)
> It compiled just fine with LLVM and CLANG 15.0.1 here will have to see if I
> can somehow reproduce it or figure out what is causing it

clang-16 enables these flags by default:

* -Werror=implicit-function-declaration
* -Werror=implicit-int
* -Werror=strict-prototypes

it's probably one of those that causes the build to fail.
Comment 12 Thomas Raschbacher gentoo-dev 2022-09-26 19:11:06 UTC
(In reply to Michael Orlitzky from comment #11)
> (In reply to Thomas Raschbacher from comment #10)
> > It compiled just fine with LLVM and CLANG 15.0.1 here will have to see if I
> > can somehow reproduce it or figure out what is causing it
> 
> clang-16 enables these flags by default:
> 
> * -Werror=implicit-function-declaration
> * -Werror=implicit-int
> * -Werror=strict-prototypes
> 
> it's probably one of those that causes the build to fail.

good point that sounds reasonable .. I shall test it asap
Comment 13 Thomas Raschbacher gentoo-dev 2023-05-30 06:02:07 UTC
This version has been removed from the tree a while ago. If it is still an issue with current ones please report a new bug (or re-open this if there is any benefit in doing so)
Comment 14 Larry the Git Cow gentoo-dev 2024-10-27 11:22:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8921c8cca743d458262c1d112decc3339826bf6

commit b8921c8cca743d458262c1d112decc3339826bf6
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-10-27 11:22:02 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-10-27 11:22:02 +0000

    app-antivirus/clamav: drop 0.103.11-r1, 0.103.12
    
    Bug: https://bugs.gentoo.org/871252
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 app-antivirus/clamav/Manifest                      |   2 -
 app-antivirus/clamav/clamav-0.103.11-r1.ebuild     | 236 ----------
 app-antivirus/clamav/clamav-0.103.12.ebuild        | 237 -----------
 .../files/clamav-0.102.1-libxml2_pkgconfig.patch   | 120 ------
 .../files/clamav-0.102.2-fix-curl-detection.patch  |  26 --
 .../files/clamav-0.103.0-system-tomsfastmath.patch | 115 -----
 .../files/clamav-0.103.1-upstream-openrc.patch     | 474 ---------------------
 .../files/clamav-0.103.12-missing-const.patch      |  13 -
 8 files changed, 1223 deletions(-)
Comment 15 Michael Orlitzky gentoo-dev 2024-10-27 11:47:29 UTC
(In reply to Larry the Git Cow from comment #14)
> commit b8921c8cca743d458262c1d112decc3339826bf6
> Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
> AuthorDate: 2024-10-27 11:22:02 +0000
> Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
> CommitDate: 2024-10-27 11:22:02 +0000
> 
>     app-antivirus/clamav: drop 0.103.11-r1, 0.103.12


I'm not sure why you are deleting my package with a reference to a closed bug from 2022, but if you were worried that it was still affected by this, it's not =P

I maintain the 0.103.x branch separately. It's still supported upstream for now, and is supported by me anyways. It's the last branch that doesn't require rust and bundled libraries.