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 410997 - Fails to build with -z defs
Fails to build with -z defs
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal major
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-22 22:08 UTC by Loïc Minier
Modified: 2007-02-24 22:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Link with libm (5.62 KB, patch)
2007-02-22 22:18 UTC, Loïc Minier
committed Details | Review

Description Loïc Minier 2007-02-22 22:08:20 UTC
Hi,

gts-plugins-good fails to build with -z defs in LDFLAGS. This is due to a missing -lm flag:
 gcc -shared  .libs/libgstvideobalance_la-gstvideobalance.o  -Wl,--rpath -Wl,/home/lool/jhbuild-gnome-2.18/prefix/lib -Wl,--rpath -Wl,/home/lool/jhbuild-gnome-2.18/prefix/lib -L/home/lool/jhbuild-gnome-2.18/prefix/lib /home/lool/jhbuild-gnome-2.18/prefix/lib/libgstvideo-0.10.so /home/lool/jhbuild-gnome-2.18/prefix/lib/libgstinterfaces-0.10.so /home/lool/jhbuild-gnome-2.18/prefix/lib/libgstbase-0.10.so /home/lool/jhbuild-gnome-2.18/prefix/lib/libgstreamer-0.10.so /home/lool/jhbuild-gnome-2.18/prefix/lib/libgobject-2.0.so /home/lool/jhbuild-gnome-2.18/prefix/lib/libgmodule-2.0.so -ldl /home/lool/jhbuild-gnome-2.18/prefix/lib/libgthread-2.0.so -lrt /home/lool/jhbuild-gnome-2.18/prefix/lib/libxml2.so /home/lool/jhbuild-gnome-2.18/prefix/lib/libglib-2.0.so  -Wl,-O1 -Wl,-z -Wl,defs -pthread -pthread -pthread -Wl,-soname -Wl,libgstvideobalance.so -Wl,-version-script -Wl,.libs/libgstvideobalance.ver -o .libs/libgstvideobalance.so
.libs/libgstvideobalance_la-gstvideobalance.o: In function `gst_video_balance_update_tables_planar411':
/home/lool/jhbuild-gnome-2.18/checkout/gst-plugins-good/gst/videofilter/gstvideobalance.c:118: undefined reference to `rint'
/home/lool/jhbuild-gnome-2.18/checkout/gst-plugins-good/gst/videofilter/gstvideobalance.c:123: undefined reference to `cos'
/home/lool/jhbuild-gnome-2.18/checkout/gst-plugins-good/gst/videofilter/gstvideobalance.c:124: undefined reference to `sin'

I'll attach a patch completely different from the gst-plugins-base fix from bug 410963.

Bye,
Comment 1 Loïc Minier 2007-02-22 22:18:07 UTC
Created attachment 83134 [details] [review]
Link with libm
Comment 2 Tim-Philipp Müller 2007-02-24 22:58:22 UTC
Thanks, committed (with minor changes):

 2007-02-24  Tim-Philipp Müller  <tim at centricular dot net>

        Patch by: Loïc Minier <lool+gnome at via ecp fr>

        * configure.ac:
        * ext/annodex/Makefile.am:
        * ext/jpeg/Makefile.am:
        * ext/speex/Makefile.am:
        * gst/alpha/Makefile.am:
        * gst/cutter/Makefile.am:
        * gst/debug/Makefile.am:
        * gst/effectv/Makefile.am:
        * gst/goom/Makefile.am:
        * gst/level/Makefile.am:
        * gst/smpte/Makefile.am:
        * gst/videofilter/Makefile.am:
          Fix build with LDFLAGS='-Wl,-z,defs' (#410997)