Compilation issues on freeradius-server v2.1.x for rlm_eap2
I am trying to configure EAP-FAST on freeradius-server v2.1.x Once I download the source. There is no issue if I do:- ./configure make make install But I get compilation issue on rlm_eap2 if I follow the below steps:- ./configure --with-experimental-modules --with-rlm_eap2 make Its giving error for not able to include header files. For some reason the include paths specified in CFLAGS and RLM_CFLAGS are not getting picked up. I am using 32 bit Ubuntu lucid Release 10.04 running on Intel Pentium 4. Is anybody else seeing this issue? Any help on this will be appreciated. -- View this message in context: http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-ser... Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
JustinP wrote:
But I get compilation issue on rlm_eap2 if I follow the below steps:- ./configure --with-experimental-modules --with-rlm_eap2 make
Its giving error for not able to include header files.
Read raddb/experimental.conf. Look for the comments about eap2.
For some reason the include paths specified in CFLAGS and RLM_CFLAGS are not getting picked up.
That's not possible. You can edit the rlm_eap2/Makefile yourself, if you think there are any issues.
I am using 32 bit Ubuntu lucid Release 10.04 running on Intel Pentium 4.
Is anybody else seeing this issue? Any help on this will be appreciated.
The eap2 module is experimental, and not officially supported. Alan DeKok.
Alan, Thanks for your reply. In raddb/experimental.conf the descriptions are not complete to use the eap2 module. It doesn't say which parameters to use with configure. to enable experimental modules. Sorry to hear that experimental modules are not supported in this forum. In the raddb/experimental.conf file it is mentioned:- # If you want to use this module for experimentation, please # post your comments to the freeradius-devel list: # # http://lists.freeradius.org/mailman/listinfo/freeradius-devel # I am not having any issue with compilation with production configuration. I hit issues only when I use configuration with following params:- ./configure --with-experimental-modules --with-rlm_eap2 Just curious if it compiling without any problem for you with above configuration? Thanks once again for your efforts. On Fri, May 18, 2012 at 2:28 PM, Alan DeKok-2 [via FreeRadius] < ml-node+s1045715n5711790h52@n5.nabble.com> wrote:
JustinP wrote:
But I get compilation issue on rlm_eap2 if I follow the below steps:- ./configure --with-experimental-modules --with-rlm_eap2 make
Its giving error for not able to include header files.
Read raddb/experimental.conf. Look for the comments about eap2.
For some reason the include paths specified in CFLAGS and RLM_CFLAGS are not getting picked up.
That's not possible.
You can edit the rlm_eap2/Makefile yourself, if you think there are any issues.
I am using 32 bit Ubuntu lucid Release 10.04 running on Intel Pentium 4.
Is anybody else seeing this issue? Any help on this will be appreciated.
The eap2 module is experimental, and not officially supported.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
------------------------------ If you reply to this email, your message will be added to the discussion below:
http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-ser... To unsubscribe from Compilation issues on freeradius-server v2.1.x for rlm_eap2, click here<http://freeradius.1045715.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5711734&code=anVzdGludHBoaWxpcEBnbWFpbC5jb218NTcxMTczNHwtMjQ3MjYyMzMw> . NAML<http://freeradius.1045715.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
-- Regards Justin Philip -- View this message in context: http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-ser... Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
JustinP wrote:
In raddb/experimental.conf the descriptions are not complete to use the eap2 module. It doesn't say which parameters to use with configure. to enable experimental modules.
Which is why I replied to your message.
I hit issues only when I use configuration with following params:-
./configure --with-experimental-modules --with-rlm_eap2
You have carefully NOT said what the problems are. How do you expect anyone to help you? Bad question: "I tried stuff and it didn't work. What do I do next?" Good question: DESCRIBE WHAT HAPPENED.
Just curious if it compiling without any problem for you with above configuration?
It works for me. I also TOLD YOU what you could do to get it to build: edit the Makefile. It's not hard. Doing that takes less time than posting on the mailing list. Alan DeKok.
Alan, Here is what I did:- git clone git://git.freeradius.org/freeradius-server.git cd freeradius-server git fetch origin v2.1.x:v2.1.x git checkout v2.1.x edited the src/modules/rlm_eap2/Makefile from:- HOSTAP = /path/to/hostapd TARGET = SRCS = rlm_eap2.c to:- HOSTAP = /home/rqwt36/hostap/hostap TARGET = rlm_eap2 SRCS = rlm_eap2.c executed the configuration file as :- ./configure --with-experimental-modules --with-rlm_eap2 make I have attached the output of the configuration and make commands. I had tried adding the path of freeradius-server/src to src/modules/rlm_eap2/Makefile But get same errors. When I force add all the paths in CPLUS_INCLUDE_PATH and C_INCLUDE_PATH These errors go away but other errors like duplicate definitions starts appearing... On Fri, May 18, 2012 at 3:42 PM, Alan DeKok-2 [via FreeRadius] <ml-node+s1045715n5711822h44@n5.nabble.com> wrote:
JustinP wrote:
In raddb/experimental.conf the descriptions are not complete to use the eap2 module. It doesn't say which parameters to use with configure. to enable experimental modules.
Which is why I replied to your message.
I hit issues only when I use configuration with following params:-
./configure --with-experimental-modules --with-rlm_eap2
You have carefully NOT said what the problems are. How do you expect anyone to help you?
Bad question: "I tried stuff and it didn't work. What do I do next?"
Good question: DESCRIBE WHAT HAPPENED.
Just curious if it compiling without any problem for you with above configuration?
It works for me.
I also TOLD YOU what you could do to get it to build: edit the Makefile. It's not hard. Doing that takes less time than posting on the mailing list.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
________________________________ If you reply to this email, your message will be added to the discussion below: http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-ser... To unsubscribe from Compilation issues on freeradius-server v2.1.x for rlm_eap2, click here. NAML
-- Regards Justin Philip -- View this message in context: http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-ser... Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
So everything boils down to this command that is failing:- /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/libfreeradius-radius.la/home/rqwt36/hostap/hostap/eap_example/libeap.so -lnsl -lresolv -lpthread which spawn this command:- 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 which fails. On Fri, May 18, 2012 at 6:25 PM, JustinP <justintphilip@gmail.com> wrote:
Alan,
Here is what I did:-
git clone git://git.freeradius.org/freeradius-server.git cd freeradius-server git fetch origin v2.1.x:v2.1.x git checkout v2.1.x
edited the src/modules/rlm_eap2/Makefile from:-
HOSTAP = /path/to/hostapd
TARGET = SRCS = rlm_eap2.c
to:-
HOSTAP = /home/rqwt36/hostap/hostap
TARGET = rlm_eap2 SRCS = rlm_eap2.c
executed the configuration file as :- ./configure --with-experimental-modules --with-rlm_eap2 make
I have attached the output of the configuration and make commands.
I had tried adding the path of freeradius-server/src to src/modules/rlm_eap2/Makefile But get same errors.
When I force add all the paths in CPLUS_INCLUDE_PATH and C_INCLUDE_PATH These errors go away but other errors like duplicate definitions starts appearing...
On Fri, May 18, 2012 at 3:42 PM, Alan DeKok-2 [via FreeRadius] <[hidden email] <http://user/SendEmail.jtp?type=node&node=5711882&i=0>> wrote:
JustinP wrote:
In raddb/experimental.conf the descriptions are not complete to use
the
eap2 module. It doesn't say which parameters to use with configure. to enable experimental modules.
Which is why I replied to your message.
I hit issues only when I use configuration with following params:-
./configure --with-experimental-modules --with-rlm_eap2
You have carefully NOT said what the problems are. How do you expect anyone to help you?
Bad question: "I tried stuff and it didn't work. What do I do next?"
Good question: DESCRIBE WHAT HAPPENED.
Just curious if it compiling without any problem for you with above configuration?
It works for me.
I also TOLD YOU what you could do to get it to build: edit the Makefile. It's not hard. Doing that takes less time than posting on the mailing list.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
________________________________ If you reply to this email, your message will be added to the discussion below:
http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-ser...
To unsubscribe from Compilation issues on freeradius-server v2.1.x for rlm_eap2, click here. NAML
-- Regards Justin Philip
*configure_log.txt* (89K) Download Attachment<http://freeradius.1045715.n5.nabble.com/attachment/5711882/0/configure_log.txt> *make_output.txt* (239K) Download Attachment<http://freeradius.1045715.n5.nabble.com/attachment/5711882/1/make_output.txt>
------------------------------ View this message in context: Re: Compilation issues on freeradius-server v2.1.x for rlm_eap2<http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-server-v2-1-x-for-rlm-eap2-tp5711734p5711882.html>
Sent from the FreeRadius - Dev mailing list archive<http://freeradius.1045715.n5.nabble.com/FreeRadius-Dev-f2789673.html>at Nabble.com.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
-- Regards Justin Philip
Justin Philip wrote:
So everything boils down to this command that is failing:-
/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/libfreeradius-radius.la <http://libfreeradius-radius.la> /home/rqwt36/hostap/hostap/eap_example/libeap.so -lnsl -lresolv -lpthread
which spawn this command:- 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 which fails.
And you're not showing the error message. Don't you think it might be relevant? I'm sorry, but I don't have time to waste helping you. You're going out of your way to AVOID giving the information I need to help you. Alan DeKok.
Alan, I had attached the error messages in the attachment of last message. Its present in the make_output.txt Snippet is :- /usr/bin/make -w -C rlm_eap2 all make[6]: Entering directory `/home/rqwt36/system/freeradius_dev/freeradius-server/src/modules/rlm_eap2' /home/rqwt36/system/freeradius_dev/freeradius-server/libtool --mode=compile gcc -I/home/rqwt36/system/freeradius_dev/freeradius-server -I/home/rqwt36/system/freeradius_dev/freeradius-server/src -g -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -I/home/rqwt36/system/freeradius_dev/freeradius-server/libltdl -I/home/rqwt36/system/freeradius_dev/freeradius-server/src -I/home/rqwt36/system/freeradius_dev/freeradius-server/libltdl -I/home/rqwt36/hostap/hostap/src/eap_common -I/home/rqwt36/hostap/hostap/src/eap_server -I/home/rqwt36/hostap/hostap/src -I/home/rqwt36/hostap/hostap/src/common -I/home/rqwt36/hostap/hostap/src/utils -c rlm_eap2.c mkdir .libs gcc -I/home/rqwt36/system/freeradius_dev/freeradius-server -I/home/rqwt36/system/freeradius_dev/freeradius-server/src -g -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -I/home/rqwt36/system/freeradius_dev/freeradius-server/libltdl -I/home/rqwt36/system/freeradius_dev/freeradius-server/src -I/home/rqwt36/system/freeradius_dev/freeradius-server/libltdl -I/home/rqwt36/hostap/hostap/src/eap_common -I/home/rqwt36/hostap/hostap/src/eap_server -I/home/rqwt36/hostap/hostap/src -I/home/rqwt36/hostap/hostap/src/common -I/home/rqwt36/hostap/hostap/src/utils -c rlm_eap2.c -fPIC -DPIC -o .libs/rlm_eap2.o In file included from /home/rqwt36/hostap/hostap/src/utils/wpa_debug.h:18, from /home/rqwt36/hostap/hostap/src/utils/common.h:443, from rlm_eap2.c:35: /home/rqwt36/hostap/hostap/src/utils/wpabuf.h: In function 'wpabuf_set': /home/rqwt36/hostap/hostap/src/utils/wpabuf.h:147: warning: cast discards qualifiers from pointer target type rlm_eap2.c: In function 'eap_authenticate': rlm_eap2.c:910: warning: pointer targets in assignment differ in signedness rlm_eap2.c:911: warning: pointer targets in assignment differ in signedness gcc -I/home/rqwt36/system/freeradius_dev/freeradius-server -I/home/rqwt36/system/freeradius_dev/freeradius-server/src -g -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -I/home/rqwt36/system/freeradius_dev/freeradius-server/libltdl -I/home/rqwt36/system/freeradius_dev/freeradius-server/src -I/home/rqwt36/system/freeradius_dev/freeradius-server/libltdl -I/home/rqwt36/hostap/hostap/src/eap_common -I/home/rqwt36/hostap/hostap/src/eap_server -I/home/rqwt36/hostap/hostap/src -I/home/rqwt36/hostap/hostap/src/common -I/home/rqwt36/hostap/hostap/src/utils -c rlm_eap2.c -o rlm_eap2.o
/dev/null 2>&1 /home/rqwt36/system/freeradius_dev/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/system/freeradius_dev/freeradius-server/src/lib/libfreeradius-radius.la /home/rqwt36/hostap/hostap/eap_example/libeap.so -lnsl -lresolv -lpthread libtool: link: warning: `-release' is ignored for programs 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/system/freeradius_dev/freeradius-server/src/lib/.libs/libfreeradius-radius.so -lnsl -lresolv -lpthread -Wl,--rpath -Wl,/usr/local/lib rlm_eap2.c:23:36: error: freeradius-devel/ident.h: No such file or directory rlm_eap2.c:24: error: expected declaration specifiers or '...' before string constant rlm_eap2.c:26:38: error: freeradius-devel/radiusd.h: No such file or directory rlm_eap2.c:27:38: error: freeradius-devel/modules.h: No such file or directory rlm_eap2.c:28:41: error: freeradius-devel/rad_assert.h: No such file or directory rlm_eap2.c:33:28: error: utils/includes.h: No such file or directory
I appreciate you help so far i understand this could be some issue with my build environment. you are most welcome to give this least priority. On Fri, May 18, 2012 at 7:38 PM, Alan DeKok-2 [via FreeRadius] <ml-node+s1045715n5711938h40@n5.nabble.com> wrote:
Justin Philip wrote:
So everything boils down to this command that is failing:-
/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/libfreeradius-radius.la <http://libfreeradius-radius.la> /home/rqwt36/hostap/hostap/eap_example/libeap.so -lnsl -lresolv -lpthread
which spawn this command:- 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 which fails.
And you're not showing the error message.
Don't you think it might be relevant?
I'm sorry, but I don't have time to waste helping you. You're going out of your way to AVOID giving the information I need to help you.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
________________________________ If you reply to this email, your message will be added to the discussion below: http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-ser... To unsubscribe from Compilation issues on freeradius-server v2.1.x for rlm_eap2, click here. NAML
-- Regards Justin Philip -- View this message in context: http://freeradius.1045715.n5.nabble.com/Compilation-issues-on-freeradius-ser... Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
JustinP wrote:
I had attached the error messages in the attachment of last message.
No. You're posting on nabble, which strips out the attachments.
Its present in the make_output.txt
Snippet is :-
/usr/bin/make -w -C rlm_eap2 all
Well... that's not right.
rlm_eap2.c:26:38: error: freeradius-devel/radiusd.h: No such file or directory rlm_eap2.c:27:38: error: freeradius-devel/modules.h: No such file or directory rlm_eap2.c:28:41: error: freeradius-devel/rad_assert.h: No such file or directory rlm_eap2.c:33:28: error: utils/includes.h: No such file or directory
That's because the server has an integrated build system. You're supposed to build it from the top directory. The modules need various header files, libraries, etc. to be built BEFORE they can work. What's wrong with a simple: $ make ? Alan DeKok.
participants (3)
-
Alan DeKok -
Justin Philip -
JustinP