Freeradius static compilation with openssl
hitheshm at tataelxsi.co.in
hitheshm at tataelxsi.co.in
Thu Mar 27 12:46:33 CET 2008
Thank you for your reply...As you said I have tried with latest
freeradius-server-2.0.2 but I am getting the following compilation error...I
have used the same config as used previously...I think prblm might be with
environmental variables...I don't know how to make it properly...Still it is
attempting to static link of dynamic object...Can you please help me??
****************************************************************************
*********************************
..............................................
bs/rlm_ippool.a /usr/lib/libgdbm.so ../modules/rlm_krb5/.libs/rlm_krb5.a
-lkrb5 -lcom_err -lk5crypto ../modules/rlm_ldap/.libs/rlm_ldap.a -lldap_r
../modules/rlm_logintime/.libs/rlm_logintime.a
../modules/rlm_mschap/.libs/rlm_mschap.a ../modules/rlm_pam/.libs/rlm_pam.a
-lpam ../modules/rlm_pap/.libs/rlm_pap.a
../modules/rlm_passwd/.libs/rlm_passwd.a
../modules/rlm_perl/.libs/rlm_perl.a -L/usr/local/lib
-L/usr/lib/perl5/5.8.6/i386-linux-thread-multi/CORE -lperl -lc
../modules/rlm_preprocess/.libs/rlm_preprocess.a
../modules/rlm_python/.libs/rlm_python.a -L/usr/lib/python2.4/config -lutil
-lpython2.4 -lm ../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_unix/.libs/rlm_unix.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
-L/home/teleap/opensslDir8b/lib/
../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
/home/hitheshm/freeradius-server-2.0.2/src/modules/rlm_eap/libeap/.libs/libf
reeradius-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_eap/libeap/.libs/libfreeradius-eap.a
/home/hitheshm/freeradius-server-2.0.2/src/lib/.libs/libfreeradius-radius.a
-lnsl -lresolv -lpthread -lcrypt
/home/hitheshm/freeradius-server-2.0.2/libltdl/.libs/libltdl.a -ldl -lssl
-lcrypto
/usr/bin/ld: attempted static link of dynamic object `/usr/lib/libgdbm.so'
collect2: ld returned 1 exit status
rm -f .libs/radiusdS.o
gmake[4]: *** [radiusd] Error 1
gmake[4]: Leaving directory
`/home/hitheshm/freeradius-server-2.0.2/src/main'
gmake[3]: *** [common] Error 2
gmake[3]: Leaving directory `/home/hitheshm/freeradius-server-2.0.2/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/hitheshm/freeradius-server-2.0.2/src'
gmake[1]: *** [common] Error 2
gmake[1]: Leaving directory `/home/hitheshm/freeradius-server-2.0.2'
make: *** [all] Error 2
****************************************************************************
*********************************
Thanks,
Hithesh
-----Original Message-----
From: freeradius-devel-bounces+hitheshm=tataelxsi.co.in at lists.freeradius.org
[mailto:freeradius-devel-bounces+hitheshm=tataelxsi.co.in at lists.freeradius.o
rg] On Behalf Of Alan DeKok
Sent: Tuesday, March 25, 2008 3:37 PM
To: FreeRadius developers mailing list
Subject: Re: Freeradius static compilation with openssl
hitheshm at tataelxsi.co.in wrote:
> 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/
That should work, presuming all necessary libraries have been built
statically.
...
> /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
It looks like it's still trying to use -ldl, which is a dynamic library.
Also, you're using version 1. Version 2 is much better...
> Is it posible to compile freeradius with static option ?? If so how I
> can compile with openssl ?? Please help me out!!!
I've done it with Version 2. I haven't tried it with Version 1 in a long
time.
Alan DeKok.
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/devel.html
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.
More information about the Freeradius-Devel
mailing list