Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870997 - net-analyzer/sniffit-0.5 - sn_generation.c: error: call to undeclared function input_field; ISO C99
Summary: net-analyzer/sniffit-0.5 - sn_generation.c: error: call to undeclared functio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard: fixed in 0.5-r1
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-17 19:40 UTC by Toralf Förster
Modified: 2024-10-26 22:04 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.59 KB, text/plain)
2022-09-17 19:40 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,1.53 KB, application/x-bzip)
2022-09-17 19:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,64.41 KB, text/plain)
2022-09-17 19:40 UTC, Toralf Förster
Details
environment (environment,75.34 KB, text/plain)
2022-09-17 19:40 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.06 KB, application/x-bzip)
2022-09-17 19:40 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.83 KB, application/x-bzip)
2022-09-17 19:40 UTC, Toralf Förster
Details
net-analyzer:sniffit-0.5:20220917-181050.log (net-analyzer:sniffit-0.5:20220917-181050.log,22.43 KB, text/plain)
2022-09-17 19:40 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,23.93 KB, application/x-bzip)
2022-09-17 19:40 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-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(-)