rlm_perl link error

Nicolas Baradakis nbk at sitadelle.com
Mon Sep 18 15:23:03 CEST 2006


Alexander Serkin wrote:

> i'm getting the following error while building rlm_perl module:
>
> [...]
>
> gcc -shared -Wl,-h -Wl,rlm_perl-1.1.3.so -o .libs/rlm_perl-1.1.3.so
> .libs/rlm_perl.o  -R/opt/fr/src/freeradius-1.1.3/src/lib/.libs
> -R/opt/fr/lib /opt/fr/src/freeradius-1.1.3/src/lib/.libs/libradius.so
> -L/usr/local/lib
> /usr/local/lib/perl5/5.8.6/sun4-solaris/auto/DynaLoader/DynaLoader.a
> -L/usr/local/lib/perl5/5.8.6/sun4-solaris/CORE -lperl -ldl -lm -lc -lnsl
> -lresolv -lsocket -lposix4 -lpthread -lc
> Text relocation remains                         referenced
>     against symbol                  offset      in file
> <unknown>                           0x2628
> /usr/local/lib/perl5/5.8.6/sun4-solaris/CORE/libperl.a(perl.o)
> ...

These are the same errors as this bug report:
http://bugs.freeradius.org/show_bug.cgi?id=388

> does it mean that perl is compiled incorrectly on the machine?
> It seem to be installed from SMCperl binary package for SunOS 5.8

I'm not sure exactly what's happening, but it seems the libperl.a
library on the host contains non-PIC code, and the Solaris linker
refuses to make a shared library for this reason.

If you don't need the perl module, I'd suggest to build FreeRADIUS
using ./configure --without-rlm_perl

-- 
Nicolas Baradakis




More information about the Freeradius-Users mailing list