FREERADIUS COMPILING ERROR
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@gmail.com
On Jan 8, 2019, at 5:49 AM, Onur GURSOY <onurgursoygyte@gmail.com> wrote:
nowadays, i try to compile freeradius which is between 2.0.0 and 2.1.9
The v2 version is end of life. There's no reason to use it. Please try the v3 branch.
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. ... /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'
Your OpenSSL crypto library was build with zlib compression. But it isn't being linked to a zlib library. You might try adding "-lz" to the LIBS entry in Make.inc. But to be frank, porting FreeRADIUS can be complex. It can require a detailed understanding of the local system, along with libraries, compilers, linkers, etc. Alan DeKok.
Hello Alan, I tried everything, adding -lz option etc. But i solved this problem with workaround, this is my configuration, ./configure \ --prefix=/usr/local/freeradius \ --without-rlm_krb5 \ --without-rlm_pam \ --without-rlm_sql_oracle \ --without-rlm_perl \ --without-rlm_ldap \ --with-system-libtool I disable static compiling, and i recompile project then it compiled succesfuly, but now i have problem with runtime, there is no any output Alan DeKok <aland@deployingradius.com>, 8 Oca 2019 Sal, 15:58 tarihinde şunu yazdı:
On Jan 8, 2019, at 5:49 AM, Onur GURSOY <onurgursoygyte@gmail.com> wrote:
nowadays, i try to compile freeradius which is between 2.0.0 and 2.1.9
The v2 version is end of life. There's no reason to use it. Please try the v3 branch.
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. ... /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'
Your OpenSSL crypto library was build with zlib compression. But it isn't being linked to a zlib library.
You might try adding "-lz" to the LIBS entry in Make.inc.
But to be frank, porting FreeRADIUS can be complex. It can require a detailed understanding of the local system, along with libraries, compilers, linkers, etc.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
-- 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@gmail.com
Hello Alan, I use 2.0.x or 2.1.x bracnh, Because freeradius 3.0.x bracnh doesnt compile on cygwin Thanks, My Best Regards, Onur GURSOY <onurgursoygyte@gmail.com>, 8 Oca 2019 Sal, 16:54 tarihinde şunu yazdı:
Hello Alan,
I tried everything, adding -lz option etc. But i solved this problem with workaround, this is my configuration, ./configure \ --prefix=/usr/local/freeradius \ --without-rlm_krb5 \ --without-rlm_pam \ --without-rlm_sql_oracle \ --without-rlm_perl \ --without-rlm_ldap \ --with-system-libtool
I disable static compiling, and i recompile project then it compiled succesfuly, but now i have problem with runtime, there is no any output
Alan DeKok <aland@deployingradius.com>, 8 Oca 2019 Sal, 15:58 tarihinde şunu yazdı:
On Jan 8, 2019, at 5:49 AM, Onur GURSOY <onurgursoygyte@gmail.com> wrote:
nowadays, i try to compile freeradius which is between 2.0.0 and 2.1.9
The v2 version is end of life. There's no reason to use it. Please try the v3 branch.
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. ... /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'
Your OpenSSL crypto library was build with zlib compression. But it isn't being linked to a zlib library.
You might try adding "-lz" to the LIBS entry in Make.inc.
But to be frank, porting FreeRADIUS can be complex. It can require a detailed understanding of the local system, along with libraries, compilers, linkers, etc.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
-- 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@gmail.com
-- 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@gmail.com
On Jan 8, 2019, at 8:56 AM, Onur GURSOY <onurgursoygyte@gmail.com> wrote:
I use 2.0.x or 2.1.x bracnh, Because freeradius 3.0.x bracnh doesnt compile on cygwin
If you could give a *useful* description of the problem, that would help. e.g. "here are the errors". Cut & paste works here, too. Saying "I tried stuff and things went wrong" is just content-free. It's entirely pointless to post such a message to the list. Alan DeKok.
Hello ALan,
Saying "I tried stuff and things went wrong" is just content-free. It's entirely pointless to post such a message to the list.
I apologize to all community, this mys mitake, hurrying. if i wanna tell basically, I have one problem , its running a radius version on linux and (windows or cygwin) first, i tried 2.0.x branch because i noticed this: http://www.freeradius.net/DIY_Binaries.html so i tried compile freeradius which is version from 2.0.0 to 2.1.9 on cygwin i take a single error. its already in first messages. I solved problem by the disabling static compiling from configuration.Because i think this problem is relevant crypto ssl and static binding zlib (NOTE: this is real solution ? i dont know yet) After succesfuly compiling, i started the radiusd.exe but there is no output on cosole or output of ps -ef. here is the relevant log (radius.log):
$ cat /usr/local/freeradius/var/log/radius/radius.log Tue Jan 8 20:24:06 2019 : Error: /usr/local/freeradius/etc/raddb/radiusd.conf[1560]: Failed to link to module 'rlm_exec': The specified module could not be found. Tue Jan 8 20:24:06 2019 : Error: Errors initializing modules
but I think, i have already lib
$ ls -la /usr/local/freeradius/lib/ | grep exec -rw-r--r-- 1 z003z7rf Domain Users 25802 Jan 8 20:21 rlm_exec.a -rwxr-xr-x 1 z003z7rf Domain Users 957 Jan 8 20:21 rlm_exec.la lrwxrwxrwx 1 z003z7rf Domain Users 11 Jan 8 20:21 rlm_exec-2.0.0.la -> rlm_exec.la
i attached radiusd,conf file my configuration file. Because freeradius 3.0.x bracnh doesnt compile on cygwin
The output is not this computer, i will send soon, because i changed many things and i installed many library such as libtalloc for compiling. So Many Thanks For Your Helping. Again i apologize for the my stupid message before. Alan DeKok <aland@deployingradius.com>, 8 Oca 2019 Sal, 17:14 tarihinde şunu yazdı:
On Jan 8, 2019, at 8:56 AM, Onur GURSOY <onurgursoygyte@gmail.com> wrote:
I use 2.0.x or 2.1.x bracnh, Because freeradius 3.0.x bracnh doesnt compile on cygwin
If you could give a *useful* description of the problem, that would help. e.g. "here are the errors". Cut & paste works here, too.
Saying "I tried stuff and things went wrong" is just content-free. It's entirely pointless to post such a message to the list.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
-- 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@gmail.com
On Jan 8, 2019, at 12:44 PM, Onur GURSOY <onurgursoygyte@gmail.com> wrote:
first, i tried 2.0.x branch because i noticed this: http://www.freeradius.net/DIY_Binaries.html
I don't think that page has been updated for 10 years...
so i tried compile freeradius which is version from 2.0.0 to 2.1.9 on cygwin i take a single error. its already in first messages. I solved problem by the disabling static compiling from configuration.Because i think this problem is relevant crypto ssl and static binding zlib (NOTE: this is real solution ? i dont know yet)
If it works...
After succesfuly compiling, i started the radiusd.exe but there is no output on cosole or output of ps -ef. here is the relevant log (radius.log):
$ cat /usr/local/freeradius/var/log/radius/radius.log Tue Jan 8 20:24:06 2019 : Error: /usr/local/freeradius/etc/raddb/radiusd.conf[1560]: Failed to link to module 'rlm_exec': The specified module could not be found. Tue Jan 8 20:24:06 2019 : Error: Errors initializing modules
Start it in debug mode. That will be better. And I'm not sure that static linking works, TBH. It's just terrible.
i attached radiusd,conf file my configuration file.
Please don't do that. We don't need to see it. We already know what's in the config files.
Because freeradius 3.0.x bracnh doesnt compile on cygwin
The output is not this computer, i will send soon, because i changed many things and i installed many library such as libtalloc for compiling.
OK. Alan DeKok.
Hello Alan,
Start it in debug mode. That will be better.
I started in debug mode and i attached relevant output. However, i close modules which is in instantiate at radiusd.conf step by step first i close exec then, first i close expr then, first i close expiration and then ... so it didnt find any module But i think i have already all necessary lib i attached my lib list i think it couldnt lib dynamically but why ? Thanks My Best Regards, Alan DeKok <aland@deployingradius.com>, 8 Oca 2019 Sal, 21:08 tarihinde şunu yazdı:
On Jan 8, 2019, at 12:44 PM, Onur GURSOY <onurgursoygyte@gmail.com> wrote:
first, i tried 2.0.x branch because i noticed this: http://www.freeradius.net/DIY_Binaries.html
I don't think that page has been updated for 10 years...
so i tried compile freeradius which is version from 2.0.0 to 2.1.9 on cygwin i take a single error. its already in first messages. I solved problem by the disabling static compiling from configuration.Because i think this problem is relevant crypto ssl and static binding zlib (NOTE: this is real solution ? i dont know yet)
If it works...
After succesfuly compiling, i started the radiusd.exe but there is no output on cosole or output of ps -ef. here is the relevant log (radius.log):
$ cat /usr/local/freeradius/var/log/radius/radius.log Tue Jan 8 20:24:06 2019 : Error: /usr/local/freeradius/etc/raddb/radiusd.conf[1560]: Failed to link to module 'rlm_exec': The specified module could not be found. Tue Jan 8 20:24:06 2019 : Error: Errors initializing modules
Start it in debug mode. That will be better.
And I'm not sure that static linking works, TBH. It's just terrible.
i attached radiusd,conf file my configuration file.
Please don't do that. We don't need to see it. We already know what's in the config files.
Because freeradius 3.0.x bracnh doesnt compile on cygwin
The output is not this computer, i will send soon, because i changed many things and i installed many library such as libtalloc for compiling.
OK.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
-- 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@gmail.com
On Jan 8, 2019, at 1:31 PM, Onur GURSOY <onurgursoygyte@gmail.com> wrote:
I started in debug mode and i attached relevant output. However, i close modules which is in instantiate at radiusd.conf step by step first i close exec then, first i close expr then, first i close expiration and then ... so it didnt find any module But i think i have already all necessary lib i attached my lib list
i think it couldnt lib dynamically but why ?
There's much magic required to statically link the server, and still make it look like it's dynamically linked. The solution is to use a non-Windows platform, unfortunately. That way you get dynamic linking. We're not going to do changes to v2 at this point. And unless you can come up with patches for v3, we're not going to spend time debugging it ourselves. There are just too many other, higher priority things to work on. Alan DeKok.
participants (2)
-
Alan DeKok -
Onur GURSOY