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

Bug 707944

Summary: net-firewall/pglinux-2.3.1_p20171006 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: jer
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
logs.tbz2
net-firewall:pglinux-2.3.1_p20171006:20200202-165116.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-02 16:53:59 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DVERSION=\"2.3.1+git\" -DPACKAGE_NAME=\"pgl\"  -DHAVE_ZLIB -DPIDFILE=\"/var/run/pgld.pid\"    -O2 -pipe -march=native -fno-common -c -o src/blocklist.o src/blocklist.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DVERSION=\"2.3.1+git\" -DPACKAGE_NAME=\"pgl\"  -DHAVE_ZLIB -DPIDFILE=\"/var/run/pgld.pid\"    -O2 -pipe -march=native -fno-common -c -o src/parser.o src/parser.c
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o pgld src/pgld.o src/stream.o src/blocklist.o src/parser.o -lnetfilter_queue -lnfnetlink  -lz  
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wl,-O1 -o pgld src/pgld.o src/stream.o src/blocklist.o src/parser.o  -Wl,--as-needed /usr/lib64/libnetfilter_queue.so -lmnl -lnfnetlink -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/stream.o:(.bss+0x0): multiple definition of `blocklist'; src/pgld.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/blocklist.o:(.bss+0x0): multiple definition of `blocklist'; src/pgld.o:(.bss+0x10): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-libressl-20200125-183534

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

  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.7
  [3]   python3.6
  [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 7.10.3

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 02 Feb 2020 15:28:00 +0000

emerge -qpvO net-firewall/pglinux
[ebuild  N    ] net-firewall/pglinux-2.3.1_p20171006  USE="zlib -cron -dbus -logrotate -networkmanager -qt5"
Comment 1 Toralf Förster gentoo-dev 2020-02-02 16:54:02 UTC
Created attachment 611082 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-02 16:54:05 UTC
Created attachment 611084 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-02 16:54:07 UTC
Created attachment 611086 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-02 16:54:10 UTC
Created attachment 611088 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-02 16:54:13 UTC
Created attachment 611090 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-02 16:54:16 UTC
Created attachment 611092 [details]
net-firewall:pglinux-2.3.1_p20171006:20200202-165116.log
Comment 7 Toralf Förster gentoo-dev 2020-02-02 16:54:18 UTC
Created attachment 611094 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-06-14 10:09:57 UTC
The bug has been closed via the following commit(s):

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

commit 492d6119594d1774685fcd4f40fb5d754c3d77c4
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-06-14 10:08:56 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-06-14 10:09:40 +0000

    net-firewall/pglinux: Fix building with CFLAGS=-fno-common
    
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=707944
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 .../files/pglinux-2.3.1_p20171006-fno-common.patch  | 21 +++++++++++++++++++++
 net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild |  5 ++++-
 2 files changed, 25 insertions(+), 1 deletion(-)