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

Bug 870997

Summary: net-analyzer/sniffit-0.5 - sn_generation.c: error: call to undeclared function input_field; 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-analyzer:sniffit-0.5:20220917-181050.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-09-17 19:40:46 UTC
                            ^~~~~~~~~~~~~~~
sn_packets.c:14:41: note: passing argument to parameter 'addr' here
unsigned short in_cksum(unsigned short *addr,int len)
                                        ^
sn_generation.c:66:1: error: call to undeclared function 'input_field'; 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_hardened-j4-20220917-070004

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

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:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 0ea94cb571143075420d6c7a42d6462b66a5f9e3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 17 17:16:46 2022 +0000

    2022-09-17 17:16:46 UTC

emerge -qpvO net-analyzer/sniffit
[ebuild  N    ] net-analyzer/sniffit-0.5
Comment 1 Toralf Förster gentoo-dev 2022-09-17 19:40:47 UTC
Created attachment 809095 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 19:40:48 UTC
Created attachment 809098 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-17 19:40:49 UTC
Created attachment 809101 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-17 19:40:51 UTC
Created attachment 809104 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-17 19:40:52 UTC
Created attachment 809107 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-17 19:40:53 UTC
Created attachment 809110 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-17 19:40:53 UTC
Created attachment 809113 [details]
net-analyzer:sniffit-0.5:20220917-181050.log
Comment 8 Toralf Förster gentoo-dev 2022-09-17 19:40:55 UTC
Created attachment 809116 [details]
temp.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2022-10-01 00:30:26 UTC
The bug has been closed via the following commit(s):

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

commit 46c56624cb102d92322d978909f853e0d2e6870a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-01 00:21:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-01 00:21:14 +0000

    net-analyzer/sniffit: fix build w/ Clang 16
    
    Closes: https://bugs.gentoo.org/870997
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/sniffit-0.5.0-implicit-func-decl.patch   | 50 ++++++++++++++++++++++
 .../{sniffit-0.5.ebuild => sniffit-0.5-r1.ebuild}  | 16 ++++---
 2 files changed, 59 insertions(+), 7 deletions(-)