FreeRADIUS 1.0.4 can't compile on Solaris 10

Wei Chiang wclim at streamyx.com
Sat Aug 13 07:25:14 CEST 2005


Greetings everybody.

There's this problem that has me completely stumped despite several late
night attempts to solve it, so any help would be gratefully appreciated. ;-)

I'm trying to compile FreeRADIUS 1.0.4 on a Solaris 10 machine. The
initial "./configure" seems to have completed without too much fuss. The
problem is that when I try "make all" the following error message is 
given after it tries to compile:

************************* snip ****************************************
gmake[1]: Entering directory `/export/home/tmp/freeradius-1.0.4'
Making all in libltdl...
gmake[2]: Entering directory `/export/home/tmp/freeradius-1.0.4/libltdl'
/bin/sh ./libtool --mode=link gcc  -g -O2 -D_REENTRANT 
-D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE 
-DNDEBUG  -o libltdl.la -rpath /usr/local/lib -no-undefined 
-version-info 4:0:1 ltdl.lo -ldl -lnsl -lresolv -lsocket -lposix4 
-lpthread -lcrypto -lssl
rm -fr .libs/libltdl.la .libs/libltdl.* .libs/libltdl.*
/usr/ccs/bin/ld -G -z defs -h libltdl.so.3 -o .libs/libltdl.so.3.1.0 
ltdl.lo  -ldl -lnsl -lresolv -lsocket -lposix4 -lpthread -lcrypto -lssl -lc
ld: fatal: library -lcrypto: not found
ld: fatal: library -lssl: not found
ld: fatal: File processing errors. No output written to 
.libs/libltdl.so.3.1.0
gmake[2]: *** [libltdl.la] Error 1
gmake[2]: Leaving directory `/export/home/tmp/freeradius-1.0.4/libltdl'
gmake[1]: *** [common] Error 2
gmake[1]: Leaving directory `/export/home/tmp/freeradius-1.0.4'
*** Error code 2
The following command caused the error:
/usr/sfw/bin/gmake  WHAT_TO_MAKE=all common
make: Fatal error: Command failed for target `all'
************************* snip ****************************************


The really strange part is that "./configure" seems to actually find the 
libcrypto and libssl libraries:

************************* snip ****************************************
checking for openssl/ssl.h... yes
checking for DH_new in -lcrypto... yes
checking for SSL_new in -lssl... yes
************************* snip ****************************************


I did the following command line tests and got the following results:
#ld -lcrypto
ld: fatal: library -lcrypto: not found
ld: fatal: File processing errors. No output written to a.out

#ld -lssl
ld: fatal: library -lssl: not found
ld: fatal: File processing errors. No output written to a.out


I think the libraries are already in the correct path:
#crle
Configuration file [version 4]: /var/ld/ld.config
   Default Library Path (ELF):   /lib:/usr/lib:/usr/local/lib:/usr/sfw/lib
   Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system 
default)

Command line:
   crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/local/lib:/usr/sfw/lib


Does anyone know how to solve this problem? Let me know if I've left out 
any information. Thanks again!




More information about the Freeradius-Users mailing list