problem installing RLM-Python installation in 1.7
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
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
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@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
UriCALL Support wrote:
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
Sorry, it seems the file doc/rlm_python is 5 years old and is really outdated. It doesn't make sense to use --with-static-modules=python with current version of Python. As posted to the list, the correct configure line is: $ ./configure --with-experimental-modules -- Nicolas Baradakis
Nicolas Baradakis wrote:
Sorry, it seems the file doc/rlm_python is 5 years old and is really outdated. It doesn't make sense to use --with-static-modules=python with current version of Python.
As posted to the list, the correct configure line is: $ ./configure --with-experimental-modules
Fixed. Alan DeKok.
UriCALL Support wrote:
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:
1.1.7, and 1.1.6. There are no 1.6 or 1.7 versions.
""" host1:/usr/local/src/freeradius/freeradius-1.1.7/src/modules/rlm_python# make
Don't do that. Type "make" from the top-level directory.
Can anybody provide any solution, except using libradius.la from 1.6 for 1.7 version, or is anything changed and I missed that?
What you're missing is that you're trying to build rlm_python BEFORE building libradius. The solution (as almost always in these kind of situations) is to follow the documentation for the build process: $ configure $ make $ make install If you had done that, rather than trying to short-circuit the process, it would have worked. Alan DeKok.
participants (5)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Marc LEURENT -
Nicolas Baradakis -
UriCALL Support