Re: Followup: [xml-bindings]New releases and python
- From: rm fabula de
- To: Daniel Veillard <veillard redhat com>
- Cc: rm fabula de, xml-bindings gnome org
- Subject: Re: Followup: [xml-bindings]New releases and python
- Date: Thu, 14 Feb 2002 14:52:16 +0100
On Tue, Feb 12, 2002 at 08:19:15AM -0500, Daniel Veillard wrote:
> Hum, I can't reproduce this on my setup (RH-7.2 using the RPMs)
> started as root on my build box to be sure there is no interference
> with my development system....
>
> [root backup root]# python
> Python 1.5.2 (#1, Jul 5 2001, 03:02:19) [GCC 2.96 20000731 (Red Hat Linux 7.1 2 on linux-i386
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import libxslt
> >>>
>
> For some reason it started to break with python2 ... strange
> I'm pretty sure I tested it at some point this week-end, damn !
>
> [root backup root]# python2
> Python 2.1.1 (#1, Aug 13 2001, 19:37:40)
> [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-96)] on linux2
> Type "copyright", "credits" or "license" for more information.
> >>> import libxslt
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.1/site-packages/libxslt.py", line 2, in ?
> import libxsltmod
> ImportError: ?1: shared object not open
>
> Seems the Python2 has a bad interraction with loading a module
> multiple time, the fact that it reports a garbled shared object name
> is not nice.
> [...]
> Possibly, yes. But there is something fishy, if the module has already been
> loaded in the process address space why is there linker errors ???
Hello Daniel,
sorry for the late followup, i wanted to make shure the symptoms weren't
caused by local problems (my two boxes had different version of libtool).
I was able to 'fix' the problem by doing the following:
- added '-module' option to 'LINK = $(LIBTOOL) --mode=link $(CCLD) -module ....'
in the Makefile for gnome-xml and libxst. This allone didn't help but from the
little i understand about libtool it might be a good idea anyway.
- I add -lxml2mod to the 'LINK' line in xslt. Hmm, i'm not happy with that since
i also needed to add '-L/usr/local/lib/python2.1/site-packages' to the command.
After that i got the following:
| rmattes aiolos:/usr/local/src/libxslt/python$ ldd .libs/libxsltmod.so
| libxml2mod.so => not found
| libxslt.so.1 => /usr/local/lib/libxslt.so.1 (0x40014000)
| libexslt.so.0 => /usr/local/lib/libexslt.so.0 (0x4003c000)
| libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x40048000)
| libz.so.1 => /usr/lib/libz.so.1 (0x400e3000)
| libm.so.6 => /lib/libm.so.6 (0x400f2000)
| libc.so.6 => /lib/libc.so.6 (0x40114000)
| /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
|
The unresolved libxml2mod is caused by /usr/local/lib/python2.1/site-packages not
being in the LD_LIBRARY_PATH but doesn't matter since Python adds it at runtime.
So, i got it working, but it doesn't seem clean. Any ideas on how to fix it?
Ralf Mattes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]