Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 786102 - net-dialup/freeradius-3.0.21-r1 - rdlibtool: error: --shared is not a synonym for -shared
Summary: net-dialup/freeradius-3.0.21-r1 - rdlibtool: error: --shared is not a synonym...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-04-27 13:51 UTC by Toralf Förster
Modified: 2022-05-06 21:39 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.71 KB, text/plain)
2021-04-27 13:51 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,348.21 KB, text/plain)
2021-04-27 13:51 UTC, Toralf Förster
Details
environment (environment,133.71 KB, text/plain)
2021-04-27 13:51 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,27.46 KB, application/x-bzip)
2021-04-27 13:51 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,28.61 KB, application/x-bzip)
2021-04-27 13:51 UTC, Toralf Förster
Details
net-dialup:freeradius-3.0.21-r1:20210427-113330.log (net-dialup:freeradius-3.0.21-r1:20210427-113330.log,70.51 KB, text/plain)
2021-04-27 13:51 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,37.42 KB, application/x-bzip)
2021-04-27 13:51 UTC, Toralf Förster
Details
Patch that fixes build with slibtool. (freeradius-3.0.25.slibtool.patch,4.42 KB, patch)
2022-05-06 21:39 UTC, orbea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-04-27 13:51:47 UTC
true CC src/lib/cbuff.c
rdlibtool --mode=compile --shared x86_64-pc-linux-gnu-gcc -o build/objs/src/lib/cbuff.lo -c -MD -I. -Isrc -include src/freeradius-devel/autoconf.h -include src/freeradius-devel/build.h -include src/freeradius-devel/features.h -include src/freeradius-devel/radpaths.h -fno-strict-aliasing -Wno-date-time -pipe -march=native -fno-diagnostics-color -O2 -Wall -std=c99 -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -DNDEBUG -DIS_MODULE=1 -D_LIBRADIUS -I/var/tmp/portage/net-dialup/freeradius-3.0.21-r1/work/freeradius-server-3.0.21/src src/lib/cbuff.c
rdlibtool: error: --shared is not a synonym for -shared
make: *** [scripts/boiler.mk:635: build/objs/src/lib/cbuff.lo] Error 2
 * ERROR: net-dialup/freeradius-3.0.21-r1::gentoo failed (compile phase):
 *   emake failed
 * 

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20210419-131016

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.3.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.51.0
  [2]   rust-1.51.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue Apr 27 11:20:18 UTC 2021

emerge -qpvO net-dialup/freeradius
[ebuild  N    ] net-dialup/freeradius-3.0.21-r1  USE="pam readline ssl systemd -debug -firebird -iodbc -kerberos -ldap (-libressl) -memcached -mongodb -mysql -odbc -oracle -pcap -postgres -python -redis -rest -samba -sqlite" PYTHON_SINGLE_TARGET="python3_8 -python3_7"
Comment 1 Toralf Förster gentoo-dev 2021-04-27 13:51:48 UTC
Created attachment 702717 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-04-27 13:51:50 UTC
Created attachment 702720 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-04-27 13:51:52 UTC
Created attachment 702723 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-04-27 13:51:53 UTC
Created attachment 702726 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-04-27 13:51:54 UTC
Created attachment 702729 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-04-27 13:51:56 UTC
Created attachment 702732 [details]
net-dialup:freeradius-3.0.21-r1:20210427-113330.log
Comment 7 Toralf Förster gentoo-dev 2021-04-27 13:51:57 UTC
Created attachment 702735 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-05-06 17:59:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60bc7025606aa2dc4ae7ef342060507d80038eac

commit 60bc7025606aa2dc4ae7ef342060507d80038eac
Author:     orbea <orbea@riseup.net>
AuthorDate: 2022-05-06 16:08:05 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-05-06 17:59:13 +0000

    net-dialup/freeradius: Fix typo in ebuild
    
    It should be -shared and not --shared and this typo causes the
    build to fail with slibtool.
    
    Additionally it needs slibtool-shared and not rlibtool.
    
    Bug: https://bugs.gentoo.org/786102
    Closes: https://github.com/gentoo/gentoo/pull/25351
    Signed-off-by: orbea <orbea@riseup.net>
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 net-dialup/freeradius/freeradius-3.0.25-r2.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 9 orbea 2022-05-06 21:39:33 UTC
Created attachment 777125 [details, diff]
Patch that fixes build with slibtool.

The build gets farther now, but this is hopeless. Freeradius has its own jlibtool instead of GNU libtool which fails to create the '.libs' directory when using -module which is needed to build the modules with slibtool.

I attached a preliminary patch that fixes it for slibtool, but without also fixing jlibtool itself its hopeless.