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 308049 - can't register / load plugin that uses gst_bytestream_length()
can't register / load plugin that uses gst_bytestream_length()
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.8.10
Other Linux
: Normal major
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-17 11:02 UTC by Akos Maroy
Modified: 2005-08-29 15:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample code demonstrating the problem (25.29 KB, application/x-compressed-tar)
2005-06-17 11:04 UTC, Akos Maroy
Details

Description Akos Maroy 2005-06-17 11:02:27 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
Comment 1 Akos Maroy 2005-06-17 11:04:56 UTC
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
Comment 2 Akos Maroy 2005-06-17 11:05:58 UTC
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...
Comment 3 Akos Maroy 2005-06-17 12:50:58 UTC
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.
Comment 4 Luca Ognibene 2005-06-19 10:22:50 UTC
so, can we close the bug?
Comment 5 Akos Maroy 2005-06-19 10:36:51 UTC
yes, we can...