Hi
I have posted this question here in the past, but to no avail. Hopefully, someone can help me out now.
Possibly a more descriptive subject would draw more attention? I only
opened this as I'm having a slow email day.
Then I tried to set up freeradius with ./configure
--prefix=/usr/local/freeradius --sysconfdir=/etc, followed by the suggested
( http://www.missl.cs.umd.edu/wireless/eaptls/ ) workaround (by editing
rlm_eap_tls/Makefile) :
Those workarounds (rlm_eap_tls/Makefile and gethostby*_r) shouldn't be
neccessary if you use CVS HEAD instead, which will any week now become
FreeRADIUS 1.0.0
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/ssl/include
HEADERS = eap_tls.h
RLM_INSTALL =
RLM_LDFLAGS += -L/usr/local/ssl/lib
RLM_LIBS += -lssl -lcrypto
$(STATIC_OBJS): $(HEADERS)
$(DYNAMIC_OBJS): $(HEADERS)
RLM_DIR=../../ include ${RLM_DIR}../rules.mak
I get the following errors upon make : gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../../../../include -I../.. -I/usr/local/ssl/include -o rlm_eap_tls rlm_eap_tls.o eap_tls.o cb.o tls.o mppe_keys.o rlm_eap_tls.o eap_tls.o cb.o tls.o mppe_keys.o
This is the problem here. These shouldn't be in the list _twice_.
You'll have to find out why SRCS is being doubled up... Otherwise,
try it with CVS HEAD, without manually editing the Makefile, and
using the OpenSSL configuration parameters for FreeRADUIS
(./configure --help in the FreeRADIUS source root directory) to
point it at your OpenSSL installation.
-Wl,--export-dynamic -L/usr/local/ssl/lib
-lssl -lcrypto -lnsl -lresolv -lpthread -Wl,--rpath
-Wl,/usr/local/freeradius/lib
rlm_eap_tls.o(.data+0x140): In function `eaptls_initiate': rlm_eap_tls.c:137: multiple definition of `rlm_eap_tls' rlm_eap_tls.o(.data+0x140): rlm_eap_tls.c:137: first defined here
eap_tls.o(.text+0x0): In function `eaptls_alloc': eap_tls.c:45: multiple definition of `eaptls_alloc' eap_tls.o(.text+0x0): eap_tls.c:45: first defined here
This is the compiler complaining that you're linking the same thing
in twice.
Could anyone please help me sort this out ?
Hope that helps...
--
Paul "TBBle" Hampson, on a webmail client!
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html