GNOME Bugzilla – Bug 473234
gst-python-0.10.8 fails to link with -Wl,-z,now
Last modified: 2009-11-07 00:26:28 UTC
http://bugs.gentoo.org/show_bug.cgi?id=166221 gst-python is having troubles when LDFLAGS="-Wl,-z,now" is used, and it's a normal flag used in Gentoo Hardened -branch. Workaround would be to append "-Wl,-z,lazy" in configure.ac: http://bugs.gentoo.org/attachment.cgi?id=129928&action=view Real solution is beyond me, I can only hope you can track it down when testing mentioned flag.
more info when running make check with those flags : make[3]: Entering directory `/home/bilboed/work/cvs/gst-python/testsuite' Traceback (most recent call last):
+ Trace 160135
import gst
from _gst import *
q, tail = self.find_head_package(parent, str(name))
q = self.import_it(head, qname, parent)
m = self.loader.load_module(fqname, stuff)
m = self.hooks.load_dynamic(name, filename, file)
return ihooks.Hooks.load_dynamic(self, name, filename, file)
return imp.load_dynamic(name, filename, file)
The problem seems to be because of these two symbols : ************ #line 561 "./gst.override" extern PyObject * libxml_xmlDocPtrWrap(xmlDocPtr doc); extern PyObject * libxml_xmlNodePtrWrap(xmlNodePtr node); ************ They will only be resolved when the libxml2 module is imported.
the GST python code goes through hoops to make sure the dl bindings are LAZY at runtime ... unfortunately, the ldso respects the dynamic tags over the flags given to dlopen(), so the configure script should make sure to link the modules with -z,lazy whenever possible presumably the people who threw in the logic to force everything to lazy bindings did so for a reason ... the loading process is done in a specific order to make sure the symbols needed are available at the right time
We're still carrying a patch for this in Gentoo... patch: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/gst-python/files/gst-python-0.10.9-lazy.patch?rev=1.1&view=markup gentoo bug: http://bugs.gentoo.org/show_bug.cgi?id=166221
*** This bug has been marked as a duplicate of bug 398567 ***