<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    On 09/05/2012 03:30 PM,
    <a class="moz-txt-link-abbreviated" href="mailto:freeradius-devel-request@lists.freeradius.org">freeradius-devel-request@lists.freeradius.org</a> wrote:
    <blockquote
cite="mid:mailman.1.1346839204.18540.freeradius-devel@lists.freeradius.org"
      type="cite">
      <div class="moz-text-plain" wrap="true" graphical-quote="true"
        style="font-family: -moz-fixed; font-size: 12px;"
        lang="x-western">
        <pre wrap="">Send Freeradius-Devel mailing list submissions to
        <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:freeradius-devel@lists.freeradius.org">freeradius-devel@lists.freeradius.org</a>

To subscribe or unsubscribe via the World Wide Web, visit
        <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeradius.org/mailman/listinfo/freeradius-devel">http://lists.freeradius.org/mailman/listinfo/freeradius-devel</a>
or, via email, send a message with subject or body 'help' to
        <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:freeradius-devel-request@lists.freeradius.org">freeradius-devel-request@lists.freeradius.org</a>

You can reach the person managing the list at
        <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:freeradius-devel-owner@lists.freeradius.org">freeradius-devel-owner@lists.freeradius.org</a>

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 <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:swaraj.vutturi@redpinesignals.com"><swaraj.vutturi@redpinesignals.com></a>
To: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:freeradius-devel@lists.freeradius.org">freeradius-devel@lists.freeradius.org</a>
Cc: Swaraj <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:swaraj.vutturi@redpinesignals.com"><swaraj.vutturi@redpinesignals.com></a>
Subject: Re: Freeradius 2.1.12 with EAP-FAST compilation issues
Message-ID: <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:5046EAD0.9060108@redpinesignals.com"><5046EAD0.9060108@redpinesignals.com></a>
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 
<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>backup/freeradius-server-2.1.12/src/lib<span class="moz-txt-tag">/</span></i>.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.

<div class="moz-txt-sig">-- 
Regards,
Swaraj




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20120905/a6eea738/attachment-0001.html"><http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20120905/a6eea738/attachment-0001.html></a>

------------------------------

Message: 2
Date: Wed, 05 Sep 2012 08:57:31 +0200
From: Alan DeKok <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:aland@deployingradius.com"><aland@deployingradius.com></a>
To: FreeRadius developers mailing list
        <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:freeradius-devel@lists.freeradius.org"><freeradius-devel@lists.freeradius.org></a>
Subject: Re: Freeradius 2.1.12 with EAP-FAST compilation issues
Message-ID: <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:5046F7DB.4040303@deployingradius.com"><5046F7DB.4040303@deployingradius.com></a>
Content-Type: text/plain; charset=ISO-8859-1

Swaraj wrote:
</div></pre>
        <blockquote type="cite" style="color: #000000;">
          <pre wrap=""><span class="moz-txt-citetags">> </span>I was using freeradius-server 2.1.12 without any issues till now, but
<span class="moz-txt-citetags">> </span>now i wanted to use EAP-FAST in freeradius server. So i started
<span class="moz-txt-citetags">> </span>compiling rlm_eap2 module, but i got lot of errors releated to
<span class="moz-txt-citetags">> </span>libeap.so. Some how i fixed all issues related to liaeap.so with
<span class="moz-txt-citetags">> </span>hostapd. Currently i'm stuck with these kind of errors am unable to
<span class="moz-txt-citetags">> </span>proceed further. I require some help to resolve these.
<span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span>I used
<span class="moz-txt-citetags">> </span>./configure --with-experimental-modules --with-rlm_eap2 LIBS="-ldl"
<span class="moz-txt-citetags">> </span>make
</pre>
        </blockquote>
        <pre wrap="">  The module doesn't use configure.  You need to edit the
rlm_eap2/Makefile to get it to build.

  So... what did you do?

</pre>
        <blockquote type="cite" style="color: #000000;">
          <pre wrap=""><span class="moz-txt-citetags">> </span>gcc -o .libs/rlm_eap2 .libs/rlm_eap2.o rlm_eap2.c
</pre>
        </blockquote>
        <pre wrap="">  That's wrong.  Something screwed up the build.

  So... what did you change in the Makefile?

  Alan DeKok.


------------------------------

-
List info/subscribe/unsubscribe? See <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeradius.org/list/devel.html">http://www.freeradius.org/list/devel.html</a>


End of Freeradius-Devel Digest, Vol 89, Issue 4
***********************************************


</pre>
      </div>
    </blockquote>
    <br>
    Hi Alan,<br>
    <br>
    Thanks for the response.<br>
    I dint make any changes in rlm_eap2/Makefile, but just changed
    hostapd path. <br>
    It looks like this<br>
    *********************************<br>
    #HOSTAP     = /backup/hostapd/b<br>
    HOSTAP      = /home/livecd/Downloads/hostapd-0.7.3<br>
    #HOSTAP     = /home/livecd/Downloads/hostapd-1.0<br>
    #HOSTAP     = /path/to/hostap<br>
    <br>
    TARGET      = rlm_eap2 <br>
    SRCS        = rlm_eap2.c<br>
    HEADERS     =<br>
    RLM_CFLAGS  = $(INCLTDL) -I$(HOSTAP)/src/eap_common \<br>
              -I$(HOSTAP)/src/eap_server  -I$(HOSTAP)/src  \<br>
              -I$(HOSTAP)/src/common -I$(HOSTAP)/src/utils <br>
    RLM_LIBS    = $(HOSTAP)/eap_example/libeap.so<br>
    <br>
    ## this uses the RLM_CFLAGS and RLM_LIBS and SRCS defs to make
    TARGET.<br>
    include ../rules.mak<br>
    ********************************<br>
    <br>
    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.<br>
    <br>
    --<br>
    Regards,<br>
    Swaraj<br>
  </body>
</html>