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

Bug 710094

Summary: net-analyzer/ipband-0.8.1-r2 : 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:ipband-0.8.1-r2:20200218-091456.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-18 18:55:37 UTC
hash.c:162:22: warning: t_prev may be used uninitialized in this function [-Wmaybe-uninitialized]
  162 |    else t_prev->next = t->next;    /* Wasn't */
      |         ~~~~~~~~~~~~~^~~~~~~~~
x86_64-pc-linux-gnu-gcc -Wall -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -o ipband main.o error.o init.o packets.o pcapfunc.o popen.o reports.o utils.o hash.o -lpcap
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error.o:(.bss+0x0): multiple definition of `lenadj_m'; main.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error.o:(.bss+0x4): multiple definition of `niplist_m'; main.o:(.bss+0x4): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20200216-141645

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

  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.41.0 *


ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 18 Feb 2020 08:41:29 +0000

emerge -qpvO net-analyzer/ipband
[ebuild  N    ] net-analyzer/ipband-0.8.1-r2
Comment 1 Toralf Förster gentoo-dev 2020-02-18 18:55:39 UTC
Created attachment 614328 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-18 18:55:42 UTC
Created attachment 614330 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-18 18:55:45 UTC
Created attachment 614332 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-18 18:55:48 UTC
Created attachment 614334 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-18 18:55:51 UTC
Created attachment 614336 [details]
net-analyzer:ipband-0.8.1-r2:20200218-091456.log
Comment 6 Toralf Förster gentoo-dev 2020-02-18 18:55:54 UTC
Created attachment 614338 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-03-10 08:22:50 UTC
The bug has been closed via the following commit(s):

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

commit 44b0e7b68819d7c87a67b598cc9ef32333a430d5
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-02-20 10:42:22 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-03-10 08:22:21 +0000

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

 .../ipband/files/ipband-0.8.1-fno-common.patch     | 113 +++++++++++++++++++++
 net-analyzer/ipband/ipband-0.8.1-r2.ebuild         |   1 +
 2 files changed, 114 insertions(+)