So everything boils down to this command that is failing:-<br><br>/home/rqwt36/freeradius/freeradius-server/libtool --mode=link gcc -release 2.2.0     -module -export-dynamic   -o rlm_eap2         -rpath /usr/local/lib rlm_eap2.lo rlm_eap2.c /home/rqwt36/freeradius/freeradius-server/src/lib/<a href="http://libfreeradius-radius.la">libfreeradius-radius.la</a> /home/rqwt36/hostap/hostap/eap_example/libeap.so -lnsl -lresolv -lpthread<br>
<br>which spawn this command:-<br>gcc -o .libs/rlm_eap2 .libs/rlm_eap2.o rlm_eap2.c /home/rqwt36/hostap/hostap/eap_example/libeap.so -Wl,--export-dynamic  /home/rqwt36/freeradius/freeradius-server/src/lib/.libs/libfreeradius-radius.so -lnsl -lresolv -lpthread  -Wl,--rpath -Wl,/usr/local/lib<br>
which fails.<br><br><div class="gmail_quote">On Fri, May 18, 2012 at 6:25 PM, JustinP <span dir="ltr"><<a href="mailto:justintphilip@gmail.com" target="_blank">justintphilip@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">Alan,
<br><br>Here is what I did:-
<br><br>git clone git://<a href="http://git.freeradius.org/freeradius-server.git" target="_blank">git.freeradius.org/freeradius-server.git</a>
<br>cd freeradius-server
<br>git fetch origin v2.1.x:v2.1.x
<br>git checkout v2.1.x
<br><br>edited the src/modules/rlm_eap2/Makefile from:-
<br><br>HOSTAP      = /path/to/hostapd
<br><br>TARGET      =
<br>SRCS        = rlm_eap2.c
<br><br>to:-
<br><br>HOSTAP      = /home/rqwt36/hostap/hostap
<br><br>TARGET      = rlm_eap2
<br>SRCS        = rlm_eap2.c
<br><br></div>executed the configuration file as :-
<br>./configure --with-experimental-modules --with-rlm_eap2
<br>make
<br><div class="im HOEnZb"><br>I have attached the output of the configuration and make commands.
<br><br>I had tried adding the path of freeradius-server/src to
<br>src/modules/rlm_eap2/Makefile
<br>But get same errors.
<br><br>When I force add all the paths in CPLUS_INCLUDE_PATH and C_INCLUDE_PATH
<br>These errors go away but other errors like duplicate definitions
<br>starts appearing...
<br><br></div><div class="HOEnZb"><div class="h5">On Fri, May 18, 2012 at 3:42 PM, Alan DeKok-2 [via FreeRadius]
<br><<a href="http://user/SendEmail.jtp?type=node&node=5711882&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:
<div><div><br>>
<br>> JustinP wrote:
<br>> > In raddb/experimental.conf the descriptions are not complete to use the
<br>> > eap2 module.
<br>> > It doesn't say which parameters to use with configure. to enable
<br>> > experimental modules.
<br>>
<br>>   Which is why I replied to your message.
<br>>
<br>> > I hit issues only when I use configuration with following params:-
<br>> >
<br>> > ./configure --with-experimental-modules --with-rlm_eap2
<br>>
<br>>   You have carefully NOT said what the problems are.  How do you expect
<br>> anyone to help you?
<br>>
<br>>   Bad question: "I tried stuff and it didn't work.  What do I do next?"
<br>>
<br>>   Good question: DESCRIBE WHAT HAPPENED.
<br>>
<br>> > Just curious if it compiling without any problem for you with above
<br>> > configuration?
<br>>
<br>>   It works for me.
<br>>
<br>>   I also TOLD YOU what you could do to get it to build: edit the
<br>> Makefile.  It's not hard.  Doing that takes less time than posting on
<br>> the mailing list.
<br>>
<br>>   Alan DeKok.
<br>> -
<br>> List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/devel.html" rel="nofollow" link="external" target="_blank">http://www.freeradius.org/list/devel.html</a><br>>
<br>>
<br>> ________________________________
<br>> If you reply to this email, your message will be added to the discussion below:
<br>> <a href="http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-server-v2-1-x-for-rlm-eap2-tp5711734p5711822.html" rel="nofollow" link="external" target="_blank">http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-server-v2-1-x-for-rlm-eap2-tp5711734p5711822.html</a><br>
> To unsubscribe from Compilation issues on freeradius-server v2.1.x for rlm_eap2, click here.
<br>> NAML
</div></div><br><br><br></div></div><span class="HOEnZb"><font color="#888888">--
<br>Regards
<br>Justin Philip
<br><div><br><img src=""> <b>configure_log.txt</b> (89K) <a href="http://freeradius.1045715.n5.nabble.com/attachment/5711882/0/configure_log.txt" rel="nofollow" link="external" target="_blank">Download Attachment</a><br>
<img src=""> <b>make_output.txt</b> (239K) <a href="http://freeradius.1045715.n5.nabble.com/attachment/5711882/1/make_output.txt" rel="nofollow" link="external" target="_blank">Download Attachment</a></div>
        
<br><hr width="300" align="left">
View this message in context: <a href="http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-server-v2-1-x-for-rlm-eap2-tp5711734p5711882.html" target="_blank">Re: Compilation issues on freeradius-server v2.1.x for rlm_eap2</a></font></span><div class="HOEnZb">
<div class="h5"><br>
Sent from the <a href="http://freeradius.1045715.n5.nabble.com/FreeRadius-Dev-f2789673.html" target="_blank">FreeRadius - Dev mailing list archive</a> at Nabble.com.<br></div></div><br>-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/devel.html" target="_blank">http://www.freeradius.org/list/devel.html</a><br></blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Justin Philip<br>