freeradius without libtool

2003-12-21 Thread Arindam Roy
Hello all,
I know the question might sound silly, but do you know of any way of 
compiling freeradius without libtool, with all the modules as static 
modules.
I mean can I pass any specific flag to the GCC so that the modules are 
dlpreopened. Or is this a specific feature of libtool(the ltdl sybol 
list I mean).
Any help will be hugely appreciated.
Thanking you,
Arindam Roy



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Makefile problems when using static libs

2003-11-17 Thread Arindam Roy
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


Removing Modules which are not needed

2003-11-07 Thread Arindam Roy
Hi to all,
   My query is that how can I disable certain modules? Like I want to 
disable pap. When I give ./configure --without-pap it configures, and 
after make and
make install I edit the radiusd.conf file. Here I comment the lines for 
pap support. But when I run with radiusd -X it stops saying
"ERROR: Cannot find a configuration entry for module "pap"". Is there 
any way I can stop this? or am I doing something wrong here.
Scorpy

--
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