FREERADIUS COMPILING ERROR

Onur GURSOY onurgursoygyte at gmail.com
Tue Jan 8 11:49:27 CET 2019


Hello Everyone,

nowadays, i try to compile freeradius which is between 2.0.0 and 2.1.9
version on cygwin.
But i have an error.
i do some googling, so i tried configure --with-system-libtool or adding
-DIE_LIBTOOL_DIE into the Make.inc. but result is fail.
What is the root problem.

So Many thanks for your helping.

Error:
libtool: link: gcc .libs/radiusdS.o -static -o radiusd.exe .libs/acct.o
.libs/auth.o .libs/client.o .libs/conffile.o .libs/crypt.o .libs/exec.o
.libs/files.o .libs/listen.o .libs/log.o .libs/mainconfig.o .libs/modules.o
.libs/modcall.o .libs/radiusd.o .libs/radius_snmp.o .libs/session.o
.libs/smux.o .libs/threads.o .libs/util.o .libs/valuepair.o .libs/version.o
.libs/xlat.o .libs/event.o .libs/realms.o .libs/evaluate.o .libs/vmps.o
.libs/detail.o -Wl,--export-all-symbols
../modules/rlm_acctlog/.libs/rlm_acctlog.a
../modules/rlm_acct_unique/.libs/rlm_acct_unique.a
../modules/rlm_always/.libs/rlm_always.a
../modules/rlm_attr_filter/.libs/rlm_attr_filter.a
../modules/rlm_attr_rewrite/.libs/rlm_attr_rewrite.a
../modules/rlm_chap/.libs/rlm_chap.a
../modules/rlm_checkval/.libs/rlm_checkval.a
../modules/rlm_copy_packet/.libs/rlm_copy_packet.a
../modules/rlm_counter/.libs/rlm_counter.a
../modules/rlm_dbm/.libs/rlm_dbm.a -lgdbm_compat
../modules/rlm_detail/.libs/rlm_detail.a
../modules/rlm_digest/.libs/rlm_digest.a ../modules/rlm_eap/.libs/rlm_eap.a
../modules/rlm_exec/.libs/rlm_exec.a
../modules/rlm_expiration/.libs/rlm_expiration.a
../modules/rlm_expr/.libs/rlm_expr.a
../modules/rlm_fastusers/.libs/rlm_fastusers.a
../modules/rlm_files/.libs/rlm_files.a
../modules/rlm_ippool/.libs/rlm_ippool.a -lgdbm
../modules/rlm_logintime/.libs/rlm_logintime.a
../modules/rlm_mschap/.libs/rlm_mschap.a ../modules/rlm_otp/.libs/rlm_otp.a
../modules/rlm_pap/.libs/rlm_pap.a ../modules/rlm_passwd/.libs/rlm_passwd.a
../modules/rlm_preprocess/.libs/rlm_preprocess.a
../modules/rlm_python/.libs/rlm_python.a -L/usr/lib/python2.7/config -ldl
-lpython2.7 ../modules/rlm_radutmp/.libs/rlm_radutmp.a
../modules/rlm_realm/.libs/rlm_realm.a ../modules/rlm_sql/.libs/rlm_sql.a
../modules/rlm_sqlcounter/.libs/rlm_sqlcounter.a
../modules/rlm_sqlippool/.libs/rlm_sqlippool.a
../modules/rlm_sql_log/.libs/rlm_sql_log.a
../modules/rlm_policy/.libs/rlm_policy.a
../modules/rlm_eap/types/rlm_eap_md5/.libs/rlm_eap_md5.a
../modules/rlm_eap/types/rlm_eap_leap/.libs/rlm_eap_leap.a
../modules/rlm_eap/types/rlm_eap_tls/.libs/rlm_eap_tls.a
../modules/rlm_eap/types/rlm_eap_ttls/.libs/rlm_eap_ttls.a
../modules/rlm_eap/types/rlm_eap_sim/.libs/rlm_eap_sim.a
../modules/rlm_eap/types/rlm_eap_peap/.libs/rlm_eap_peap.a
/cygdrive/d/z003z7rf/projects/openSource/radius/freeRadious/sourceCode/freeradius-server-release_2_0_0/src/modules/rlm_eap/libeap/.libs/libfreeradius-eap.a
../modules/rlm_eap/types/rlm_eap_mschapv2/.libs/rlm_eap_mschapv2.a
../modules/rlm_eap/types/rlm_eap_gtc/.libs/rlm_eap_gtc.a
../modules/rlm_sql/drivers/rlm_sql_iodbc/.libs/rlm_sql_iodbc.a
-L/usr/lib/iodbc -liodbc
../modules/rlm_sql/drivers/rlm_sql_mysql/.libs/rlm_sql_mysql.a -L/usr/lib
-lmysqlclient -lz
../modules/rlm_sql/drivers/rlm_sql_postgresql/.libs/rlm_sql_postgresql.a
-lpq ../modules/rlm_sql/drivers/rlm_sql_unixodbc/.libs/rlm_sql_unixodbc.a
-lodbc ../modules/rlm_eap/libeap/.libs/libfreeradius-eap.a
/cygdrive/d/z003z7rf/projects/openSource/radius/freeRadious/sourceCode/freeradius-server-release_2_0_0/src/lib/.libs/libfreeradius-radius.a
-lws2_32 -lresolv -lpthread -lcrypt /usr/lib/libltdl.dll.a -lssl -lcrypto
/usr/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_expand_block':
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:239: undefined
reference to `inflate'
/usr/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_compress_block':
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:210: undefined
reference to `deflate'
/usr/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_free':
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:504: undefined
reference to `inflateEnd'
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:509: undefined
reference to `deflateEnd'
/usr/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_finish':
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:187: undefined
reference to `inflateEnd'
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:188: undefined
reference to `deflateEnd'
/usr/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_init':
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:157: undefined
reference to `inflateInit_'
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:168: undefined
reference to `deflateInit_'
/usr/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_flush':
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:675: undefined
reference to `deflate'
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:680: undefined
reference to `zError'
/usr/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_write':
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:630: undefined
reference to `deflate'
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:633: undefined
reference to `zError'
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:596: undefined
reference to `deflateInit_'
/usr/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_read':
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:546: undefined
reference to `inflate'
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:549: undefined
reference to `zError'
/usr/src/debug/openssl-1.0.2p-1/crypto/comp/c_zlib.c:535: undefined
reference to `inflateInit_'
collect2: error: ld returned 1 exit status
libtool: link: rm -f ".libs/radiusdS.o"
make[4]: *** [Makefile:66: radiusd] Error 1
make[4]: Leaving directory
'/cygdrive/d/z003z7rf/projects/openSource/radius/freeRadious/sourceCode/freeradius-server-release_2_0_0/src/main'
make[3]: *** [Makefile:23: common] Error 2
make[3]: Leaving directory
'/cygdrive/d/z003z7rf/projects/openSource/radius/freeRadious/sourceCode/freeradius-server-release_2_0_0/src'
make[2]: *** [Makefile:13: all] Error 2
make[2]: Leaving directory
'/cygdrive/d/z003z7rf/projects/openSource/radius/freeRadious/sourceCode/freeradius-server-release_2_0_0/src'
make[1]: *** [Makefile:71: common] Error 2
make[1]: Leaving directory
'/cygdrive/d/z003z7rf/projects/openSource/radius/freeRadious/sourceCode/freeradius-server-release_2_0_0'
make: *** [Makefile:18: all] Error 2


-- 
Onur GÜRSOY
R&D Engineer in Embedded Systems
Master Student at Gebze Institute Of Technology
Department Of Electronic Engineering
GSM : 0(545) 764 7653
e-mail: onurgursoygyte at gmail.com


More information about the Freeradius-Devel mailing list