Freeradius 2.1.12 with EAP-FAST compilation issues

Swaraj swaraj.vutturi at redpinesignals.com
Wed Sep 5 08:01:52 CEST 2012


Hi All,

I was using freeradius-server 2.1.12 without any issues till now, but 
now i wanted to use EAP-FAST in freeradius server. So i started 
compiling rlm_eap2 module, but i got lot of errors releated to 
libeap.so. Some how i fixed all issues related to liaeap.so with 
hostapd. Currently i'm stuck with these kind of errors am unable to 
proceed further. I require some help to resolve these.

I used
./configure --with-experimental-modules --with-rlm_eap2 LIBS="-ldl"
make

I get the following error message:
----------------------------------------------
gmake[6]: Leaving directory 
`/backup/freeradius-server-2.1.12/src/modules/rlm_eap'
Making all in rlm_eap2...
/usr/bin/gmake -w -C rlm_eap2 all
gmake[6]: Entering directory 
`/backup/freeradius-server-2.1.12/src/modules/rlm_eap2'
/backup/freeradius-server-2.1.12/libtool --mode=compile gcc  -g -O2 
-Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG 
-I/backup/freeradius-server-2.1.12/src 
-I/backup/freeradius-server-2.1.12/libltdl 
-I/backup/freeradius-server-2.1.12/libltdl 
-I/home/livecd/Downloads/hostapd-0.7.3/src/eap_common 
-I/home/livecd/Downloads/hostapd-0.7.3/src/eap_server  
-I/home/livecd/Downloads/hostapd-0.7.3/src 
-I/home/livecd/Downloads/hostapd-0.7.3/src/common 
-I/home/livecd/Downloads/hostapd-0.7.3/src/utils  -c rlm_eap2.c
  gcc -g -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS 
-DNDEBUG -I/backup/freeradius-server-2.1.12/src 
-I/backup/freeradius-server-2.1.12/libltdl 
-I/backup/freeradius-server-2.1.12/libltdl 
-I/home/livecd/Downloads/hostapd-0.7.3/src/eap_common 
-I/home/livecd/Downloads/hostapd-0.7.3/src/eap_server 
-I/home/livecd/Downloads/hostapd-0.7.3/src 
-I/home/livecd/Downloads/hostapd-0.7.3/src/common 
-I/home/livecd/Downloads/hostapd-0.7.3/src/utils -c rlm_eap2.c  -fPIC 
-DPIC -o .libs/rlm_eap2.o
rlm_eap2.c: In function 'eap_instantiate':
rlm_eap2.c:622:2: warning: implicit declaration of function 
'eap_server_register_methods'
rlm_eap2.c: In function 'eap_authenticate':
rlm_eap2.c:962:41: warning: pointer targets in assignment differ in 
signedness
rlm_eap2.c:963:35: warning: pointer targets in assignment differ in 
signedness
  gcc -g -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS 
-DNDEBUG -I/backup/freeradius-server-2.1.12/src 
-I/backup/freeradius-server-2.1.12/libltdl 
-I/backup/freeradius-server-2.1.12/libltdl 
-I/home/livecd/Downloads/hostapd-0.7.3/src/eap_common 
-I/home/livecd/Downloads/hostapd-0.7.3/src/eap_server 
-I/home/livecd/Downloads/hostapd-0.7.3/src 
-I/home/livecd/Downloads/hostapd-0.7.3/src/common 
-I/home/livecd/Downloads/hostapd-0.7.3/src/utils -c rlm_eap2.c -o 
rlm_eap2.o >/dev/null 2>&1
/backup/freeradius-server-2.1.12/libtool --mode=link gcc -release 2.1.12 \
-module -export-dynamic   -o rlm_eap2     \
-rpath /usr/local/lib rlm_eap2.lo rlm_eap2.c 
/backup/freeradius-server-2.1.12/src/lib/libfreeradius-radius.la 
/home/livecd/Downloads/hostapd-0.7.3/eap_example/libeap.so -lnsl 
-lresolv -ldl -lpthread
libtool: link: warning: `-release' is ignored for programs
gcc -o .libs/rlm_eap2 .libs/rlm_eap2.o rlm_eap2.c 
/home/livecd/Downloads/hostapd-0.7.3/eap_example/libeap.so 
-Wl,--export-dynamic 
/backup/freeradius-server-2.1.12/src/lib/.libs/libfreeradius-radius.so 
-lnsl -lresolv -ldl -lpthread  -Wl,--rpath -Wl,/usr/local/lib
/tmp/cchrL0fh.o:(.data+0x0): multiple definition of `debug_flag'
.libs/rlm_eap2.o:(.data+0x0): first defined here
/tmp/cchrL0fh.o:(.bss+0x0): multiple definition of `request_log_file'
.libs/rlm_eap2.o:/backup/freeradius-server-2.1.12/src/modules/rlm_eap2/rlm_eap2.c:465: 
first defined here
/tmp/cchrL0fh.o:(.bss+0x4): multiple definition of `debug_log_file'
.libs/rlm_eap2.o:/backup/freeradius-server-2.1.12/src/modules/rlm_eap2/rlm_eap2.c:467: 
first defined here
/tmp/cchrL0fh.o:(.data+0x160): multiple definition of `rlm_eap2'
.libs/rlm_eap2.o:(.data.rel.local+0x0): first defined here
/usr/lib/gcc/i686-redhat-linux/4.5.1/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
.libs/rlm_eap2.o: In function `eap_authenticate':
rlm_eap2.c:(.text+0x21a): undefined reference to `radlog'
rlm_eap2.c:(.text+0x230): undefined reference to `radlog'
rlm_eap2.c:(.text+0x4a9): undefined reference to `radius_pairmake'
rlm_eap2.c:(.text+0x526): undefined reference to `radius_pairmake'
rlm_eap2.c:(.text+0xa26): undefined reference to `log_debug'
rlm_eap2.c:(.text+0xa4b): undefined reference to `log_debug'
rlm_eap2.c:(.text+0xa6a): undefined reference to `log_debug'
rlm_eap2.c:(.text+0xab0): undefined reference to `radlog'
rlm_eap2.c:(.text+0xcfb): undefined reference to `radlog'
rlm_eap2.c:(.text+0xd16): undefined reference to `radlog'
rlm_eap2.c:(.text+0xe1a): undefined reference to `radlog'
rlm_eap2.c:(.text+0xe60): undefined reference to `radlog'
.libs/rlm_eap2.o: In function `eap_instantiate':
rlm_eap2.c:(.text+0x1065): undefined reference to `cf_section_parse'
rlm_eap2.c:(.text+0x10ce): undefined reference to 
`eap_server_register_methods'
rlm_eap2.c:(.text+0x10f1): undefined reference to `cf_subsection_find_next'
rlm_eap2.c:(.text+0x1143): undefined reference to `radlog'
rlm_eap2.c:(.text+0x115d): undefined reference to `cf_subsection_find_next'
rlm_eap2.c:(.text+0x1173): undefined reference to `cf_section_name1'
rlm_eap2.c:(.text+0x12df): undefined reference to `radlog'
rlm_eap2.c:(.text+0x12f5): undefined reference to `radlog'
rlm_eap2.c:(.text+0x1362): undefined reference to `radlog'
rlm_eap2.c:(.text+0x13ac): undefined reference to `radlog'
/tmp/cchrL0fh.o: In function `eaplist_add':
rlm_eap2.c:(.text+0xfb): undefined reference to `rad_assert_fail'
rlm_eap2.c:(.text+0x121): undefined reference to `rad_assert_fail'
rlm_eap2.c:(.text+0x2de): undefined reference to `radlog'
/tmp/cchrL0fh.o: In function `eaplist_find':
rlm_eap2.c:(.text+0x417): undefined reference to `rad_assert_fail'
rlm_eap2.c:(.text+0x599): undefined reference to `radlog'
/tmp/cchrL0fh.o: In function `eap_example_server_init_tls':
rlm_eap2.c:(.text+0x895): undefined reference to `radlog'
rlm_eap2.c:(.text+0x8cd): undefined reference to `radlog'
/tmp/cchrL0fh.o: In function `eap_instantiate':
rlm_eap2.c:(.text+0x935): undefined reference to `cf_section_parse'
rlm_eap2.c:(.text+0x9cc): undefined reference to `radlog'
rlm_eap2.c:(.text+0x9e6): undefined reference to 
`eap_server_register_methods'
rlm_eap2.c:(.text+0xa2e): undefined reference to `cf_subsection_find_next'
rlm_eap2.c:(.text+0xa41): undefined reference to `cf_section_name1'
rlm_eap2.c:(.text+0xa6f): undefined reference to `radlog'
rlm_eap2.c:(.text+0xb3d): undefined reference to `radlog'
rlm_eap2.c:(.text+0xbac): undefined reference to `cf_subsection_find_next'
rlm_eap2.c:(.text+0xbe5): undefined reference to `radlog'
rlm_eap2.c:(.text+0xc20): undefined reference to `radlog'
/tmp/cchrL0fh.o: In function `eap_example_server_step':
rlm_eap2.c:(.text+0xdbf): undefined reference to `log_debug'
rlm_eap2.c:(.text+0xdff): undefined reference to `log_debug'
rlm_eap2.c:(.text+0xe7f): undefined reference to `radius_pairmake'
rlm_eap2.c:(.text+0xee6): undefined reference to `radius_pairmake'
rlm_eap2.c:(.text+0xf47): undefined reference to `log_debug'
/tmp/cchrL0fh.o: In function `eap_vp2data':
rlm_eap2.c:(.text+0xfc4): undefined reference to `radlog'
rlm_eap2.c:(.text+0xfed): undefined reference to `radlog'
rlm_eap2.c:(.text+0x1048): undefined reference to `radlog'
rlm_eap2.c:(.text+0x1090): undefined reference to `radlog'
rlm_eap2.c:(.text+0x10d9): undefined reference to `radlog'
/tmp/cchrL0fh.o:rlm_eap2.c:(.text+0x1116): more undefined references to 
`radlog' follow
/tmp/cchrL0fh.o: In function `eap_authenticate':
rlm_eap2.c:(.text+0x165b): undefined reference to `rad_assert_fail'
collect2: ld returned 1 exit status
gmake[6]: *** [rlm_eap2] Error 1
gmake[6]: Leaving directory 
`/backup/freeradius-server-2.1.12/src/modules/rlm_eap2'
gmake[5]: *** [rlm_eap2] Error 2
gmake[5]: Leaving directory `/backup/freeradius-server-2.1.12/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/backup/freeradius-server-2.1.12/src/modules'
gmake[3]: *** [modules] Error 2
gmake[3]: Leaving directory `/backup/freeradius-server-2.1.12/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/backup/freeradius-server-2.1.12/src'
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory `/backup/freeradius-server-2.1.12'
make: *** [all] Error 2



Please help me.

If you have some easy procedure for compiling freeradius for EAP-FAST, 
then please tell me the procedure.

-- 
Regards,
Swaraj




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20120905/a6eea738/attachment.html>


More information about the Freeradius-Devel mailing list