GNOME Bugzilla – Bug 553131
Import modules in correct order
Last modified: 2008-10-13 05:19:35 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.
Created attachment 119099 [details] [review] patch
Can this be conditinal, so that its only done when libxml2 is actualy used?
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.
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.