Hello all,
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
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html