Freeradius static compilation with openssl
hitheshm at tataelxsi.co.in
hitheshm at tataelxsi.co.in
Tue Mar 25 09:58:54 CET 2008
Hi All,
I have been trying to build Free-Radius with static libraries.The following
configuration I have tried.
./configure --prefix=/home/FrRadius --disable-shared
--with-openssl-libraries=/home/opensslDir8b/lib/
--with-openssl-includes=/home/opensslDir8b/include/
I have compiled openssl with the following configuration
./config no-shared --prefix=/home/openssl
And I have tried almost all the combinations like, openssl with shared
option,no-shared option and freeradius with "--enable-static",
"--enable-shared=no".. but
I am getting the same linking error all the time.
The error message shown below:
****************************************************************************
****************************************************************************
*******
...........................
..........................................
..........................................................
extracting global C symbols from `../modules/rlm_files/.libs/rlm_files.a'
extracting global C symbols from `../modules/rlm_ippool/.libs/rlm_ippool.a'
extracting global C symbols from `../modules/rlm_mschap/.libs/rlm_mschap.a'
extracting global C symbols from
`../modules/rlm_preprocess/.libs/rlm_preprocess.a'
extracting global C symbols from `../modules/rlm_realm/.libs/rlm_realm.a'
extracting global C symbols from `../modules/rlm_unix/.libs/rlm_unix.a'
extracting global C symbols from
`../modules/rlm_eap/types/rlm_eap_sim/.libs/rlm_eap_sim.a'
extracting global C symbols from
`../modules/rlm_eap/types/rlm_eap_mschapv2/.libs/rlm_eap_mschapv2.a'
(cd .libs && gcc -I/home/Fradius-1.0/libltdl/ -c -fno-builtin "radiusdS.c")
rm -f .libs/radiusdS.c .libs/radiusd.nm .libs/radiusd.nmS .libs/radiusd.nmT
gcc .libs/radiusdS.o -pie -static -o radiusd acct.o auth.o client.o
conffile.o exec.o files.o log.o mainconfig.o modules.o
modcall.o nas.o proxy.o radiusd.o radius_snmp.o request_list.o session.o
smux.o threads.o util.o valuepair.o version.o timestr.o xlat.o
-Wl,--export-dynamic ../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_counter/.libs/rlm_counter.a
../modules/rlm_detail/.libs/rlm_detail.a ../modules/rlm_eap/.libs/rlm_eap.a
../modules/rlm_exec/.libs/rlm_exec.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 /usr/lib/libgdbm.so
../modules/rlm_mschap/.libs/rlm_mschap.a
../modules/rlm_preprocess/.libs/rlm_preprocess.a
../modules/rlm_realm/.libs/rlm_realm.a
../modules/rlm_unix/.libs/rlm_unix.a
../modules/rlm_eap/types/rlm_eap_sim/.libs/rlm_eap_sim.a
/home/Fradius-1.0/src/modules/rlm_eap/libeap/.libs/libeap.a
../modules/rlm_eap/types/rlm_eap_mschapv2/.libs/rlm_eap_mschapv2.a
../modules/rlm_eap/libeap/.libs/libeap.a
/home/Fradius-1.0/src/lib/.libs/libradius.a ../lib/.libs/libradius.a -lcrypt
/home/Fradius-1.0/libltdl/.libs/libltdl.a -ldl -lnsl -lresolv -lpthread
/usr/bin/ld: -static and -shared may not be used together
collect2: ld returned 1 exit status
rm -f .libs/radiusdS.o
gmake[4]: *** [radiusd] Error 1
gmake[4]: Leaving directory `/home/Fradius-1.0/src/main'
gmake[3]: *** [common] Error 2
gmake[3]: Leaving directory `/home/Fradius-1.0/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/Fradius-1.0/src'
gmake[1]: *** [common] Error 2
gmake[1]: Leaving directory `/home/Fradius-1.0'
make: *** [all] Error 2
****************************************************************************
*************************************************************************
Is it posible to compile freeradius with static option ?? If so how I can
compile with openssl ?? Please help me out!!!
Thanks in advance.
Regards,
Hithesh
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
Contact your Administrator for further information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20080325/cefc0449/attachment.html>
More information about the Freeradius-Devel
mailing list