[XML-SIG] Availability of libxml2 and libxslt Python bindings
Daniel Veillard
veillard@redhat.com
Thu, 21 Feb 2002 13:47:23 -0500
On Thu, Feb 21, 2002 at 01:25:29PM -0500, Fred L. Drake, Jr. wrote:
>
> M.-A. Lemburg writes:
> > One other thing you could try is to have module A load
> > both l1 and l2, or if the dependencies are just l2 -> l1,
> > to assure that l1 is loaded prior to l2.
>
> One possible issue is that, by default, Python does not load the
> symbols from libraries loaded for dynamic modules. Daniel, to test
> this easily, try this before importing A or B:
>
> ------------------------------------------------
> import dl
> import sys
>
> sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)
> ------------------------------------------------
>
> (From the docstring for sys.setdlopenflags().)
Hum, it sounds like the problem, dl doesn't seems present
on my system (1.5 though there is /usr/lib/python1.5/test/test_dl.py ???)
Hannu, since I can't reproduce the linker problems myself, could
you try to see if changing libxsl.py to
------------
try:
import dl
import sys
sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)
except:
pass
import libxml2mod
import libxsltmod
import libxml2
#
# Everything below this point is automatically generated
#
------------
rebuilding in the python dir (the libxslt.py should be updated
accordingly) does indeed fix the problem ?
thanks in advance,
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/