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

Bug 875149

Summary: net-misc/netstat-nat-1.4.10 - netstat-nat.c: error: call to undeclared function string_search; ISO C99
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
clang.tar.bz2
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
net-misc:netstat-nat-1.4.10:20221004-100508.log
temp.tar.bz2

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(-)