I found a little bug in the "src/main/Makefile.in". In the normal setup, radius uses dynamic libraries and default search paths.
Problem arises when I give this: "./configure --with-threads=no --enable-static=yes --enable-shared=no --prefix=somedir --exec-prefix=somedir"
After doing this everything the Make, make install goes well. But when I run "somedir/sbin/radiusd -X" it shows that it cannot find module md5 for eap.
To get around this problem I added some lines to "src/main/Makefile.in" which are as follows:
Originally a particular section looked like:
ifneq ($(USE_SHARED_LIBS),yes)
MODULE_LIBS += $(shell for x in $(MODULES);do test -f ../modules/$$x/$$x.la && echo -dlpreopen ../modules/$$x/$$x.la;done)
MODULE_OBJS += $(shell for x in $(MODULES);do test -f ../modules/$$x/$$x.la && echo ../modules/$$x/$$x.la;done)
endif
I changed it to:
ifneq ($(USE_SHARED_LIBS),yes)
MODULE_LIBS += $(shell for x in $(MODULES);do test -f ../modules/$$x/$$x.la && echo -dlpreopen ../modules/$$x/$$x.la;done)
MODULE_LIBS += $(shell test -f ../modules/rlm_eap/types/rlm_eap_md5/rlm_eap_md5.la && echo -dlpreopen ../modules/rlm_eap/types/rlm_eap_md5/rlm_eap_md5.la)
MODULE_LIBS += $(shell test -f ../modules/rlm_eap/types/rlm_eap_leap/rlm_eap_leap.la && echo -dlpreopen ../modules/rlm_eap/types/rlm_eap_leap/rlm_eap_leap.la)
MODULE_OBJS += $(shell for x in $(MODULES);do test -f ../modules/$$x/$$x.la && echo ../modules/$$x/$$x.la;done)
MODULE_OBJS += $(shell test -f ../modules/rlm_eap/types/rlm_eap_md5/rlm_eap_md5.la && echo ../modules/rlm_eap/types/rlm_eap_md5/rlm_eap_md5.la)
MODULE_OBJS += $(shell test -f ../modules/rlm_eap/types/rlm_eap_leap/rlm_eap_leap.la && echo ../modules/rlm_eap/types/rlm_eap_leap/rlm_eap_leap.la)
endif
After that all went well. Actually, the rlm_eap_md5.la and rlm_eap_leap.la were not deing dlpreopen-ed in case of static modules.
I hope what I said was correct. Please let me know if there is any other way to get around the problem.
Thanking you, Arindam Roy
[EMAIL PROTECTED] wrote:
Download two copies of FR. Configure one with './configure' and the other with './configure --disable-shared'.
Tell me what your experiences are. Hint, one will run, one won't. Which, is left as an exercise for the reader.
So far, neither has worked for me, which is why I asked my original question. Any pointers on exactly what I need to do to figure out what the problem is?
Here's the original question:
However, when I try to run radiusd -X, the last few lines are: Module: Loaded eap eap: default_eap_type = "md5" eap: timer_expire = 60 rlm_eap: Failed to link EAP-Type/md5: dlcompat: invalid handle radiusd.conf[600]: eap: Module instantiation failed.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
--
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

