radeapclient broken compilation

Alin Nastac mrness at gentoo.org
Thu Mar 30 16:59:36 CEST 2006


Nicolas Baradakis wrote:

>Alin Nastac wrote:
>
>  
>
>>gcc -o radeapclient radeapclient.o  libeap/.libs/libeap.so
>>/var/tmp/portage/freeradius-1.1.1/work/freeradius-1.1.1/src/lib/.libs/libradius.so
>>-lcrypt -lnsl -lresolv -lpthread  -Wl,--rpath
>>-Wl,/var/tmp/portage/freeradius-1.1.1/work/freeradius-1.1.1/src/modules/rlm_eap/libeap/.libs
>>-Wl,--rpath
>>-Wl,/var/tmp/portage/freeradius-1.1.1/work/freeradius-1.1.1/src/lib/.libs
>>gcc: radeapclient.o: No such file or directory
>>    
>>
>
>This error was already posted on the freeradius-users mailing list
>last week. It seems you're using "./configure --disable-static".
>Remove this option and it'll build normally.
>
>  
>
True. Now the compilation succeeds, but make install fails. It seems
libradius gets installed in /usr rather than /usr/lib:

gmake[4]: Entering directory
`/var/tmp/portage/freeradius-1.1.1/work/freeradius-1.1.1/src/lib'
/var/tmp/portage/freeradius-1.1.1/work/freeradius-1.1.1/libtool
--mode=install
/var/tmp/portage/freeradius-1.1.1/work/freeradius-1.1.1/install-sh -c -c
libradius.la /var/tmp/portage/freeradius-1.1.1/image//usr/lib
/var/tmp/portage/freeradius-1.1.1/work/freeradius-1.1.1/install-sh -c -c
.libs/libradius-1.1.1.so
/var/tmp/portage/freeradius-1.1.1/image//usr/libradius-1.1.1.so
(cd /var/tmp/portage/freeradius-1.1.1/image//usr && rm -f libradius.so
&& ln -s libradius-1.1.1.so libradius.so)
/var/tmp/portage/freeradius-1.1.1/work/freeradius-1.1.1/install-sh -c -c
.libs/libradius.lai
/var/tmp/portage/freeradius-1.1.1/image//usr/libradius.la
/var/tmp/portage/freeradius-1.1.1/work/freeradius-1.1.1/install-sh -c -c
.libs/libradius.a /var/tmp/portage/freeradius-1.1.1/image//usr/libradius.a
ranlib /var/tmp/portage/freeradius-1.1.1/image//usr/libradius.a
chmod 644 /var/tmp/portage/freeradius-1.1.1/image//usr/libradius.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
rm -f /var/tmp/portage/freeradius-1.1.1/image//usr/lib/libradius-1.1.1.la;
ln -s libradius.la
/var/tmp/portage/freeradius-1.1.1/image//usr/lib/libradius-1.1.1.la
ln: creating symbolic link
`/var/tmp/portage/freeradius-1.1.1/image//usr/lib/libradius-1.1.1.la' to
`libradius.la': No such file or directory
gmake[4]: *** [install] Error 1
gmake[4]: Leaving directory
`/var/tmp/portage/freeradius-1.1.1/work/freeradius-1.1.1/src/lib'

But never mind this new problem. The main issue is the improper usage of
functions defined in radiusd daemon.
Those symbols are not meant to be used from outside, otherwise they
would be defined in libradius.
The -static tweak is simply a nasty workaround.
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20060330/ef3f8a2b/attachment.pgp>


More information about the Freeradius-Devel mailing list