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 (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-18 10:03 UTC by Toralf Förster
Modified: 2023-05-30 06:02 UTC (History)
3 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)