Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880843 - net-analyzer/fragroute-1.2.6-r4 - unsigned long (char , const char , unsigned long); ISO C99 and later
Summary: net-analyzer/fragroute-1.2.6-r4 - unsigned long (char , const char , unsigned...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2022-11-10 20:30 UTC by Toralf Förster
Modified: 2025-02-22 23:48 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.01 KB, text/plain)
2022-11-10 20:30 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,145.84 KB, text/plain)
2022-11-10 20:30 UTC, Toralf Förster
Details
environment (environment,78.10 KB, text/plain)
2022-11-10 20:30 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,704 bytes, application/x-bzip)
2022-11-10 20:30 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,28.44 KB, application/x-bzip)
2022-11-10 20:30 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.25 KB, application/x-bzip)
2022-11-10 20:30 UTC, Toralf Förster
Details
net-analyzer:fragroute-1.2.6-r4:20221110-202137.log (net-analyzer:fragroute-1.2.6-r4:20221110-202137.log,9.82 KB, text/plain)
2022-11-10 20:30 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,24.21 KB, application/x-bzip)
2022-11-10 20:30 UTC, Toralf Förster
Details
var.tmp.clang.tar.bz2 (var.tmp.clang.tar.bz2,1.79 KB, application/x-bzip)
2022-11-10 20:30 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-11-10 20:30:01 UTC
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
Comment 1 Toralf Förster gentoo-dev 2022-11-10 20:30:02 UTC
Created attachment 830653 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-10 20:30:04 UTC
Created attachment 830655 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-11-10 20:30:05 UTC
Created attachment 830657 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-10 20:30:06 UTC
Created attachment 830659 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-10 20:30:07 UTC
Created attachment 830661 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-10 20:30:08 UTC
Created attachment 830663 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-10 20:30:09 UTC
Created attachment 830665 [details]
net-analyzer:fragroute-1.2.6-r4:20221110-202137.log
Comment 8 Toralf Förster gentoo-dev 2022-11-10 20:30:10 UTC
Created attachment 830667 [details]
temp.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2022-11-10 20:30:11 UTC
Created attachment 830669 [details]
var.tmp.clang.tar.bz2
Comment 10 NHO 2025-02-20 15:25:19 UTC
I think autoreconf fixed it? Can't replicate.
Or some dependency installs libbsd and that fixes this problem.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-20 15:39:32 UTC
(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.
Comment 12 NHO 2025-02-20 16:34:25 UTC
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.
Comment 13 Larry the Git Cow gentoo-dev 2025-02-22 23:48:56 UTC
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(+)