GNOME Bugzilla – Bug 708443
Introspection fails to build in 1.1.90
Last modified: 2013-09-27 13:39:46 UTC
CC libgstreamer_1.0_la-gstparse.lo CC libgstreamer_1.0_la-gstregistrybinary.lo CC libgstreamer_1.0_la-gstenumtypes.lo CCLD libgstreamer-1.0.la GEN Gst-1.0.gir g-ir-scanner: compile: gcc46 -std=gnu99 -Wno-deprecated-declarations -pthread -I/usr/local/include/glib-2.0 -I/usr/local/include -O2 -pipe -O2 -Wno-format -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -I.. -I.. -I/usr/local/include/glib-2.0 -I/usr/local/include -c -o /usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspectJjN9TU/Gst-1.0.o /usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspectJjN9TU/Gst-1.0.c /usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspectJjN9TU/Gst-1.0.c: In function 'main': /usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspectJjN9TU/Gst-1.0.c:582:3: warning: implicit declaration of function 'gst_init' [-Wimplicit-function-declaration] g-ir-scanner: link: ../libtool --mode=link --tag=CC gcc46 -std=gnu99 -o /usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspectJjN9TU/Gst-1.0 -export-dynamic -O2 -pipe -O2 -Wno-format -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath=/usr/local/lib/gcc46 /usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspectJjN9TU/Gst-1.0.o -L. libgstreamer-1.0.la -lgio-2.0 -Wl,--export-dynamic -lgobject-2.0 -lgmodule-2.0 -pthread -L/usr/local/lib -lglib-2.0 -lintl libtool: link: gcc46 -std=gnu99 -o /usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspectJjN9TU/.libs/Gst-1.0 -O2 -pipe -O2 -Wno-format -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc46 /usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspectJjN9TU/Gst-1.0.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic -L/usr/local/lib -L. ./.libs/libgstreamer-1.0.so -lm /usr/local/lib/libgio-2.0.so -lz /usr/local/lib/libgobject-2.0.so /usr/local/lib/libffi.so /usr/local/lib/libgmodule-2.0.so /usr/local/lib/libglib-2.0.so /usr/local/lib/libpcre.so /usr/local/lib/libintl.so -pthread -Wl,-rpath -Wl,/tmp/gstreamer1-1.1.90/lib -Wl,-rpath -Wl,/usr/local/lib Invalid GType function: 'gst_stream_flags_get_type' Failed to find symbol 'gst_stream_flags_get_type' Command '['/usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspectJjN9TU/Gst-1.0', '--introspect-dump=/usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspectJjN9TU/functions.txt,/usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspectJjN9TU/dump.xml']' returned non-zero exit status 1 gmake[6]: *** [Gst-1.0.gir] Error 1 gmake[6]: Leaving directory `/usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst' gmake[5]: *** [all-recursive] Error 1 gmake[5]: Leaving directory `/usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst' gmake[4]: *** [all] Error 2 gmake[4]: Leaving directory `/usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90'
Is gst_stream_flags_get_type in gstenumtypes.[ch] for you, and are both compiled into the library? Did it work before 1.1.90?
Also can you run "make V=1" (after "make clean") to get the complete output and attach it here?
Created attachment 255376 [details] complete build log The symbol is available in the library 00000000000add90 T gst_stream_flags_get_type After a suggestion from tim, I deinstalled gstreamer-1.0.10 and tried to build it again, this time the build finished. So it seems to be picking up the installed 1.0.10 from /usr/local.
I don't see the actual error in the log. However: libtool: link: gcc46 -std=gnu99 -o /usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspect_10doS/.libs/Gst-1.0 -O2 -pipe -O2 -Wno-format -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc46 /usr/home/kwm/cvs/freebsd/gstreamer-devel/ports/multimedia/gstreamer1/work/gstreamer-1.1.90/gst/tmp-introspect_10doS/Gst-1.0.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic -L. ./.libs/libgstreamer-1.0.so -L/usr/local/lib -lm /usr/local/lib/libgio-2.0.so -lz /usr/local/lib/libgobject-2.0.so /usr/local/lib/libffi.so /usr/local/lib/libgmodule-2.0.so /usr/local/lib/libglib-2.0.so /usr/local/lib/libpcre.so /usr/local/lib/libintl.so -pthread -Wl,-rpath -Wl,/usr/local/lib Looks fine to me - libtool bug maybe? Maybe you can set that env variable that makes g-ir-scanner keep the temp dir with the binaries around, then you can look at the LD_LIBRARY_PATH in the libtool wrapper script for Gst-1.0
This is indeed related to libtool, but the problem is not in the gstreamer package but in local modifications we use. If I disable the use of these local changes then the build finishes.