GNOME Bugzilla – Bug 308049
can't register / load plugin that uses gst_bytestream_length()
Last modified: 2005-08-29 15:24:40 UTC
write a plugin that uses the bytestream element, as described in the documentation: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-loopfn-bytestream.html try to compile the plugin, and run gst-register and gst-inspect to try to see if the plugin is properly recognized by gstreamer. one will get the following error message if done so: DEBUG (0x80528c8 - 310834:59:18.362239000) GST_PLUGIN_LOADING(10131) gstplugin.c(325):gst_plugin_check_module: Error loading plugin /home/maroy/src/gstreamer/src/bytestream/libgstplugin.so, reason: /home/maroy/src/gstreamer/src/bytestream/libgstplugin.so: undefined symbol: gst_bytestream_length
Created attachment 47896 [details] sample code demonstrating the problem this sample code is based on the gst plugin template found in the CVS. set the basedir variable in Makefile first. the Makefile expects gstreamer to be installed under ${basedir}/usr after compiling, run: make register make inspect and see the error return in the file inspect_result
I raised this issue on the #gstreamer channel yesterday, and was told it might possibly be a gentoo-related issue. I've since double-checked on a Mandrake box, and I get the same results there as well...
the solution is, that one has to compile the object files with the compiler options: -fPIC -DPIC then the dynamic linker will find the missing symbol.
so, can we close the bug?
yes, we can...