problems compiling, but works, or don't??
hi every body, well trying to use freeradius v 1.0.5 to add security to a wlan, i configured this to use with openssl and eap-tls with this command: ./configure --prefix=/usr/local/ --with-openssl-includes=/usr/local/ssl/include/ --with-experimental-modules --enable-ltdl-install when i type make, get this error: Making static dynamic in rlm_perl... make[6]: Entering directory `/usr/src/freeradius-1.0.5/src/modules/rlm_perl' /usr/src/freeradius-1.0.5/libtool --mode=link gcc -release 1.0.5 \ -module -export-dynamic \ -o rlm_perl.la -rpath /usr/local//lib rlm_perl.lo `perl -MExtUtils::Embed -e ldopts` -lssl -lcrypto -lnsl -lresolv -lpthread *** Warning: Linking the shared library rlm_perl.la against the *** static library /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a is not portable! rm -fr .libs/rlm_perl.la .libs/rlm_perl.* .libs/rlm_perl-1.0.5.* gcc -shared rlm_perl.lo -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -lssl -lcrypto -lnsl -lresolv -lpthread -Wl,-E -Wl,-soname -Wl,rlm_perl-1.0.5.so -o .libs/rlm_perl-1.0.5.so /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status make[6]: *** [rlm_perl.la] Error 1 make[6]: Leaving directory `/usr/src/freeradius-1.0.5/src/modules/rlm_perl' make[5]: *** [common] Error 2 make[5]: Leaving directory `/usr/src/freeradius-1.0.5/src/modules' make[4]: *** [all] Error 2 make[4]: Leaving directory `/usr/src/freeradius-1.0.5/src/modules' make[3]: *** [common] Error 2 make[3]: Leaving directory `/usr/src/freeradius-1.0.5/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/freeradius-1.0.5/src' make[1]: *** [common] Error 2 make[1]: Leaving directory `/usr/src/freeradius-1.0.5' make: *** [all] Error 2 i have installed libsdl-perl and in /usr/src/freeradius-1.0.5/src/modules/rlm_eap/types/rlm_eap_tls/Makefile i have this: TARGET = rlm_eap_tls SRCS = rlm_eap_tls.c eap_tls.c cb.c tls.c mppe_keys.c RLM_CFLAGS = $(INCLTDL) -I../.. -I/usr/local/ssl/include/ HEADERS = eap_tls.h RLM_INSTALL = RLM_LDFLAGS += -I/usr/local/ssl/lib RLM_LIBS += -lssl -lcrypto $(STATIC_OBJS): $(HEADERS) $(DYNAMIC_OBJS): $(HEADERS) RLM_DIR=../../ include ${RLM_DIR}../rules.mak well why this error occurs and how could i solve?? i just can install if don't compile with --with-experimental-modules, so what happen if i don't use those experimental modules?? could freeradius work in my wlan as i hope? thanks in advance for your time. _________________________________________________________________ Charla con tus amigos en lĂnea mediante MSN Messenger: http://messenger.latam.msn.com/
"pelusa vali" <pelusitavali@hotmail.com> wrote:
*** Warning: Linking the shared library rlm_perl.la against the *** static library /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a is not portable! rm -fr .libs/rlm_perl.la .libs/rlm_perl.* .libs/rlm_perl-1.0.5.* gcc -shared rlm_perl.lo -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -lssl -lcrypto -lnsl -lresolv -lpthread -Wl,-E -Wl,-soname -Wl,rlm_perl-1.0.5.so -o .libs/rlm_perl-1.0.5.so /usr/bin/ld: cannot find -lperl
You need a libperl.so in order to build rlm_perl.so. If you don't plan on using rlm_perl, just delete src/modules/rlm_perl before you run configure. Alan DeKok.
On non i386 32bit architecture (both sun and intel 64) i've had some problems compiling rlm_perl with the distributed libtool, yet had problems compiling the rest using --with-system-libtool! Unfortunately I didnt collect enough information to submit a bug report, but errors varied from what was listed below, to missing object names (DynaLoader.so was a frequent one). To work around it I compiled and installed radius using --without-rlm-perl, then reran configure using --with-system-libtool (this time including perl), went into the src/modules/rlm_perl folder and did a make install. I also had problems with a non-shared version of perl being installed so used CPAN to upgrade perl and build a new version of libperl.so not sure if its the same with freeradius' built in libtool but often missing so file errors can be fixed by adding the path to the file into /etc/ld.so.conf and running ldconfig Of course if you dont need perl then you are better off just not compiling it!
"pelusa vali" <pelusitavali@hotmail.com> wrote:
*** Warning: Linking the shared library rlm_perl.la against the *** static library /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a is not portable! rm -fr .libs/rlm_perl.la .libs/rlm_perl.* .libs/rlm_perl-1.0.5.* gcc -shared rlm_perl.lo -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -lssl -lcrypto -lnsl -lresolv -lpthread -Wl,-E -Wl,-soname -Wl,rlm_perl-1.0.5.so -o .libs/rlm_perl-1.0.5.so /usr/bin/ld: cannot find -lperl
You need a libperl.so in order to build rlm_perl.so.
If you don't plan on using rlm_perl, just delete src/modules/rlm_perl before you run configure.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (3)
-
Alan DeKok -
Alan Lumb -
pelusa vali