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 644176 - videofilters: needs to link against libm
videofilters: needs to link against libm
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.22
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-08 09:12 UTC by brofkims
Modified: 2011-03-08 11:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description brofkims 2011-03-08 09:12:59 UTC
1. On Ubuntu natty(11.04 developmental, gcc-4.5.2) I failed to build gst-plugins-bad-0.10.21.1+git20110307 due to 'undefined reference to floor()'. Details are followed at the end of this report.


2. This problem is solved by linking relevant objects against libm.


3. A patch about this problem is here.

--- gst-plugins-bad0.10-0.10.21.1+git20110307/gst/videofilters/Makefile.am.orig 2011-03-08 17:43:57.000000000 +0900
+++ gst-plugins-bad0.10-0.10.21.1+git20110307/gst/videofilters/Makefile.am      2011-03-08 16:54:27.000000000 +0900
@@ -12,7 +12,7 @@
        $(GST_CFLAGS) \
        $(ORC_CFLAGS)
 libgstvideofiltersbad_la_LIBADD = \
-       $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \
+       $(GST_PLUGINS_BASE_LIBS) $(LIBM) -lgstvideo-$(GST_MAJORMINOR) \
        $(GST_BASE_LIBS) \
        $(GST_LIBS) \
        $(ORC_LIBS)


4. Error log:

...
libtool: link: mv -f ".libs/libgstvideofiltersbad.expT" ".libs/libgstvideofiltersbad.exp"
libtool: link: echo "{ global:" > .libs/libgstvideofiltersbad.ver
libtool: link:  cat .libs/libgstvideofiltersbad.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libgstvideofiltersbad.ver
libtool: link:  echo "local: *; };" >> .libs/libgstvideofiltersbad.ver
libtool: link:  gcc -shared  .libs/libgstvideofiltersbad_la-gstzebrastripe.o .libs/libgstvideofiltersbad_la-gstvideofiltersbad.o   -lgstvideo-0.10 /usr/lib/libgstbase-0.10.so /usr/lib/libgstreamer-0.10.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libxml2.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so -lorc-0.4  -pthread -pthread -Wl,-Bsymbolic-functions -Wl,-z -Wl,defs -Wl,-O1 -Wl,--as-needed -pthread -pthread -pthread   -pthread -Wl,-soname -Wl,libgstvideofiltersbad.so -Wl,-version-script -Wl,.libs/libgstvideofiltersbad.ver -o .libs/libgstvideofiltersbad.so
.libs/libgstvideofiltersbad_la-gstzebrastripe.o: In function `gst_zebra_stripe_transform_ip':
/home/brofkims/build/gst-plugins-bad0.10-0.10.21.1+git20110307/gst/videofilters/gstzebrastripe.c:294: undefined reference to `floor'
collect2: ld returned 1 exit status
make[4]: *** [libgstvideofiltersbad.la] error 1
Comment 1 Tim-Philipp Müller 2011-03-08 11:21:25 UTC
Thanks, pushed:

 commit acb66eb7f4f686b9402a7b031d3f551d3801fc6e
 Author: Byeong-ryeol Kim <brofkims@gmail.com>
 Date:   Tue Mar 8 11:19:41 2011 +0000

    videofilters: link to libm
    
    https://bugzilla.gnome.org/show_bug.cgi?id=644176


Would be nice if you could set your name in bugzilla as well btw.