GNOME Bugzilla – Bug 320756
gstreamer-0.9.4 compile error on Fedora Core 4 x86_64
Last modified: 2005-12-04 19:13:50 UTC
Distribution/Version: Fedora Core 4 x86_64 The compilation of gstreamer-0.9.4 on Fedora Core 4 x86_64 fails with the following error: [...] Making all in check make[4]: Entering directory `/home/simon/build/gstreamer-0.9.4/gst/check' if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libs -I../.. -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -Wall -g -DGST_DISABLE_DEPRECATED -g -O2 -MT libgstcheck_0.9_la-gstcheck.lo -MD -MP -MF ".deps/libgstcheck_0.9_la-gstcheck.Tpo" -c -o libgstcheck_0.9_la-gstcheck.lo `test -f 'gstcheck.c' || echo './'`gstcheck.c; \ then mv -f ".deps/libgstcheck_0.9_la-gstcheck.Tpo" ".deps/libgstcheck_0.9_la-gstcheck.Plo"; else rm -f ".deps/libgstcheck_0.9_la-gstcheck.Tpo"; exit 1; fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libs -I../.. -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -Wall -g -DGST_DISABLE_DEPRECATED -g -O2 -MT libgstcheck_0.9_la-gstcheck.lo -MD -MP -MF .deps/libgstcheck_0.9_la-gstcheck.Tpo -c gstcheck.c -fPIC -DPIC -o .libs/libgstcheck_0.9_la-gstcheck.o gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libs -I../.. -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -Wall -g -DGST_DISABLE_DEPRECATED -g -O2 -MT libgstcheck_0.9_la-gstcheck.lo -MD -MP -MF .deps/libgstcheck_0.9_la-gstcheck.Tpo -c gstcheck.c -o libgstcheck_0.9_la-gstcheck.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -o libgstcheck-0.9.la -rpath /usr/lib64 -no-undefined libgstcheck_0.9_la-gstcheck.lo ../../gst/libgstreamer-0.9.la -pthread -Wl,--export-dynamic -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lcheck ../libgstreamer-0.9.la gcc -shared .libs/libgstcheck_0.9_la-gstcheck.o -Wl,--rpath -Wl,/home/simon/build/gstreamer-0.9.4/gst/.libs ../../gst/.libs/libgstreamer-0.9.so -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lcheck ../.libs/libgstreamer-0.9.so -pthread -Wl,--export-dynamic -Wl,-soname -Wl,libgstcheck-0.9.so.0 -o .libs/libgstcheck-0.9.so.0.0.0 /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../../../lib64/libcheck.a(check.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../../../lib64/libcheck.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[4]: *** [libgstcheck-0.9.la] Fehler 1 make[4]: Leaving directory `/home/simon/build/gstreamer-0.9.4/gst/check' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/home/simon/build/gstreamer-0.9.4/gst' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/home/simon/build/gstreamer-0.9.4/gst' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/home/simon/build/gstreamer-0.9.4' make: *** [all] Fehler 2
Same problem on Gentoo AMD64. Using './configure --enable-fPIC' doesn't help.
Same error with gstreamer-0.9.5
which version of the check library is this ? It looks like it was built wrong.
I have installed check.x86_64 0.9.3-1.fc4 check-devel.x86_64 0.9.3-2.fc4 from the fedora extras repository. For that, I can't really tell whether it was built wrong or not, or can I?
drawing from experience on other distros, it would seem check needs to be recompiled with -fPIC. Can you open a bug in fedora's bugzilla ?
done. Here it is: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174313
The fedora package has been updated. Works now.