GNOME Bugzilla – Bug 308483
Problem compiling gstreamer 0.9.1
Last modified: 2006-02-17 11:58:48 UTC
Version details: 0.9.1 [...] Making all in tools make[2]: Entering directory `/tmp/gstreamer-0.9.1/tools' /bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -s -O3 -march=i686 -o gst-register-0.9 ../gst/libgstreamer-0.9.la gst_register_0.9-gst-register.o -L/usr/local/lib -lglib-2.0 -liconv -lpopt gcc -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -s -O3 -march=i686 -o .libs/gst-register-0.9 gst_register_0.9-gst-register.o ../gst/.libs/libgstreamer-0.9.so -L/usr/local/lib -L/usr/local/BerkeleyDB.4.1/lib /usr/local/lib/libxml2.so -lz -lm /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgthread-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libglib-2.0.so /usr/local/lib/libiconv.so /usr/local/lib/libpopt.so -lpthread gst_register_0.9-gst-register.o: In function `global constructors keyed to main_GCOV': gst-register.c:(.text+0x7be): undefined reference to `__gcov_init' gst_register_0.9-gst-register.o:(.data+0x44): undefined reference to `__gcov_merge_add' collect2: ld returned 1 exit status make[2]: *** [gst-register-0.9] Error 1 make[2]: Leaving directory `/tmp/gstreamer-0.9.1/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/gstreamer-0.9.1' make: *** [all] Error 2
Assigning to Stefan Kost.
Please post which gcc and gcov version you are using and which distribution you are on. Some distris seems to have broken gcov binaries installed. For now just don't build with coverage enabled during configure if it does not work on your system.
gcc/gcov 3.4.3 GNU/Linux LFS
Im using 3.3.3 and there it works. google gives lots of hits when searching for "global constructors keyed to" but no answer. After searching for "undefined reference to `__gcov_merge_add'" I found: http://leaf.dragonflybsd.org/~joerg/gcc-update.diff which sounds like they have changed the behaviour in gcc-3.4 (added ATTRIBUTE_HIDDEN to the gcov symbols). Unfortunately this is where my knowledge ends.
Pierre, is this still an issue with 0.9.5 ?
No response since November - assuming this has since been fixed. Please reopen if that's not the case.