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

Bug 707610

Summary: www-apache/mod_auth_xradius-0.4.6-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Tony Vroon (RETIRED) <chainsaw>
Status: RESOLVED FIXED    
Severity: normal CC: treecleaner
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: ~arch only
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2
www-apache:mod_auth_xradius-0.4.6-r1:20200131-025313.log

Description Toralf Förster gentoo-dev 2020-01-31 17:37:04 UTC
libtool: link: x86_64-pc-linux-gnu-ranlib .libs/libradius.a
libtool: link: ( cd ".libs" && rm -f "libradius.la" && ln -s "../libradius.la" "libradius.la" )
/usr/share/apr/build/libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -I./libradius   -O2 -pipe -march=native -fno-common -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE  -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db6.0 -O2 -pipe -march=native -fno-common -rpath /usr/lib64/apache2/modules -module -avoid-version  -Wl,-O1 -Wl,--as-needed -o mod_auth_xradius.la -rpath /usr/lib64/apache2/modules mod_auth_xradius_la-mod_auth_xradius.lo mod_auth_xradius_la-xradius_cache.lo libradius.la 
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/mod_auth_xradius_la-mod_auth_xradius.o .libs/mod_auth_xradius_la-xradius_cache.o  -Wl,--whole-archive ./.libs/libradius.a -Wl,--no-whole-archive  -Wl,--as-needed  -O2 -march=native -pthread -O2 -march=native -Wl,-O1   -pthread -Wl,-soname -Wl,mod_auth_xradius.so -o .libs/mod_auth_xradius.so
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/mod_auth_xradius_la-xradius_cache.o:(.bss+0x0): multiple definition of `auth_xradius_module'; .libs/mod_auth_xradius_la-mod_auth_xradius.o:(.data.rel+0x0): first defined here
collect2: error: ld returned 1 exit status

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

  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 <==
Fri, 31 Jan 2020 01:26:20 +0000

emerge -qpvO www-apache/mod_auth_xradius
[ebuild  N    ] www-apache/mod_auth_xradius-0.4.6-r1
Comment 1 Toralf Förster gentoo-dev 2020-01-31 17:37:08 UTC
Created attachment 609650 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-31 17:37:11 UTC
Created attachment 609652 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-31 17:37:14 UTC
Created attachment 609654 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-31 17:37:17 UTC
Created attachment 609656 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-31 17:37:21 UTC
Created attachment 609658 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-31 17:37:24 UTC
Created attachment 609660 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-31 17:37:28 UTC
Created attachment 609662 [details]
www-apache:mod_auth_xradius-0.4.6-r1:20200131-025313.log
Comment 8 Larry the Git Cow gentoo-dev 2021-02-13 10:27:41 UTC
The bug has been closed via the following commit(s):

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

commit 2005eb90003eb96281cbbec121fb6cf6ff0955cf
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-02-13 10:27:16 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-02-13 10:27:16 +0000

    www-apache/mod_auth_xradius: Port to EAPI 7
    
    * Fix build with gcc-10
    
    Closes: https://bugs.gentoo.org/707610
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 ..._auth_xradius-0.4.6-apache24-api-changes.patch} |  4 ++--
 ... mod_auth_xradius-0.4.6-fallback-support.patch} |  5 ++---
 .../files/mod_auth_xradius-0.4.6-fno-common.patch  | 22 +++++++++++++++++++++
 ..._xradius-0.4.6-obsolete-autotools-syntax.patch} |  4 ++--
 www-apache/mod_auth_xradius/metadata.xml           |  8 ++++----
 .../mod_auth_xradius-0.4.6-r1.ebuild               | 23 +++++++++++-----------
 6 files changed, 44 insertions(+), 22 deletions(-)