problem installing RLM-Python installation in 1.7

Marc LEURENT lftsy at free.fr
Thu Aug 23 10:41:50 CEST 2007


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