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

Bug 707488

Summary: net-analyzer/nstats-0.4-r3 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Netmon Herd <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=763945
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-analyzer:nstats-0.4-r3:20200130-143443.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-30 19:28:17 UTC
      |         ^~~~~~
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall   -c -o src/conn.o src/conn.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall   -c -o src/util.o src/util.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -o nstats src/nstats.o src/pcap.o src/packet.o src/conn.o src/util.o -Wl,-O1 -Wl,--as-needed -lpcap
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/pcap.o:(.bss+0x0): multiple definition of `ifc'; src/nstats.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/packet.o:(.bss+0x20): multiple definition of `stats'; src/nstats.o:(.bss+0x10020): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20200126-201521

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

  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 Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.242_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 30 Jan 2020 13:08:10 +0000

emerge -qpvO net-analyzer/nstats
[ebuild  N    ] net-analyzer/nstats-0.4-r3
Comment 1 Toralf Förster gentoo-dev 2020-01-30 19:28:20 UTC
Created attachment 609240 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-30 19:28:23 UTC
Created attachment 609242 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-30 19:28:25 UTC
Created attachment 609244 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-30 19:28:28 UTC
Created attachment 609246 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-30 19:28:31 UTC
Created attachment 609248 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-30 19:28:34 UTC
Created attachment 609250 [details]
net-analyzer:nstats-0.4-r3:20200130-143443.log
Comment 7 Toralf Förster gentoo-dev 2020-01-30 19:28:37 UTC
Created attachment 609252 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-02-01 00:02:56 UTC
The bug has been closed via the following commit(s):

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

commit d143d34e164882fed1656841e579b7ef948bb5ac
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-02-01 00:01:56 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-02-01 00:02:53 +0000

    net-analyzer/nstats: Set CFLAGS=-fcommon
    
    Package-Manager: Portage-2.3.86, Repoman-2.3.20
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=707488
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-analyzer/nstats/nstats-0.4-r3.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)