Hi Artur:

My
"freeradius-0.7.1/src/modules/rlm_eap/types/rlm_eap_tls/Makefile"
looks like the following:

===================================================
# Generated automatically from Makefile.in by
configure.
TARGET      = rlm_eap_tls
SRCS        = rlm_eap_tls.c eap_tls.c cb.c tls.c
mppe_keys.c
RLM_CFLAGS  = $(INCLTDL) -I../..
-I/usr/local/openssl/include
HEADERS     = eap_tls.h
RLM_INSTALL =
RLM_LDFLAGS +=  -L/usr/local/openssl/lib
RLM_LIBS    +=  -lssl -lcrypto
 
$(STATIC_OBJS): $(HEADERS)
 
$(DYNAMIC_OBJS): $(HEADERS)
 
RLM_DIR=../../
include ${RLM_DIR}../rules.mak
==================================================
The output of the "ldd" command looks like:
==================================================
root@tstpc11:/home/chauhan > ldd
/usr/local/lib/rlm_eap_tls-0.7.1.so
        libcrypto.so.0.9.6 =>
/usr/lib/libcrypto.so.0.9.6 (0x40029000)
        libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6
(0x400ea000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40118000)
        libresolv.so.2 => /lib/libresolv.so.2
(0x4012e000)
        libpthread.so.0 => /lib/libpthread.so.0
(0x40140000)
        libc.so.6 => /lib/libc.so.6 (0x40156000)
        libdl.so.2 => /lib/libdl.so.2 (0x40273000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2
(0x80000000)
===================================================
My run_radius script looks like the following:
===================================================
#!/bin/sh -x
 
LD_LIBRARY_PATH=/usr/local/openssl/lib
LD_PRELOAD=/usr/local/openssl/lib/libcrypto.so
 
export LD_LIBRARY_PATH LD_PRELOAD
 
/usr/local/sbin/radiusd $@
#/tmp/freeradius-0.7.1/src/main/radiusd $@
===================================================
I've attached the log of FreeRadius alongwith this
email.

POinters would be appreciated. :-)
Thanks,
Nikhil.

--- Artur Hecker <[EMAIL PROTECTED]> wrote:
> hi Nikhil
> 
> 
> in my case i have:
> 
> radius:/usr/local/lib# ldd rlm_eap_tls-0.8-pre.so
>          libnsl.so.1 => /lib/libnsl.so.1
> (0x400df000)
>          libresolv.so.2 => /lib/libresolv.so.2
> (0x400f3000)
>          libpthread.so.0 => /lib/libpthread.so.0
> (0x40104000)
>          libc.so.6 => /lib/libc.so.6 (0x40118000)
>          /lib/ld-linux.so.2 => /lib/ld-linux.so.2
> (0x80000000)
> 
> no ssl no crypto at all (see later for explanation).
> and as you see i'm 
> still using the 0.8 prerelease... (i think it works
> since the 0.5 though).
> 
> 
> > LD_LIBRARY_PATH=/usr/local/openssl/lib
> > LD_PRELOAD=/usr/local/openssl/lib/libcrypto.so
> > I tried to add /usr/local/openssl before
> /usr/local in the /etc/ld.so.conf.
> 
> in the ld.so.conf i have /usr/local/lib as the
> forelast entry. try to 
> play with it. but anyway, what i said before was
> wrong since i don't 
> have the ssl and crypto in the ld config. it was
> wrong especially 
> because in the /usr/lib/openssl/lib i don't have any
> so files, only 
> static a-libs. so, i'm sorry for the inconvenience.
> 
> that's what you should have in your Makefile:
> 
> TARGET      = rlm_eap_tls
> SRCS        = rlm_eap_tls.c eap_tls.c cb.c tls.c
> mppe_keys.c
> RLM_CFLAGS  = $(INCLTDL) -I../.. 
> -I/usr/local/openssl/include
> HEADERS     = eap_tls.h
> RLM_INSTALL =
> RLM_INSTALL=
> 
> RLM_LDFLAGS += -L/usr/local/openssl/lib
> RLM_LIBS    += -lssl -lcrypto
> 
> $(STATIC_OBJS): $(HEADERS)
> 
> $(DYNAMIC_OBJS): $(HEADERS)
> 
> RLM_DIR=../../
> include ${RLM_DIR}../rules.mak
> 
> 
> ciao
> artur
> 
> 
> -- 
> Artur Hecker                               Groupe Acc�s et Mobilit�
> hecker[at]enst[dot]fr           D�partement Informatique et
> R�seaux
> +33 1 45 81 7507              46, rue Barrault 75634 Paris cedex
> 13
> http://www.infres.enst.fr                                ENST Paris
> 
> 
> - 
> List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus � Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Attachment: radius_log
Description: radius_log

Reply via email to