Hi all,

When compiling freeradius with rlm_perl, i have this error message "/usr/bin/ld: cannot find -lperl",

Though, libperl seems to be present :

indri:/etc/raddb# locate libperl
/usr/doc/libperl5.6
/usr/lib/libperl.so.5.6
/usr/lib/libperl.so.5.6.1

Do you know what's wrong in my config ?

...
/usr/lib/perl/5.6.1/CORE/proto.h:89: warning: declaration of `floor'
shadows global declaration
/usr/lib/perl/5.6.1/CORE/proto.h:510: warning: declaration of `floor'
shadows global declaration
/usr/lib/perl/5.6.1/CORE/proto.h:514: warning: declaration of `floor'
shadows global declaration
/usr/lib/perl/5.6.1/CORE/proto.h:525: warning: declaration of `floor'
shadows global declaration
/usr/lib/perl/5.6.1/CORE/proto.h:624: warning: declaration of `exp'
shadows global declaration
/usr/lib/perl/5.6.1/CORE/proto.h:812: warning: declaration of `floor'
shadows global declaration
/usr/lib/perl/5.6.1/CORE/proto.h:812: warning: declaration of `version'
shadows global declaration
/usr/lib/perl/5.6.1/CORE/proto.h:932: warning: declaration of `floor'
shadows global declaration
/usr/lib/perl/5.6.1/CORE/proto.h:933: warning: declaration of `floor'
shadows global declaration
/usr/lib/perl/5.6.1/CORE/proto.h:934: warning: declaration of `floor'
shadows global declaration
rlm_perl.c: In function `xs_init':
rlm_perl.c:156: warning: passing arg 1 of `Perl_newXS' discards
qualifiers from pointer target type
rlm_perl.c:156: warning: passing arg 3 of `Perl_newXS' discards
qualifiers from pointer target type
rlm_perl.c: In function `XS_radiusd_radlog':
rlm_perl.c:168: warning: unused variable `items'
rlm_perl.c: In function `perl_instantiate':
rlm_perl.c:299: warning: passing arg 1 of `Perl_newXS' discards
qualifiers from pointer target type
rlm_perl.c:299: warning: passing arg 3 of `Perl_newXS' discards
qualifiers from pointer target type
rlm_perl.c: At top level:
rlm_perl.c:477: warning: `perl_checksimul' defined but not used
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE
-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -I../../include -DDEBIAN -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl/5.6.1/CORE -c rlm_perl.c -o rlm_perl.o >/dev/null 2>&1
mv -f .libs/rlm_perl.lo rlm_perl.lo
/usr/bin/libtool --mode=link gcc -release 0.9-pre \
-module -export-dynamic -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -I../../include `perl
-MExtUtils::Embed -e ccopts` \
-o rlm_perl.la -rpath /usr/lib/freeradius rlm_perl.lo `perl
-MExtUtils::Embed -e ldopts` -lnsl -lresolv -lpthread

*** Warning: Linking the shared library rlm_perl.la against the
*** static library /usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a is
not portable!
rm -fr .libs/rlm_perl.la .libs/rlm_perl.* .libs/rlm_perl-0.9-pre.*
gcc -shared rlm_perl.lo -L/usr/local/lib
/usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl/5.6.1/CORE -lperl -ldl -lm -lc -lcrypt -lnsl -lresolv
-lpthread -Wl,-soname -Wl,rlm_perl-0.9-pre.so -o .libs/rlm_perl-0.9-pre.so
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[7]: *** [rlm_perl.la] Error 1
make[7]: Leaving directory
`/home/dourix/buildpackages/freeradius/freeradius-snapshot-20030203/src/modules/rlm_perl'
make[6]: *** [common] Error 1
make[6]: Leaving directory
`/home/dourix/buildpackages/freeradius/freeradius-snapshot-20030203/src/modules'
make[5]: *** [all] Error 2
make[5]: Leaving directory
`/home/dourix/buildpackages/freeradius/freeradius-snapshot-20030203/src/modules'
make[4]: *** [common] Error 1
make[4]: Leaving directory
`/home/dourix/buildpackages/freeradius/freeradius-snapshot-20030203/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/dourix/buildpackages/freeradius/freeradius-snapshot-20030203/src'
make[2]: *** [common] Error 1
make[2]: Leaving directory
`/home/dourix/buildpackages/freeradius/freeradius-snapshot-20030203'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/dourix/buildpackages/freeradius/freeradius-snapshot-20030203'
make: *** [build] Error 2
dourix@indri:~/buildpackages/freeradius/freeradius-snapshot-20030203$

Thanks,

--
DouRiX
["Some of us are becoming the men we wanted to marry." -- Gloria
Steinem]




- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to