Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875149 - net-misc/netstat-nat-1.4.10 - netstat-nat.c: error: call to undeclared function string_search; ISO C99
Summary: net-misc/netstat-nat-1.4.10 - netstat-nat.c: error: call to undeclared functi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-04 16:50 UTC by Toralf Förster
Modified: 2023-05-11 03:29 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.47 KB, text/plain)
2022-10-04 16:50 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,972 bytes, application/x-bzip)
2022-10-04 16:50 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,24.33 KB, text/plain)
2022-10-04 16:50 UTC, Toralf Förster
Details
environment (environment,74.80 KB, text/plain)
2022-10-04 16:50 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.27 KB, application/x-bzip)
2022-10-04 16:50 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,3.94 KB, application/x-bzip)
2022-10-04 16:50 UTC, Toralf Förster
Details
net-misc:netstat-nat-1.4.10:20221004-100508.log (net-misc:netstat-nat-1.4.10:20221004-100508.log,14.40 KB, text/plain)
2022-10-04 16:50 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,22.40 KB, application/x-bzip)
2022-10-04 16:50 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-10-04 16:50:46 UTC
      did you mean to compare to NULL? [-Wpointer-compare]
            if (optarg == NULL || optarg == '\0') {
                                            ^~~~
                                            (void *)0
netstat-nat.c:530:9: error: call to undeclared function 'string_search'; 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_systemd-j4-20221004-070004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 9c436606561532c31ac45c8b107e8f4ba4756a56
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Oct 4 09:48:53 2022 +0000

    2022-10-04 09:48:52 UTC

emerge -qpvO net-misc/netstat-nat
[ebuild  N    ] net-misc/netstat-nat-1.4.10
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:50:47 UTC
Created attachment 820201 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:50:48 UTC
Created attachment 820204 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:50:49 UTC
Created attachment 820207 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:50:50 UTC
Created attachment 820210 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:50:52 UTC
Created attachment 820213 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:50:53 UTC
Created attachment 820216 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-04 16:50:54 UTC
Created attachment 820219 [details]
net-misc:netstat-nat-1.4.10:20221004-100508.log
Comment 8 Toralf Förster gentoo-dev 2022-10-04 16:50:55 UTC
Created attachment 820222 [details]
temp.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2023-05-11 03:29:37 UTC
The bug has been closed via the following commit(s):

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

commit e4ed427a245eaf0b0d1649cb7cf4bd927e37c706
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-11 03:14:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-11 03:15:48 +0000

    net-misc/netstat-nat: fix modern C issues
    
    Closes: https://bugs.gentoo.org/875149
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/netstat-nat/files/netstat-nat-1.4.10-docdir.patch  |  9 +++++++++
 .../netstat-nat/files/netstat-nat-1.4.10-modern-c.patch     | 13 +++++++++++++
 ...tstat-nat-1.4.10.ebuild => netstat-nat-1.4.10-r1.ebuild} |  6 ++++--
 3 files changed, 26 insertions(+), 2 deletions(-)