GNOME Bugzilla – Bug 340592
libtool syntax bug when building python bindings
Last modified: 2006-06-01 22:02:43 UTC
I'm getting the same problem as Bug #340163 when I build the python bindings in libxslt-1.1.16: /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -L/sw/lib -o libxsltmod.la -rpath -module -avoid-version -lxslt -lexslt libxslt.lo types.lo libxslt-py.lo libtool: link: only absolute run-paths are allowed make[1]: *** [libxsltmod.la] Error 1 make: *** [all-recursive] Error 1 ### execution of make failed, exit code 2 (note that I patched the Makefile to use the already-installed libxslt as (-lxslt -lexslt) instead of the locally built ones because I need to have the library and the python-bindings built independently, but that's not related to the bug at hand). No path is passed to -rpath. Those libtool parameters come from Makefile.in: am_libxsltmod_la_rpath = -rpath $(pythondir) [...] pythondir = @pythondir@ but Makefile is generated as: pythondir = I am calling configure with --with-python=/sw/bin/python2.3, and its output says: Found python in /sw/bin/python2.3 Found Python version 2.3 Found libxml2-python module ./configure: line 1: PYTHON_SITE_PACKAGES: command not found Maybe some kind of shell quoting error in AC_ARG_WITH(python in configure?
Created attachment 64786 [details] [review] Fix definition of $pythondir in configure Bingo! This patch clears the error message during ./configure, passes the python libdir instead of a blank as the argument to -rpath, and enables linking to succeed.
I prefer to delay the evaluation, and use the quoted version. Please try the snapshot from: ftp://xmlsoft.org/xml/libxslt-cvs-snapshot.tar.gz and tell if thing are really fixed there, thanks in advance, Daniel
Yup, the configure.in change fixes the python-bindings build bug.
Okay, fixed in CVS, will be in next release, thanks, Daniel