After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340592 - libtool syntax bug when building python bindings
libtool syntax bug when building python bindings
Status: RESOLVED FIXED
Product: libxslt
Classification: Platform
Component: general
1.1.x
Other Mac OS
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-04 05:24 UTC by Daniel Macks
Modified: 2006-06-01 22:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix definition of $pythondir in configure (463 bytes, patch)
2006-05-04 05:41 UTC, Daniel Macks
none Details | Review

Description Daniel Macks 2006-05-04 05:24:55 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?
Comment 1 Daniel Macks 2006-05-04 05:41:19 UTC
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.
Comment 2 Daniel Veillard 2006-06-01 17:12:05 UTC
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
Comment 3 Daniel Macks 2006-06-01 17:33:25 UTC
Yup, the configure.in change fixes the python-bindings build bug.
Comment 4 Daniel Veillard 2006-06-01 22:02:43 UTC
Okay, fixed in CVS, will be in next release,

  thanks,

Daniel