GNOME Bugzilla – Bug 410997
Fails to build with -z defs
Last modified: 2007-02-24 22:58:22 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,
Created attachment 83134 [details] [review] Link with libm
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)