GNOME Bugzilla – Bug 93529
Gstreamer doesn't compile
Last modified: 2009-08-15 18:40:50 UTC
I'm using gcc3.2. Latest glib release. Everything's ok so far. ./configure --prefix=/usr/local The following compiler error shows up: gcc -g -O2 -o cothreads cothreads-cothreads.o ../cothreads/.libs/libcothreads.al ../cothreads/.libs/libcothreads.al(libcothreads_gthreads_la-cothreads.lo): In function `cothreads_init': /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:115: undefined reference to `g_log' ../cothreads/.libs/libcothreads.al(libcothreads_gthreads_la-cothreads.lo): In function `cothreads_init_thread': /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:162: undefined reference to `g_static_private_get' /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:167: undefined reference to `g_log' /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:197: undefined reference to `g_static_private_set' /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:175: undefined reference to `g_log' ../cothreads/.libs/libcothreads.al(libcothreads_gthreads_la-cothreads.lo): In function `cothreads_get_chunk': /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:211: undefined reference to `g_static_private_get' /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:213: undefined reference to `g_static_private_get' ../cothreads/.libs/libcothreads.al(libcothreads_gthreads_la-cothreads.lo): In function `cothread_create': /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:280: undefined reference to `g_log' /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:271: undefined reference to `g_log' /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:266: undefined reference to `g_log' ../cothreads/.libs/libcothreads.al(libcothreads_gthreads_la-cothreads.lo): In function `cothread_destroy': /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:383: undefined reference to `g_log' /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:379: undefined reference to `g_log' ../cothreads/.libs/libcothreads.al(libcothreads_gthreads_la-cothreads.lo):/tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:525: more undefined references to `g_log' follow ../cothreads/.libs/libcothreads.al(libcothreads_gthreads_la-cothreads.lo): In function `cothread_chunk_new': /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:547: undefined reference to `g_malloc0' /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:549: undefined reference to `g_malloc0' ../cothreads/.libs/libcothreads.al(libcothreads_gthreads_la-cothreads.lo): In function `cothread_chunk_free': /tmp/gstreamer/libs/ext/cothreads/cothreads/cothreads.c:571: undefined reference to `g_free' collect2: ld returned 1 exit status make[5]: *** [cothreads] Fehler 1 make[5]: Verlassen des Verzeichnisses Verzeichnis »/tmp/gstreamer/libs/ext/cothreads/tests«
I've only seen this with libtool 1.4.2 For some reason it doesn't pick up the glib lib lines. I've been told it might be a pkg-config bug. Please try with the new (as of today) pkg-config release, or with libtool 1.4.0 and let us know.
I know you have gotten GStreamer to compile now, so I am closing :)