Unable to build freeradius-server-2.1.10 with --enable-shared=yes and --enable-static=no

K Arvind KArvind at fortresstech.com
Thu Jun 2 18:35:21 CEST 2011


Hi,

   I'm trying to build freeradius-server-2.1.10 with the configure flags "-enabled-shared" set to yes, and "-enable-static" set to no. In the make step, I get a warning "libfreeradius-radius-2.1.10.so, needed by libeap/.libs/libfreeradius-eap.so, not found (try using -rpath or -rpath-link)" that seems to lead to a series of undefined reference errors.

   Any input or suggestions on this would be appreciated.

   Thanks,
   Arvind


Configure settings:

        confargs= --prefix=/gw/config --enable-shared=yes --enable-static=no --enable-dlopen=no  --enable-developer --with-raddbdir=/gw/config/radius/raddb --with-openssl-includes=/gw/apache/openssl/include --with-openssl-libraries=/gw/apache/openssl/lib --host=mips-fti-linux-gnu --without-rlm_acctlog --without-rlm_attr_filter --without-rlm_attr_rewrite --without-rlm_caching --without-rlm_copy_packet --without-rlm_counter --without-rlm_cram --without-rlm_dbm --without-rlm_detail --without-rlm_digest --without-rlm_dynamic_clients --without-rlm_eap2 --without-rlm_example --without-rlm_expiration --without-rlm_fastusers --without-rlm_ippool --without-rlm_jradius --without-rlm_krb5 --without-rlm_ldap --without-rlm_linelog --without-rlm_logintime --without-rlm_opendirectory --without-rlm_otp --without-rlm_pam --without-rlm_passwd --without-rlm_perl --without-rlm_policy --without-rlm_preprocess --without-rlm_protocol_filter --without-rlm_python --without-rlm_radutmp --without-rlm_ruby --without-rlm_sim_files --without-rlm_smb --without-rlm_smsotp --without-rlm_sql --without-rlm_sql_log --without-rlm_sqlcounter --without-rlm_sqlhpwippool --without-rlm_sqlippool --without-rlm_unix --without-rlm_wimax
cur directory= freeradius-server-2.1.10

  The 'make' step fails with the following errors:

/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/libtool --mode=link mips-fti-linux-gnu-gcc   -o radeapclient radeapclient.lo libeap/libfreeradius-eap.la -lnsl -lresolv  -lpthread -L/gw/apache/openssl/lib -lcrypto -lssl -lcrypto
mips-fti-linux-gnu-gcc -o .libs/radeapclient .libs/radeapclient.o  libeap/.libs/libfreeradius-eap.so -L/gw/apache/openssl/lib -lssl -lcrypto -lnsl -lresolv -lpthread -Wl,--rpath -Wl,/gw/config/lib
/tools/gcc-4.1.2-glibc-2.7/mips/lib/gcc/mips-fti-linux-gnu/4.1.2/../../../../mips-fti-linux-gnu/bin/ld: warning: libfreeradius-radius-2.1.10.so, needed by libeap/.libs/libfreeradius-eap.so, not found (try using -rpath or -rpath-link)
.libs/radeapclient.o: In function `debug_packet':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:179: undefined reference to `fr_packet_codes'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:192: undefined reference to `vp_prints'
.libs/radeapclient.o: In function `cleanresp':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:297: undefined reference to `pairdelete'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:298: undefined reference to `pairdelete'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:311: undefined reference to `pairbasicfree'
.libs/radeapclient.o: In function `process_eap_start':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:334: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:393: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:394: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:395: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:410: undefined reference to `paircreate'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:412: undefined reference to `pairreplace'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:415: undefined reference to `paircreate'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:420: undefined reference to `pairreplace'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:432: undefined reference to `paircreate'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:438: undefined reference to `fr_rand'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:439: undefined reference to `fr_rand'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:440: undefined reference to `fr_rand'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:441: undefined reference to `fr_rand'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:443: undefined reference to `pairreplace'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:455: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:461: undefined reference to `paircreate'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:469: undefined reference to `pairreplace'.libs/radeapclient.o: In function `sendrecv_eap':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:848: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:851: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:856: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:857: undefined reference to `strlcpy'
.libs/radeapclient.o: In function `map_eap_types':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1221: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1228: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1270: undefined reference to `pairdelete'.libs/radeapclient.o: In function `sendrecv_eap':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:909: undefined reference to `fr_md5_calc'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:913: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:914: undefined reference to `strlcpy'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:917: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:918: undefined reference to `strlcpy'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:921: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:922: undefined reference to `strlcpy'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:925: undefined reference to `rad_chap_encode'
.libs/radeapclient.o: In function `send_packet':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:209: undefined reference to `rad_send'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:223: undefined reference to `rad_recv'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:239: undefined reference to `ip_ntoh'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:240: undefined reference to `ip_ntoh'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:248: undefined reference to `fr_perror'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:265: undefined reference to `rad_verify'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:266: undefined reference to `fr_perror'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:270: undefined reference to `rad_decode'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:271: undefined reference to `fr_perror'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:276: undefined reference to `fr_debug_flag'
.libs/radeapclient.o: In function `unmap_eap_types':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1301: undefined reference to `paircreate'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1303: undefined reference to `pairadd'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1305: undefined reference to `paircreate'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1307: undefined reference to `pairadd'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1344: undefined reference to `paircreate'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1347: undefined reference to `pairadd'
.libs/radeapclient.o: In function `respond_eap_md5':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:779: undefined reference to `paircopy2'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:785: undefined reference to `paircopy2'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:792: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:816: undefined reference to `fr_MD5Init'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:817: undefined reference to `fr_MD5Update'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:818: undefined reference to `fr_MD5Update'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:819: undefined reference to `fr_MD5Update'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:820: undefined reference to `fr_MD5Final'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:822: undefined reference to `paircreate'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:827: undefined reference to `pairreplace'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:829: undefined reference to `pairreplace'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:832: undefined reference to `pairreplace'.libs/radeapclient.o: In function `respond_eap_sim':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:670: undefined reference to `paircopy2'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:675: undefined reference to `paircopy2'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:684: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:687: undefined reference to `paircreate'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:689: undefined reference to `pairreplace'.libs/radeapclient.o: In function `unmap_eapsim_types':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1374: undefined reference to `pairfind'
.libs/radeapclient.o: In function `respond_eap_sim':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:698: undefined reference to `pairfind'
.libs/radeapclient.o: In function `process_eap_challenge':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:499: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:500: undefined reference to `pairfind'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:518: undefined reference to `pairfind'
.libs/radeapclient.o:/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:519: more undefined
references to `pairfind' follow
.libs/radeapclient.o: In function `process_eap_challenge':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:632: undefined reference to `paircreate'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:634: undefined reference to `pairreplace'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:640: undefined reference to `paircreate'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:646: undefined reference to `pairreplace'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:648: undefined reference to `paircreate'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:651: undefined reference to `pairreplace'.libs/radeapclient.o: In function `respond_eap_sim':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:754: undefined reference to `pairreplace'/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:760: undefined reference to `pairreplace'.libs/radeapclient.o: In function `main':
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:979: undefined reference to `fr_debug_flag'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1002: undefined reference to `fr_debug_flag'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1080: undefined reference to `dict_init'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1081: undefined reference to `fr_perror'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1085: undefined reference to `rad_alloc'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1086: undefined reference to `fr_perror'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1150: undefined reference to `ip_hton'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1185: undefined reference to `pairfree'
/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap/radeapclient.c:1187: undefined reference to `readvp2'
libeap/.libs/libfreeradius-eap.so: undefined reference to `fr_strerror'
libeap/.libs/libfreeradius-eap.so: undefined reference to `fr_SHA1Final'
libeap/.libs/libfreeradius-eap.so: undefined reference to `pairmake'
libeap/.libs/libfreeradius-eap.so: undefined reference to `dict_valbyattr'
libeap/.libs/libfreeradius-eap.so: undefined reference to `paircopy'
libeap/.libs/libfreeradius-eap.so: undefined reference to `fr_SHA1Init'
libeap/.libs/libfreeradius-eap.so: undefined reference to `fr_SHA1Update'
libeap/.libs/libfreeradius-eap.so: undefined reference to `fr_hmac_sha1'
libeap/.libs/libfreeradius-eap.so: undefined reference to `fr_SHA1FinalNoLen'
libeap/.libs/libfreeradius-eap.so: undefined reference to `fr_SHA1Transform'
collect2: ld returned 1 exit status
gmake[6]: *** [radeapclient] Error 1
gmake[6]: Leaving directory `/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules/rlm_eap'
gmake[5]: *** [rlm_eap] Error 2
gmake[5]: Leaving directory `/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src/modules'
gmake[3]: *** [modules] Error 2
gmake[3]: Leaving directory `/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10/src'
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory `/ws/karvind/projects/bugsmain3/thirdparty/freeradius/freeradius-server-2.1.10'
make: *** [all] Error 2



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110602/df6ad47e/attachment.html>


More information about the Freeradius-Users mailing list