<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-text-flowed" style="font-family: -moz-fixed;
      font-size: 12px;" lang="x-western">
      <br>
      Hi All,
      <br>
      <br>
      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.
      <br>
      <br>
      I used
      <br>
      ./configure --with-experimental-modules --with-rlm_eap2
      LIBS="-ldl"
      <br>
      make
      <br>
      <br>
      I get the following error message:
      <br>
      ----------------------------------------------
      <br>
      gmake[6]: Leaving directory
      `/backup/freeradius-server-2.1.12/src/modules/rlm_eap'
      <br>
      Making all in rlm_eap2...
      <br>
      /usr/bin/gmake -w -C rlm_eap2 all
      <br>
      gmake[6]: Entering directory
      `/backup/freeradius-server-2.1.12/src/modules/rlm_eap2'
      <br>
      /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
      <br>
       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
      <br>
      rlm_eap2.c: In function 'eap_instantiate':
      <br>
      rlm_eap2.c:622:2: warning: implicit declaration of function
      'eap_server_register_methods'
      <br>
      rlm_eap2.c: In function 'eap_authenticate':
      <br>
      rlm_eap2.c:962:41: warning: pointer targets in assignment differ
      in signedness
      <br>
      rlm_eap2.c:963:35: warning: pointer targets in assignment differ
      in signedness
      <br>
       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
      <br>
      /backup/freeradius-server-2.1.12/libtool --mode=link gcc -release
      2.1.12 \
      <br>
      -module -export-dynamic   -o rlm_eap2     \
      <br>
      -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
      <br>
      libtool: link: warning: `-release' is ignored for programs
      <br>
      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
      <br>
      /tmp/cchrL0fh.o:(.data+0x0): multiple definition of `debug_flag'
      <br>
      .libs/rlm_eap2.o:(.data+0x0): first defined here
      <br>
      /tmp/cchrL0fh.o:(.bss+0x0): multiple definition of
      `request_log_file'
      <br>
      .libs/rlm_eap2.o:/backup/freeradius-server-2.1.12/src/modules/rlm_eap2/rlm_eap2.c:465:
      first defined here
      <br>
      /tmp/cchrL0fh.o:(.bss+0x4): multiple definition of
      `debug_log_file'
      <br>
      .libs/rlm_eap2.o:/backup/freeradius-server-2.1.12/src/modules/rlm_eap2/rlm_eap2.c:467:
      first defined here
      <br>
      /tmp/cchrL0fh.o:(.data+0x160): multiple definition of `rlm_eap2'
      <br>
      .libs/rlm_eap2.o:(.data.rel.local+0x0): first defined here
      <br>
      /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../crt1.o: In function
      `_start':
      <br>
      (.text+0x18): undefined reference to `main'
      <br>
      .libs/rlm_eap2.o: In function `eap_authenticate':
      <br>
      rlm_eap2.c:(.text+0x21a): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0x230): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0x4a9): undefined reference to `radius_pairmake'
      <br>
      rlm_eap2.c:(.text+0x526): undefined reference to `radius_pairmake'
      <br>
      rlm_eap2.c:(.text+0xa26): undefined reference to `log_debug'
      <br>
      rlm_eap2.c:(.text+0xa4b): undefined reference to `log_debug'
      <br>
      rlm_eap2.c:(.text+0xa6a): undefined reference to `log_debug'
      <br>
      rlm_eap2.c:(.text+0xab0): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0xcfb): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0xd16): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0xe1a): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0xe60): undefined reference to `radlog'
      <br>
      .libs/rlm_eap2.o: In function `eap_instantiate':
      <br>
      rlm_eap2.c:(.text+0x1065): undefined reference to
      `cf_section_parse'
      <br>
      rlm_eap2.c:(.text+0x10ce): undefined reference to
      `eap_server_register_methods'
      <br>
      rlm_eap2.c:(.text+0x10f1): undefined reference to
      `cf_subsection_find_next'
      <br>
      rlm_eap2.c:(.text+0x1143): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0x115d): undefined reference to
      `cf_subsection_find_next'
      <br>
      rlm_eap2.c:(.text+0x1173): undefined reference to
      `cf_section_name1'
      <br>
      rlm_eap2.c:(.text+0x12df): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0x12f5): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0x1362): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0x13ac): undefined reference to `radlog'
      <br>
      /tmp/cchrL0fh.o: In function `eaplist_add':
      <br>
      rlm_eap2.c:(.text+0xfb): undefined reference to `rad_assert_fail'
      <br>
      rlm_eap2.c:(.text+0x121): undefined reference to `rad_assert_fail'
      <br>
      rlm_eap2.c:(.text+0x2de): undefined reference to `radlog'
      <br>
      /tmp/cchrL0fh.o: In function `eaplist_find':
      <br>
      rlm_eap2.c:(.text+0x417): undefined reference to `rad_assert_fail'
      <br>
      rlm_eap2.c:(.text+0x599): undefined reference to `radlog'
      <br>
      /tmp/cchrL0fh.o: In function `eap_example_server_init_tls':
      <br>
      rlm_eap2.c:(.text+0x895): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0x8cd): undefined reference to `radlog'
      <br>
      /tmp/cchrL0fh.o: In function `eap_instantiate':
      <br>
      rlm_eap2.c:(.text+0x935): undefined reference to
      `cf_section_parse'
      <br>
      rlm_eap2.c:(.text+0x9cc): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0x9e6): undefined reference to
      `eap_server_register_methods'
      <br>
      rlm_eap2.c:(.text+0xa2e): undefined reference to
      `cf_subsection_find_next'
      <br>
      rlm_eap2.c:(.text+0xa41): undefined reference to
      `cf_section_name1'
      <br>
      rlm_eap2.c:(.text+0xa6f): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0xb3d): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0xbac): undefined reference to
      `cf_subsection_find_next'
      <br>
      rlm_eap2.c:(.text+0xbe5): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0xc20): undefined reference to `radlog'
      <br>
      /tmp/cchrL0fh.o: In function `eap_example_server_step':
      <br>
      rlm_eap2.c:(.text+0xdbf): undefined reference to `log_debug'
      <br>
      rlm_eap2.c:(.text+0xdff): undefined reference to `log_debug'
      <br>
      rlm_eap2.c:(.text+0xe7f): undefined reference to `radius_pairmake'
      <br>
      rlm_eap2.c:(.text+0xee6): undefined reference to `radius_pairmake'
      <br>
      rlm_eap2.c:(.text+0xf47): undefined reference to `log_debug'
      <br>
      /tmp/cchrL0fh.o: In function `eap_vp2data':
      <br>
      rlm_eap2.c:(.text+0xfc4): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0xfed): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0x1048): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0x1090): undefined reference to `radlog'
      <br>
      rlm_eap2.c:(.text+0x10d9): undefined reference to `radlog'
      <br>
      /tmp/cchrL0fh.o:rlm_eap2.c:(.text+0x1116): more undefined
      references to `radlog' follow
      <br>
      /tmp/cchrL0fh.o: In function `eap_authenticate':
      <br>
      rlm_eap2.c:(.text+0x165b): undefined reference to
      `rad_assert_fail'
      <br>
      collect2: ld returned 1 exit status
      <br>
      gmake[6]: *** [rlm_eap2] Error 1
      <br>
      gmake[6]: Leaving directory
      `/backup/freeradius-server-2.1.12/src/modules/rlm_eap2'
      <br>
      gmake[5]: *** [rlm_eap2] Error 2
      <br>
      gmake[5]: Leaving directory
      `/backup/freeradius-server-2.1.12/src/modules'
      <br>
      gmake[4]: *** [all] Error 2
      <br>
      gmake[4]: Leaving directory
      `/backup/freeradius-server-2.1.12/src/modules'
      <br>
      gmake[3]: *** [modules] Error 2
      <br>
      gmake[3]: Leaving directory `/backup/freeradius-server-2.1.12/src'
      <br>
      gmake[2]: *** [all] Error 2
      <br>
      gmake[2]: Leaving directory `/backup/freeradius-server-2.1.12/src'
      <br>
      gmake[1]: *** [src] Error 2
      <br>
      gmake[1]: Leaving directory `/backup/freeradius-server-2.1.12'
      <br>
      make: *** [all] Error 2
      <br>
      <br>
      <br>
      <br>
      Please help me.
      <br>
      <br>
      If you have some easy procedure for compiling freeradius for
      EAP-FAST, then please tell me the procedure.
      <br>
      <br>
      --
      <br>
      Regards,
      <br>
      Swaraj
      <br>
      <br>
      <br>
      <br>
      <br>
    </div>
  </body>
</html>