SOLVED -- sort of Using CVS snapshopt 20040625, still had same problem. Using "./configure --with- system-libtool" did not work either...same results.
Using "./configure --disable-shared" results in an error free "make" and "make install". Now, radiusd runs fine. Configured eap_ttls and it seems to work fine so far, to. Must have been a problem with my version of libtool (1.5.2). Any thoughts/comments as to advantages/disadvantages of enabling/disabling shared libs? Hope this helps someone -- mack On 23 Jun 2004 at 16:04, Mack wrote: > Hi, > > Problem linking eap_ttls and eap_peap on the following system: > > Gentoo Linux > gcc-3.3.3 > glibc-2.3.3 > libtool-1.5.2 > openssl-0.9.7d > kernel 2.6.7 > > I am using the latest nightly CVS build (20040623). > > Here's some of the output of "make": > > ..... > > Making static dynamic in rlm_eap_peap... > gmake[9]: Entering directory `/home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/types/rlm_eap_peap' gmake[9]: Nothing to > be done for `static'. > /home/mack/sources/freeradius-snapshot-20040623/libtool --mode=compile > gcc -g - O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 > -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual > -Wcast-align - Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations - Wnested-externs -W -Wredundant-decls -Wundef > -I../../../../include -I../.. - I../rlm_eap_tls -DOPENSSL_NO_KRB5 > -I./../../libeap -c rlm_eap_peap.c mkdir .libs > gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS - > DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith - > Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes - Wmissing-declarations -Wnested-externs -W > -Wredundant-decls -Wundef - I../../../../include -I../.. > -I../rlm_eap_tls -DOPENSSL_NO_KRB5 -I./../../libeap -c rlm_eap_peap.c > -fPIC -DPIC -o .libs/rlm_eap_peap.o rlm_eap_peap.c: In function > `eappeap_authenticate': rlm_eap_peap.c:190: warning: passing arg 2 of > `record_plus' from incompatible pointer type > gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS - > DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith - > Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes - Wmissing-declarations -Wnested-externs -W > -Wredundant-decls -Wundef - I../../../../include -I../.. > -I../rlm_eap_tls -DOPENSSL_NO_KRB5 -I./../../libeap -c rlm_eap_peap.c > -o rlm_eap_peap.o >/dev/null 2>&1 > /home/mack/sources/freeradius-snapshot-20040623/libtool --mode=compile > gcc -g - O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 > -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual > -Wcast-align - Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations - Wnested-externs -W -Wredundant-decls -Wundef > -I../../../../include -I../.. - I../rlm_eap_tls -DOPENSSL_NO_KRB5 > -I./../../libeap -c peap.c > gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS - > DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith - > Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes - Wmissing-declarations -Wnested-externs -W > -Wredundant-decls -Wundef - I../../../../include -I../.. > -I../rlm_eap_tls -DOPENSSL_NO_KRB5 -I./../../libeap -c peap.c -fPIC > -DPIC -o .libs/peap.o peap.c: In function `eappeap_process': > peap.c:578: warning: comparison between signed and unsigned > gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS - > DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith - > Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes - Wmissing-declarations -Wnested-externs -W > -Wredundant-decls -Wundef - I../../../../include -I../.. > -I../rlm_eap_tls -DOPENSSL_NO_KRB5 -I./../../libeap -c peap.c -o > peap.o >/dev/null 2>&1 > /home/mack/sources/freeradius-snapshot-20040623/libtool --mode=link > gcc -release 1.1.0-pre0 \ -module -export-dynamic -g -O2 -D_REENTRANT > - D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall - D_GNU_SOURCE > -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite- strings > -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations > -Wnested- externs -W -Wredundant-decls -Wundef -I../../../../include > -I../.. -I../rlm_eap_tls - DOPENSSL_NO_KRB5 -I./../../libeap \ -o > rlm_eap_peap.la -rpath /usr/local/lib rlm_eap_peap.lo peap.lo > ../../../../lib/libradius.la \ ../rlm_eap_tls/rlm_eap_tls.la > -L./../../libeap -leap -lcrypto -lssl -lcrypto -lnsl -lresolv - > lpthread -lcrypto > > *** Warning: Linking the shared library rlm_eap_peap.la against the > loadable module *** rlm_eap_tls.so is not portable! gcc -shared > .libs/rlm_eap_peap.o .libs/peap.o -Wl,--rpath - > Wl,/home/mack/sources/freeradius-snapshot-20040623/src/lib/.libs > -Wl,--rpath - Wl,/home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/types/rlm_eap_tls/.libs -Wl,--rpath - > Wl,/home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/libeap/.libs > ../../../../lib/.libs/libradius.so ../rlm_eap_tls/.libs/rlm_eap_tls.so > -L/home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/libeap > /home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/libeap/.libs/libeap.so -lssl -lnsl > -lresolv -lpthread - lcrypto -Wl,-soname > -Wl,rlm_eap_peap-1.1.0-pre0.so -o .libs/rlm_eap_peap-1.1.0- pre0.so > (cd .libs && rm -f rlm_eap_peap.so && ln -s rlm_eap_peap-1.1.0-pre0.so > rlm_eap_peap.so) ar cru .libs/rlm_eap_peap.a rlm_eap_peap.o peap.o > ranlib .libs/rlm_eap_peap.a creating rlm_eap_peap.la (cd .libs && rm > -f rlm_eap_peap.la && ln -s ../rlm_eap_peap.la rlm_eap_peap.la) > gmake[9]: Leaving directory `/home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/types/rlm_eap_peap' > > .... and .... > > Making static dynamic in rlm_eap_ttls... > gmake[9]: Entering directory `/home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/types/rlm_eap_ttls' gmake[9]: Nothing to > be done for `static'. > /home/mack/sources/freeradius-snapshot-20040623/libtool --mode=compile > gcc -g - O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 > -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual > -Wcast-align - Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations - Wnested-externs -W -Wredundant-decls -Wundef > -I../../../../include -I./../.. - I./../../libeap -I../rlm_eap_tls > -DOPENSSL_NO_KRB5 -c rlm_eap_ttls.c mkdir .libs > gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS - > DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith - > Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes - Wmissing-declarations -Wnested-externs -W > -Wredundant-decls -Wundef - I../../../../include -I./../.. > -I./../../libeap -I../rlm_eap_tls -DOPENSSL_NO_KRB5 -c rlm_eap_ttls.c > -fPIC -DPIC -o .libs/rlm_eap_ttls.o > gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS - > DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith - > Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes - Wmissing-declarations -Wnested-externs -W > -Wredundant-decls -Wundef - I../../../../include -I./../.. > -I./../../libeap -I../rlm_eap_tls -DOPENSSL_NO_KRB5 -c rlm_eap_ttls.c > -o rlm_eap_ttls.o >/dev/null 2>&1 > /home/mack/sources/freeradius-snapshot-20040623/libtool --mode=compile > gcc -g - O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 > -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual > -Wcast-align - Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations - Wnested-externs -W -Wredundant-decls -Wundef > -I../../../../include -I./../.. - I./../../libeap -I../rlm_eap_tls > -DOPENSSL_NO_KRB5 -c ttls.c > gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS - > DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith - > Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes - Wmissing-declarations -Wnested-externs -W > -Wredundant-decls -Wundef - I../../../../include -I./../.. > -I./../../libeap -I../rlm_eap_tls -DOPENSSL_NO_KRB5 -c ttls.c -fPIC > -DPIC -o .libs/ttls.o > gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS - > DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith - > Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes - Wmissing-declarations -Wnested-externs -W > -Wredundant-decls -Wundef - I../../../../include -I./../.. > -I./../../libeap -I../rlm_eap_tls -DOPENSSL_NO_KRB5 -c ttls.c - o > ttls.o >/dev/null 2>&1 > /home/mack/sources/freeradius-snapshot-20040623/libtool --mode=link > gcc -release 1.1.0-pre0 \ -module -export-dynamic -g -O2 -D_REENTRANT > - D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall - D_GNU_SOURCE > -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite- strings > -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations > -Wnested- externs -W -Wredundant-decls -Wundef -I../../../../include > -I./../.. -I./../../libeap - I../rlm_eap_tls -DOPENSSL_NO_KRB5 \ -o > rlm_eap_ttls.la -rpath /usr/local/lib rlm_eap_ttls.lo ttls.lo > ../../../../lib/libradius.la \ ../rlm_eap_tls/rlm_eap_tls.la > -L./../../libeap -leap -lcrypto -lssl -lcrypto -lnsl -lresolv - > lpthread -lcrypto > > *** Warning: Linking the shared library rlm_eap_ttls.la against the > loadable module *** rlm_eap_tls.so is not portable! gcc -shared > .libs/rlm_eap_ttls.o .libs/ttls.o -Wl,--rpath - > Wl,/home/mack/sources/freeradius-snapshot-20040623/src/lib/.libs > -Wl,--rpath - Wl,/home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/types/rlm_eap_tls/.libs -Wl,--rpath - > Wl,/home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/libeap/.libs > ../../../../lib/.libs/libradius.so ../rlm_eap_tls/.libs/rlm_eap_tls.so > -L/home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/libeap > /home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/libeap/.libs/libeap.so -lssl -lnsl > -lresolv -lpthread - lcrypto -Wl,-soname > -Wl,rlm_eap_ttls-1.1.0-pre0.so -o .libs/rlm_eap_ttls-1.1.0- pre0.so > (cd .libs && rm -f rlm_eap_ttls.so && ln -s rlm_eap_ttls-1.1.0-pre0.so > rlm_eap_ttls.so) ar cru .libs/rlm_eap_ttls.a rlm_eap_ttls.o ttls.o > ranlib .libs/rlm_eap_ttls.a creating rlm_eap_ttls.la (cd .libs && rm > -f rlm_eap_ttls.la && ln -s ../rlm_eap_ttls.la rlm_eap_ttls.la) > gmake[9]: Leaving directory `/home/mack/sources/freeradius-snapshot- > 20040623/src/modules/rlm_eap/types/rlm_eap_ttls' > > ...... > > When running "/usr/local/sbin/radiusd -X", it dies with the following > last few lines in the output: > > rlm_eap: Loaded and initialized type tls > rlm_eap: Failed to link EAP-Type/ttls: rlm_eap_ttls.so: cannot open > shared object file: No such file or directory radiusd.conf[9]: eap: > Module instantiation failed. > > .... > > I noticed there was a bug similar to this (#75) that was still opened > (assigned). Does anyone have any suggestions on how I should begin > troubleshooting this problem? > > > thanks, > mack > > > > -- > This message has been scanned for viruses and > dangerous content by the CSU Email Gateway, and is > believed to be clean. > > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html -- This message has been scanned for viruses and dangerous content by the CSU Email Gateway, and is believed to be clean. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html