Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 871252

Summary: app-antivirus/clamav-0.105.1 - /.../crypto.c: error: implicit declaration of function strptime [-Werror,-Wimplicit-function-declar
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Antivirus Team <antivirus>
Status: RESOLVED OBSOLETE    
Severity: normal CC: kangie, mjo, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=879625
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
app-antivirus:clamav-0.105.1:20220918-095957.log
clang.tar.bz2
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

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)