clang -DHAVE_CONFIG_H -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wall -c -o mod.o mod.c clang -DHAVE_CONFIG_H -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wall -c -o mod_print.o mod_print.c clang -DHAVE_CONFIG_H -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wall -c -o mod_echo.o mod_echo.c mod.c:140:4: error: call to undeclared library function 'strlcat' with type 'unsigned long (char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome-j4-20221109-200005 ------------------------------------------------------------------- GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle" CC=clang CXX=clang++ gcc-config -l: [1] x86_64-pc-linux-gnu-12 * clang/llvm (if any): clang version 15.0.4 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/15 15.0.4 Python 3.10.8 Available Ruby profiles: [1] ruby27 (with Rubygems) [2] ruby31 (with Rubygems) * Available Rust versions: [1] rust-bin-1.64.0 * php cli (if any): (none found) HEAD of ::gentoo commit 1cfadf62e0795b3455c4f3297d7c56fdd989eed3 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu Nov 10 19:46:53 2022 +0000 2022-11-10 19:46:53 UTC emerge -qpvO net-analyzer/fragroute [ebuild N ] net-analyzer/fragroute-1.2.6-r4
Created attachment 830653 [details] emerge-info.txt
Created attachment 830655 [details] emerge-history.txt
Created attachment 830657 [details] environment
Created attachment 830659 [details] etc.clang.tar.bz2
Created attachment 830661 [details] etc.portage.tar.bz2
Created attachment 830663 [details] logs.tar.bz2
Created attachment 830665 [details] net-analyzer:fragroute-1.2.6-r4:20221110-202137.log
Created attachment 830667 [details] temp.tar.bz2
Created attachment 830669 [details] var.tmp.clang.tar.bz2
I think autoreconf fixed it? Can't replicate. Or some dependency installs libbsd and that fixes this problem.
(In reply to NHO from comment #10) > I think autoreconf fixed it? Can't replicate. > Or some dependency installs libbsd and that fixes this problem. >= glibc-2.38 (or something like that) contains these functions.
gentoo manpages tell me it belongs to libbsd, and there were times when dependency on libbsd and #include <bsd/string.h> was needed in porting process.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57b376b20e81abfae126488de392390bb52f5acd commit 57b376b20e81abfae126488de392390bb52f5acd Author: NHOrus <jy6x2b32pie9@yahoo.com> AuthorDate: 2025-02-20 15:27:52 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-02-22 23:47:23 +0000 net-analyzer/fragroute: update EAPI 7 -> 8, fix build problem Fail-deadly workaround for ancient compilers that was deprecated and always failed. Bug: https://bugs.gentoo.org/880843 Closes: https://bugs.gentoo.org/945195 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40674 Signed-off-by: Sam James <sam@gentoo.org> .../files/fragroute-1.2.6-missing-includes.patch | 34 +++++++++++++ net-analyzer/fragroute/fragroute-1.2.6-r5.ebuild | 55 ++++++++++++++++++++++ 2 files changed, 89 insertions(+)