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

Bug 707626

Summary: net-proxy/ziproxy-3.3.1-r1 : 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: strites
Priority: Normal Keywords: PATCH
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-proxy:ziproxy-3.3.1-r1:20200131-055430.log
temp.tbz2
gcc10.patch

Description Toralf Förster gentoo-dev 2020-01-31 17:40:57 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=native -fno-common -c -o cttables.o cttables.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=native -fno-common -c -o misc.o misc.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=native -fno-common -c -o session.o session.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o ziproxy ziproxy.o http.o log.o text.o image.o cfgfile.o preemptdns.o netd.o htmlopt.o qparser.o gzpipe.o fstring.o cdetect.o urltables.o txtfiletools.o auth.o strtables.o simplelist.o tosmarking.o cttables.o misc.o session.o  -lpthread -lpng -ljpeg -lgif -lm -lz  
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: tosmarking.o:(.bss+0x2c): multiple definition of `TOSFlagsDefault'; cfgfile.o:(.bss+0x9c): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: tosmarking.o:(.bss+0x28): multiple definition of `TOSFlagsDiff'; cfgfile.o:(.bss+0x98): first defined here

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

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

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

  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:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Fri, 31 Jan 2020 04:06:20 +0000

emerge -qpvO net-proxy/ziproxy
[ebuild  N    ] net-proxy/ziproxy-3.3.1-r1  USE="-sasl -xinetd"
Comment 1 Toralf Förster gentoo-dev 2020-01-31 17:41:00 UTC
Created attachment 609760 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-31 17:41:02 UTC
Created attachment 609762 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-31 17:41:05 UTC
Created attachment 609764 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-31 17:41:08 UTC
Created attachment 609766 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-31 17:41:11 UTC
Created attachment 609768 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-31 17:41:14 UTC
Created attachment 609770 [details]
net-proxy:ziproxy-3.3.1-r1:20200131-055430.log
Comment 7 Toralf Förster gentoo-dev 2020-01-31 17:41:16 UTC
Created attachment 609772 [details]
temp.tbz2
Comment 8 strites 2020-05-21 06:07:46 UTC
Created attachment 640614 [details, diff]
gcc10.patch

compiles with this patch

I started the daemon and it seems to work
Comment 9 Larry the Git Cow gentoo-dev 2020-11-28 23:09:47 UTC
The bug has been closed via the following commit(s):

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

commit 2b8e5c1029efa149b3b9b6ee4796a04931f3ab27
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2020-11-28 23:09:06 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-11-28 23:09:06 +0000

    net-proxy/ziproxy: port to EAPI 7 and GLEP 81
    
    Closes: https://bugs.gentoo.org/707626
    Package-Manager: Portage-3.0.9, Repoman-3.0.1
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../ziproxy/files/ziproxy-3.3.1-fno-common.patch      | 19 +++++++++++++++++++
 ...iproxy-3.3.1-r1.ebuild => ziproxy-3.3.1-r2.ebuild} | 19 +++++++++----------
 2 files changed, 28 insertions(+), 10 deletions(-)