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 553131 - Import modules in correct order
Import modules in correct order
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other Linux
: Normal blocker
: 0.10.14
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-21 14:36 UTC by Sebastian Dröge (slomo)
Modified: 2008-10-13 05:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (760 bytes, patch)
2008-09-21 14:37 UTC, Sebastian Dröge (slomo)
committed Details | Review
no-undefined patch (1.02 KB, patch)
2008-10-13 05:19 UTC, Yaakov Selkowitz
none Details | Review

Description Sebastian Dröge (slomo) 2008-09-21 14:36:09 UTC
Hi,
the attached patch fixes the loading of gst-python in some cases by first importing libxml2 and then the gst stuff. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449341 for an example where this happens.
Comment 1 Sebastian Dröge (slomo) 2008-09-21 14:37:33 UTC
Created attachment 119099 [details] [review]
patch
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2008-09-22 20:14:30 UTC
Can this be conditinal, so that its only done when libxml2 is actualy used?
Comment 3 Sebastian Dröge (slomo) 2008-10-05 08:14:31 UTC
2008-10-05  Sebastian Dröge  <sebastian.droege@collabora.co.uk>

        Patch by: Alexander Wirt <formorer at debian dot org>

        * gst/__init__.py:
        Import modules in the correct order, i.e. libxml2 before
        GStreamer stuff, to prevent unresolved symbols. Fixes bug #553131.
Comment 4 Yaakov Selkowitz 2008-10-13 05:19:35 UTC
Created attachment 120486 [details] [review]
no-undefined patch

Unfortunately this is insufficient for Cygwin or MinGW, where all symbols must be resolved at *link* time.

Perhaps the code can be reworked to not call the wrapper function directly, but I've been working around this by copying the wrapper function from libxml2 into pygst; patch attached.