Re: rlm_python and dynload problem

2011-01-07 Thread Alan DeKok
Josip Rodin wrote: I had just written the clean rebuild instructions here, but then I realized what might be wrong - configure.in says: AC_CHECK_FUNC(lt_dladvise_init, AC_DEFINE(HAVE_HAVE_LT_DLADVISE_INIT, [], [Do we have the lt_dladvise_init function]))

rlm_python and dynload problem

2011-01-06 Thread Aurélien Geron
Hi and happy new year to everyone, In april I wrote the message below about python modules not being able to load dynamic libraries on Debian Lenny. Alan DeKok answered that he would try to fix this in version 2.1.9, and I was very pleased to read the following message in version 2.1.9's

Re: rlm_python and dynload problem

2011-01-06 Thread Josip Rodin
On Thu, Jan 06, 2011 at 11:26:44AM +0100, Aurélien Geron wrote: Hi and happy new year to everyone, In april I wrote the message below about python modules not being able to load dynamic libraries on Debian Lenny. I did not have time to test this ever since, but I just did, and

Re: rlm_python and dynload problem

2011-01-06 Thread Aurélien Geron
Hi Josip, Here are a few commands that I just launched on my server: #uname -a Linux maggie 2.6.26-2-amd64 #1 SMP Thu Nov 25 04:30:55 UTC 2010 x86_64 GNU/Linux #dpkg -l | grep libltdl ii libltdl31.5.26-4+lenny1A system independent dlopen wrapper for GNU

Re: rlm_python and dynload problem

2011-01-06 Thread Aurélien Geron
Hi, The workaround described in http://bugs.debian.org/416266 for perl works for python too, I just tried it: LD_PRELOAD=/usr/lib/libpython2.5.so.1 freeradius -X = works fine Thanks a lot, Aurélien Geron Le 6 janv. 2011 à 14:44, Josip Rodin a écrit : On Thu, Jan 06, 2011 at 11:26:44AM

Re: rlm_python and dynload problem

2011-01-06 Thread Josip Rodin
On Thu, Jan 06, 2011 at 03:46:07PM +0100, Aurélien Geron wrote: libltdl.so.7 = /usr/lib/libltdl.so.7 (0x7f1018258000) = FreeRADIUS seems to rely on libltdl.so.7, as expected. #grep -i advise freeradius.ltrace = [no output] Apparently, the string advise is nowhere in ltrace's

Re: rlm_python and dynload problem

2010-04-28 Thread Alan DeKok
Aurélien Geron wrote: Basically, if I understand correctly, his idea is to have the python fellows declare the proper dependencies in every *.so file, so that the libpython2.5.so.1 file gets loaded automatically when the math module (or any other dynamic module) gets loaded. Maybe that's

Re: rlm_python and dynload problem

2010-04-28 Thread Aurélien Geron
Alan DeKok wrote: Aurélien Geron wrote: Basically, if I understand correctly, his idea is to have the python fellows declare the proper dependencies in every *.so file, so that the libpython2.5.so.1 file gets loaded automatically when the math module (or any other dynamic module) gets

rlm_python and dynload problem

2010-04-26 Thread Aurélien Geron
Hi, I came across a bug when rlm_python executes python code that tries to load a dynamic (shared) module. This bug seems to have been discussed 2 or 3 times on this list, but no really satisfying solution appears to have been found so far (as far as I know), so I thought I might raise the