Freeradius 2.1.12 with EAP-FAST compilation issues

Swaraj swaraj.vutturi at redpinesignals.com
Fri Sep 7 06:08:13 CEST 2012



On 09/06/2012 03:53 PM, freeradius-devel-request at lists.freeradius.org 
wrote:
> Send Freeradius-Devel mailing list submissions to
> 	freeradius-devel at lists.freeradius.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.freeradius.org/mailman/listinfo/freeradius-devel
> or, via email, send a message with subject or body 'help' to
> 	freeradius-devel-request at lists.freeradius.org
>
> You can reach the person managing the list at
> 	freeradius-devel-owner at lists.freeradius.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Freeradius-Devel digest..."
>
>
> Today's Topics:
>
>     1. Re: Freeradius 2.1.12 with EAP-FAST compilation issues (Swaraj)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 06 Sep 2012 15:53:26 +0530
> From: Swaraj<swaraj.vutturi at redpinesignals.com>
> To:freeradius-devel at lists.freeradius.org
> Subject: Re: Freeradius 2.1.12 with EAP-FAST compilation issues
> Message-ID:<5048799E.8030704 at redpinesignals.com>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
>
>
> On 09/05/2012 03:30 PM,freeradius-devel-request at lists.freeradius.org
> wrote:
>> >  Send Freeradius-Devel mailing list submissions to
>> >  	freeradius-devel at lists.freeradius.org
>> >
>> >  To subscribe or unsubscribe via the World Wide Web, visit
>> >  	http://lists.freeradius.org/mailman/listinfo/freeradius-devel
>> >  or, via email, send a message with subject or body 'help' to
>> >  	freeradius-devel-request at lists.freeradius.org
>> >
>> >  You can reach the person managing the list at
>> >  	freeradius-devel-owner at lists.freeradius.org
>> >
>> >  When replying, please edit your Subject line so it is more specific
>> >  than "Re: Contents of Freeradius-Devel digest..."
>> >
>> >
>> >  Today's Topics:
>> >
>> >       1. Re: Freeradius 2.1.12 with EAP-FAST compilation issues (Swaraj)
>> >       2. Re: Freeradius 2.1.12 with EAP-FAST compilation issues
>> >          (Alan DeKok)
>> >
>> >
>> >  ----------------------------------------------------------------------
>> >
>> >  Message: 1
>> >  Date: Wed, 05 Sep 2012 11:31:52 +0530
>> >  From: Swaraj<swaraj.vutturi at redpinesignals.com>
>> >  To:freeradius-devel at lists.freeradius.org
>> >  Cc: Swaraj<swaraj.vutturi at redpinesignals.com>
>> >  Subject: Re: Freeradius 2.1.12 with EAP-FAST compilation issues
>> >  Message-ID:<5046EAD0.9060108 at redpinesignals.com>
>> >  Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>> >
>> >
>> >  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-0001.html>
>> >  ------------------------------ Message: 2 Date: Wed, 05 Sep 2012
>> >  08:57:31 +0200 From: Alan DeKok<aland at deployingradius.com>  To:
>> >  FreeRadius developers mailing list
>> >  <freeradius-devel at lists.freeradius.org>  Subject: Re: Freeradius 2.1.12
>> >  with EAP-FAST compilation issues Message-ID:
>> >  <5046F7DB.4040303 at deployingradius.com>  Content-Type: text/plain;
>> >  charset=ISO-8859-1 Swaraj wrote:
>>>> >>  >    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
>> >      The module doesn't use configure.  You need to edit the
>> >  rlm_eap2/Makefile to get it to build.
>> >
>> >      So... what did you do?
>> >
>>>> >>  >    gcc -o .libs/rlm_eap2 .libs/rlm_eap2.o rlm_eap2.c
>> >      That's wrong.  Something screwed up the build.
>> >
>> >      So... what did you change in the Makefile?
>> >
>> >      Alan DeKok.
>> >
>> >
>> >  ------------------------------
>> >
>> >  -
>> >  List info/subscribe/unsubscribe? Seehttp://www.freeradius.org/list/devel.html
>> >
>> >
>> >  End of Freeradius-Devel Digest, Vol 89, Issue 4
>> >  ***********************************************
>> >
>> >
> Hi Alan,
>
> Thanks for the response.
> I dint make any changes in rlm_eap2/Makefile, but just changed hostapd
> path.
> It looks like this
> *********************************
> #HOSTAP     = /backup/hostapd/b
> HOSTAP      = /home/livecd/Downloads/hostapd-0.7.3
> #HOSTAP     = /home/livecd/Downloads/hostapd-1.0
> #HOSTAP     = /path/to/hostap
>
> TARGET      = rlm_eap2
> SRCS        = rlm_eap2.c
> HEADERS     =
> RLM_CFLAGS  = $(INCLTDL) -I$(HOSTAP)/src/eap_common \
>             -I$(HOSTAP)/src/eap_server  -I$(HOSTAP)/src  \
>             -I$(HOSTAP)/src/common -I$(HOSTAP)/src/utils
> RLM_LIBS    = $(HOSTAP)/eap_example/libeap.so
>
> ## this uses the RLM_CFLAGS and RLM_LIBS and SRCS defs to make TARGET.
> include ../rules.mak
> ********************************
>
> I'm compiling hostapd to generate "libeap.so" with hostapd1.0,
> hostapd.0.6.x and finally with hostapd.0.7.3.. I faced lot issues while
> compiling hostapd and finally when i generated libeap.so, rlm_eap2
> module compilation gave me tons of errors.
>
> --
> Regards,
> Swaraj
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:<http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20120906/16a2ec3f/attachment.html>
>
> ------------------------------
>
> -
> List info/subscribe/unsubscribe? Seehttp://www.freeradius.org/list/devel.html
>
>
> End of Freeradius-Devel Digest, Vol 89, Issue 5
> ***********************************************
>
>

Hi Alan,

I'm waiting for your response. I'm configuring rlm_eap2 from top 
directory, not from rlm_eap2 directory. The included error messages are 
from error portion i.e from rlm_eap2 after compiling rlm_eap.

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


In the previous mail i showed you rlm_eap2 Makefile which i was using 
and I also mentioned what hostapd's i used for generating libeap.so.

I'm not able to compile freeradius with eap-fast support.

If you have any package that easily compiles freeradius and hostapd for 
eap-fast. I will be very much thankful to you. My project is currently 
blocked because of this.

Thanks
Swaraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120907/4c55a9f3/attachment-0001.html>


More information about the Freeradius-Users mailing list