[Bug 645711] New: link error of gst-plugins-bad- while using gcc-4.52

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Mar 25 22:21:43 PDT 2011

  GStreamer | gst-plugins | 0.10.32

           Summary: link error of gst-plugins-bad-
                    while using gcc-4.52
    Classification: Desktop
           Product: GStreamer
           Version: 0.10.32
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: brofkims at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
      GNOME target: ---
     GNOME version: ---

1. On 64-bit Ubuntu 11.04 beta(gcc-4.52-7ubuntu1,, I
failed to build gst-plugins-bad- due to 'undefined
reference to rint' in function `gst_patchdetect_transform_ip' while compiling

Error log follows at the end of this report.

2. With following patch, I could link it and build gst-plugins-bad-
'rint' is part of libm.

-------- a/gst/patchdetect/Makefile.am.orig  2011-03-25 15:14:40.000000000
+++ b/gst/patchdetect/Makefile.am       2011-03-25 15:15:11.000000000 +0900
@@ -13,7 +13,7 @@
        $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \
        $(GST_BASE_LIBS) \
        $(GST_LIBS) \
-       $(ORC_LIBS)
+       $(ORC_LIBS) $(LIBM)
 libgstpatchdetect_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 libgstpatchdetect_la_LIBTOOLFLAGS = --tag=disable-static

3. Error messages:

libtool: link: echo "{ global:" > .libs/libgstpatchdetect.ver
libtool: link:  cat .libs/libgstpatchdetect.exp | sed -e "s/\(.*\)/\1;/" >>
libtool: link:  echo "local: *; };" >> .libs/libgstpatchdetect.ver
libtool: link:  gcc -shared  .libs/libgstpatchdetect_la-gstpatchdetect.o  
-L/usr/lib/x86_64-linux-gnu -lgstvideo-0.10 /usr/lib/libgstbase-0.10.so
/usr/lib/libgstreamer-0.10.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so
/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so /usr/lib/libxml2.so
/usr/lib/x86_64-linux-gnu/libgthread-2.0.so -lrt
/usr/lib/x86_64-linux-gnu/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,libgstpatchdetect.so
-Wl,-version-script -Wl,.libs/libgstpatchdetect.ver -o
.libs/libgstpatchdetect_la-gstpatchdetect.o: In function
undefined reference to `rint'
undefined reference to `rint'
undefined reference to `rint'
undefined reference to `rint'
undefined reference to `rint'
more undefined references to `rint' follow
collect2: ld returned 1 exit status
make[4]: *** [libgstpatchdetect.la] error 1
make[4]: Leaving directory
make[3]: *** [patchdetect] error 2
make[3]: Leaving directory
make[2]: *** [all-recursive] error 1
make[2]: Leaving directory
make[1]: *** [all] error 2
make[1]: Leaving directory
make: *** [debian/stamp-makefile-build] error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the gstreamer-bugs mailing list