problem installing RLM-Python - SOLVED

UriCALL Support freeradius at uricall.com
Thu Aug 23 10:57:50 CEST 2007


Sorry, 

my bad, I forgot that the lib files are generated during make process and missed that part.

Marc, here is how I got it running:

1. Grab the sources and unpack them (1.1.7 version)
2. After unpacking, run from within the source folder:
    ./configure --with-static-modules=python
    make
3. Your make will stop here: "libtool: link: cannot find the library `../modules/rlm_python/rlm_python.la' or unhandled argument `../modules/rlm_python/rlm_python.la'"
4. Go into ./src/modules/rlm_python
5. run ./configure + make + make install
6. Go back to root of sources and run again make + make install.

Hope that will do,
DanB


On Thu, 23 Aug 2007 10:41:50 +0200, Marc LEURENT <lftsy at free.fr> wrote:
> Did you succeed in compiling the rlm_python module statically in 1.6?
> And if I would be very grateful if you can explain me how?
> 
> Because I'he got this error:
> 
> rlm_python.c:456: warning: passing argument 2 of 'PyObject_GetAttrString'
> discards qualifiers from pointer target type
>  gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -g
> -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
> -Wnested-externs -W -Wredundant-decls -Wundef
> -I/home/mleurent/freeradius/official/freeradius-1.1.6/src/include
> -I/usr/include/python2.4 -c rlm_python.c -o rlm_python.o >/dev/null 2>&1
> /home/mleurent/freeradius/official/freeradius-1.1.6/libtool --mode=link
> gcc -release 1.1.6 \
>         -module -static   -o rlm_python.la     \
>         -rpath /usr/local/lib rlm_python.lo rlm_python.c
> /home/mleurent/freeradius/official/freeradius-1.1.6/src/lib/libradius.la \
>         -L/usr/lib/python2.4/config                             -lpthread
> -ldl  -lutil -lpython2.4 -lm -lnsl -lresolv  -lpthread
> libtool: link: cannot find the library
> `/home/mleurent/freeradius/official/freeradius-1.1.6/src/lib/libradius.la'
> or unhandled argument
> `/home/mleurent/freeradius/official/freeradius-1.1.6/src/lib/libradius.la'
> make: *** [rlm_python.la] Error 1
> zsh: exit 2     make
> 
> 
> 
> 
> 
> UriCALL Support a écrit :
>> Dear All,
>>
>> I grabbed today the sources for 1.7 distribution and wanted to compile
> the rlm_python also in, but, as opposite to 1.6 version, it looks like some
> libraries are not longer included, here are the errors:
>>
>> """
>> host1:/usr/local/src/freeradius/freeradius-1.1.7/src/modules/rlm_python#
> make
>> /usr/local/src/freeradius/freeradius-1.1.7/libtool --mode=link gcc
> -release 1.1.7 \
>>         -module -static   -o rlm_python.la     \
>>         -rpath /usr/local/lib rlm_python.lo rlm_python.c
> /usr/local/src/freeradius/freeradius-1.1.7/src/lib/libradius.la \
>>         -L/usr/lib/python2.4/config                            
> -lpthread -ldl  -lutil -lpython2.4 -lm -lnsl -lresolv  -lpthread
>> libtool: link: cannot find the library
> `/usr/local/src/freeradius/freeradius-1.1.7/src/lib/libradius.la' or
> unhandled argument
> `/usr/local/src/freeradius/freeradius-1.1.7/src/lib/libradius.la'
>> """
>>
>> Can anybody provide any solution, except using libradius.la from 1.6 for
> 1.7 version, or is anything changed and I missed that?
>>
>> Thank you in advance,
>> DanB
>>
>> -
>> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html




More information about the Freeradius-Users mailing list