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

Bug 708800

Summary: net-analyzer/siphon-666-r1 : fails to build with -fno-common or gcc-10
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: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
net-analyzer:siphon-666-r1:20200209-051702.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-09 09:42:24 UTC
log.c:151:5: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
  151 |     fgets(line,80,osprints);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -Wall -pthread -ggdb -Wl,-O1 -Wl,--as-needed -o siphon parse.o sniff.o main.o log.o -lpcap
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sniff.o:(.bss+0x10): multiple definition of `device'; parse.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sniff.o:(.bss+0x0): multiple definition of `back'; parse.o:(.bss+0x0): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-test-20200203-215003

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)

Available Rust versions:
  [1]   rust-1.41.0 *
java-config:
The following VMs are available for generation-2:
*)	AdoptOpenJDK JRE 8.242_p08 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 09 Feb 2020 04:47:53 +0000

emerge -qpvO net-analyzer/siphon
[ebuild  N    ] net-analyzer/siphon-666-r1
Comment 1 Toralf Förster gentoo-dev 2020-02-09 09:42:27 UTC
Created attachment 613006 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-09 09:42:30 UTC
Created attachment 613008 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-09 09:42:33 UTC
Created attachment 613010 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-09 09:42:35 UTC
Created attachment 613012 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-09 09:42:38 UTC
Created attachment 613014 [details]
net-analyzer:siphon-666-r1:20200209-051702.log
Comment 6 Toralf Förster gentoo-dev 2020-02-09 09:42:41 UTC
Created attachment 613016 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-02-09 10:55:04 UTC
The bug has been closed via the following commit(s):

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

commit 026668dd5d45a6234c97f03ff0fa6e09123516fa
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-02-09 10:54:13 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-02-09 10:55:00 +0000

    net-analyzer/siphon: Fix CFLAGS=-fno-common
    
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=708800
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 .../siphon/files/siphon-666-fno-common.patch       | 22 ++++++++++++++
 net-analyzer/siphon/siphon-666-r2.ebuild           | 34 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)