Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707530 - www-servers/sniproxy-0.6.0 : fails to build with -fno-common or gcc-10
Summary: www-servers/sniproxy-0.6.0 : fails to build with -fno-common or gcc-10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pierre-Olivier Mercier
URL: https://github.com/dlundquist/sniprox...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-30 21:28 UTC by Toralf Förster
Modified: 2020-11-28 23:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.55 KB, text/plain)
2020-01-30 21:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,31.58 KB, text/plain)
2020-01-30 21:28 UTC, Toralf Förster
Details
environment (environment,78.58 KB, text/plain)
2020-01-30 21:28 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.76 KB, application/x-bzip)
2020-01-30 21:28 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.16 KB, application/x-bzip)
2020-01-30 21:28 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,21.84 KB, application/x-bzip)
2020-01-30 21:28 UTC, Toralf Förster
Details
www-servers:sniproxy-0.6.0:20200130-204603.log (www-servers:sniproxy-0.6.0:20200130-204603.log,26.58 KB, text/plain)
2020-01-30 21:28 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-01-30 21:28:12 UTC
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"sniproxy\" -DPACKAGE_TARNAME=\"sniproxy\" -DPACKAGE_VERSION=\"0.6.0\" -DPACKAGE_STRING=\"sniproxy\ 0.6.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sniproxy\" -DVERSION=\"0.6.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE_LIBEV=1 -DHAVE_LIBPCRE=1 -DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DHAVE_ATEXIT=1 -DHAVE_DAEMON=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRTOUL=1 -DHAVE_ACCEPT4=1 -I.       -O2 -pipe -march=native -fno-common -c -o table.o table.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"sniproxy\" -DPACKAGE_TARNAME=\"sniproxy\" -DPACKAGE_VERSION=\"0.6.0\" -DPACKAGE_STRING=\"sniproxy\ 0.6.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sniproxy\" -DVERSION=\"0.6.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE_LIBEV=1 -DHAVE_LIBPCRE=1 -DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DHAVE_ATEXIT=1 -DHAVE_DAEMON=1 -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRTOUL=1 -DHAVE_ACCEPT4=1 -I.       -O2 -pipe -march=native -fno-common -c -o tls.o tls.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o sniproxy sniproxy.o address.o backend.o binder.o buffer.o cfg_parser.o cfg_tokenizer.o config.o connection.o http.o listener.o logger.o resolv.o table.o tls.o -lev  -lpcre   
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: listener.o:(.rodata+0x60): multiple definition of `http_protocol'; http.o:(.data.rel.ro.local+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: tls.o:(.data.rel.ro.local+0x0): multiple definition of `tls_protocol'; listener.o:(.rodata+0x68): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-20200129-211601

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

  Please see the tracker bug for details.

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


llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7 (uninstalled)
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

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 <==
Thu, 30 Jan 2020 19:46:24 +0000

emerge -qpvO www-servers/sniproxy
[ebuild  N    ] www-servers/sniproxy-0.6.0  USE="dns largefile -rfc3339 -test"
Comment 1 Toralf Förster gentoo-dev 2020-01-30 21:28:15 UTC
Created attachment 609430 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-30 21:28:17 UTC
Created attachment 609432 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-30 21:28:20 UTC
Created attachment 609434 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-30 21:28:23 UTC
Created attachment 609436 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-30 21:28:26 UTC
Created attachment 609438 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-30 21:28:29 UTC
Created attachment 609440 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-30 21:28:31 UTC
Created attachment 609442 [details]
www-servers:sniproxy-0.6.0:20200130-204603.log
Comment 8 Pierre-Olivier Mercier 2020-03-03 11:55:36 UTC
Pull request has been made upstream to address this issue.

See it at: https://github.com/dlundquist/sniproxy/pull/349
Comment 9 Larry the Git Cow gentoo-dev 2020-11-28 23:09:52 UTC
The bug has been closed via the following commit(s):

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

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

    www-servers/sniproxy: fix build with gcc-10, port to GLEP 81
    
    Closes: https://bugs.gentoo.org/707530
    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>

 .../sniproxy/files/sniproxy-0.6.0-fno-common.patch | 24 +++++++++++++++
 ...proxy-0.6.0.ebuild => sniproxy-0.6.0-r1.ebuild} | 36 +++++++++-------------
 2 files changed, 39 insertions(+), 21 deletions(-)