error loading shared libraries - BOILER=yes

Matthew Newton mcn4 at
Sat Feb 11 04:24:02 CET 2012


HEAD of master, building with BOILER=yes (without BOILER=yes is fine), I get:

freeradius-server$ echo BOILER=yes >>
freeradius-server$ ./configure --prefix=/opt/fr3
freeradius-server$ make

freeradius-server$ build/bin/radiusd -X
FreeRADIUS Version 3.0.0, for host x86_64-unknown-linux-gnu, built on Feb 11 2012 at 02:40:47
Copyright (C) 1999-2009 The FreeRADIUS server project and contributors. 
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A 
You may redistribute copies of FreeRADIUS under the terms of the 
GNU General Public License v2. 
Errors reading /opt/fr3/etc/raddb: No such file or directory

freeradius-server$ build/bin/relink/radiusd -X
build/bin/relink/radiusd: error while loading shared libraries: cannot open shared object file: No such file or directory

...OK - probably looking in /opt/fr3/lib

freeradius-server$ make install

freeradius-server$ build/bin/radiusd -X above, OK

freeradius-server$ build/bin/relink/radiusd -X
...also OK - makes sense, now installed.

freeradius-server$ /opt/fr3/sbin/radiusd -X
...also OK

freeradius-server$ cd /opt/fr3/sbin

sbin$ ./radiusd -X
./radiusd: error while loading shared libraries: build/lib/relink/.libs/ cannot open shared object file: No such file or directory

... not good.

The problem seems to be in the final 'gcc -rdynamic -o build/bin/relink/radiusd'
command - if you remove all the many
' -Wl,-rpath=/opt/fr3/lib build/lib/relink/.libs/' 
arguments and run manually, then copy the resulting binary to the correct
location, all is fine. The dynamic libs seem to be being added to gcc by
$${${1}_R_PRLIBS} in scripts/, and previously :205, but before
that I get a bit lost :-)

Any ideas?



Matthew Newton, Ph.D. <mcn4 at>

Systems Architect (UNIX and Networks), Network Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at>

More information about the Freeradius-Devel mailing list