[gstreamer-bugs] [Bug 410963] Fails to build with -z defs

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Feb 22 13:17:42 PST 2007


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=410963

  GStreamer | gst-plugins-base | Ver: HEAD CVS





------- Comment #2 from Loïc Minier  2007-02-22 21:15 UTC -------
Created an attachment (id=83128)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=83128&action=view)
Fix alsa link flags

Build subsequently fails with:

/bin/sh ../../libtool --tag=CC --mode=link gcc  -Os  -Wl,-O1 -Wl,-z,defs -o
libgstalsa.la -rpath /home/lool/jhbuild-gnome-2.18/prefix/lib/gstreamer-0.10
-module -avoid-version -export-symbols-regex '^_*gst_plugin_desc$'
-no-undefined libgstalsa_la-gstalsadeviceprobe.lo libgstalsa_la-gstalsamixer.lo
libgstalsa_la-gstalsamixerelement.lo libgstalsa_la-gstalsamixertrack.lo
libgstalsa_la-gstalsamixeroptions.lo libgstalsa_la-gstalsaplugin.lo
libgstalsa_la-gstalsasink.lo libgstalsa_la-gstalsasrc.lo
libgstalsa_la-gstalsa.lo -lasound -lm -ldl -lpthread  
../../gst-libs/gst/interfaces/libgstinterfaces-0.10.la
../../gst-libs/gst/audio/libgstaudio-0.10.la 
rm -fr  .libs/libgstalsa.exp .libs/libgstalsa.ver
generating symbol list for `libgstalsa.la'
/usr/bin/nm -B  .libs/libgstalsa_la-gstalsadeviceprobe.o
.libs/libgstalsa_la-gstalsamixer.o .libs/libgstalsa_la-gstalsamixerelement.o
.libs/libgstalsa_la-gstalsamixertrack.o
.libs/libgstalsa_la-gstalsamixeroptions.o .libs/libgstalsa_la-gstalsaplugin.o
.libs/libgstalsa_la-gstalsasink.o .libs/libgstalsa_la-gstalsasrc.o
.libs/libgstalsa_la-gstalsa.o  | sed -n -e 's/^.*[      
]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][     
]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /bin/sed 's/.* //' | sort | uniq >
.libs/libgstalsa.exp
/bin/grep -E -e "^_*gst_plugin_desc$" ".libs/libgstalsa.exp" >
".libs/libgstalsa.expT"
mv -f ".libs/libgstalsa.expT" ".libs/libgstalsa.exp"
echo "{ global:" > .libs/libgstalsa.ver
 cat .libs/libgstalsa.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libgstalsa.ver
 echo "local: *; };" >> .libs/libgstalsa.ver
 gcc -shared  .libs/libgstalsa_la-gstalsadeviceprobe.o
.libs/libgstalsa_la-gstalsamixer.o .libs/libgstalsa_la-gstalsamixerelement.o
.libs/libgstalsa_la-gstalsamixertrack.o
.libs/libgstalsa_la-gstalsamixeroptions.o .libs/libgstalsa_la-gstalsaplugin.o
.libs/libgstalsa_la-gstalsasink.o .libs/libgstalsa_la-gstalsasrc.o
.libs/libgstalsa_la-gstalsa.o  -Wl,--rpath
-Wl,/home/lool/jhbuild-gnome-2.18/checkout/gst-plugins-base/gst-libs/gst/interfaces/.libs
-Wl,--rpath
-Wl,/home/lool/jhbuild-gnome-2.18/checkout/gst-plugins-base/gst-libs/gst/audio/.libs
-Wl,--rpath -Wl,/home/lool/jhbuild-gnome-2.18/prefix/lib /usr/lib/libasound.so
-lm -ldl -lpthread ../../gst-libs/gst/interfaces/.libs/libgstinterfaces-0.10.so
../../gst-libs/gst/audio/.libs/libgstaudio-0.10.so  -Wl,-O1 -Wl,-z -Wl,defs
-Wl,-soname -Wl,libgstalsa.so -Wl,-version-script -Wl,.libs/libgstalsa.ver -o
.libs/libgstalsa.so
.libs/libgstalsa_la-gstalsadeviceprobe.o: In function
`gst_alsa_type_add_device_property_probe_interface':
/home/lool/jhbuild-gnome-2.18/checkout/gst-plugins-base/ext/alsa/gstalsadeviceprobe.c:203:
undefined reference to `g_type_add_interface_static'
.libs/libgstalsa_la-gstalsadeviceprobe.o: In function
`gst_alsa_device_property_probe_probe_property':
/home/lool/jhbuild-gnome-2.18/checkout/gst-plugins-base/ext/alsa/gstalsadeviceprobe.c:121:
undefined reference to `g_str_equal'
/home/lool/jhbuild-gnome-2.18/checkout/gst-plugins-base/ext/alsa/gstalsadeviceprobe.c:122:
undefined reference to `g_type_name'
/home/lool/jhbuild-gnome-2.18/checkout/gst-plugins-base/ext/alsa/gstalsadeviceprobe.c:122:
undefined reference to `g_type_name'
/home/lool/jhbuild-gnome-2.18/checkout/gst-plugins-base/ext/alsa/gstalsadeviceprobe.c:122:
undefined reference to `g_log'


Attached patch adds missing glib and other link flags, I think the GPB link
flags were simply forgotten in ALSA (the GST flags don't seem necessary though
so I didn't add them).


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list