GNOME Bugzilla – Bug 110754
gst-gconf linking fails with installed packages
Last modified: 2004-12-22 21:47:04 UTC
When building the player against 0.6.0.2 pre release build fails because it tries to link to packages of 0.6.0 instead of linking with libgstgconf from 0.6.0.2 here is the env requested by thomasvs : dolphy@dolphy:~/workdir/gst-player$ export PKG_CONFIG_PATH=/opt/gstreamer/lib/pkgconfig/ dolphy@dolphy:~/workdir/gst-player$ pkg-config gstreamer-0.6 gstreamer-gconf-0.6 --cflags --libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/opt/gstreamer/include/gstreamer-0.6 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wl,--export-dynamic -pthread -L/opt/gstreamer/lib -lgstgconf-0.6 -lgstreamer-0.6 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lz -lm -lglib-2.0
here is the detailed compilation failure : Making all in src make[2]: Entering directory `/home/dolphy/workdir/gst-player/src' /bin/sh ../libtool --mode=link gcc -g -O2 -o gst-player gst_player-main.o -pthread -Wl,--export-dynamic -L/usr/X11R6/lib -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomecanvas-2 -lgnome-2 -lart_lgpl_2 -lpangoft2-1.0 -lbonobo-2 -lgnomevfs-2 -lbonobo-activation -lgconf-2 -lORBit-2 -llinc -lgthread-2.0 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lz -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 /home/dolphy/tmp/0_6/gstreamer-0.6.0.2/pkgconfig/../gst/libgstreamer-0.6.la /home/dolphy/tmp/0_6/gst-plugins-0.6.0.2/pkgconfig/../gst-libs/gst/play/libgstplay-0.6.la -Wl,--export-dynamic -pthread -L/home/dolphy/tmp/0_6/gst-plugins-0.6.0.2/pkgconfig/../gst-libs/gst/gconf -L/home/dolphy/tmp/0_6/gst-plugins-0.6.0.2/pkgconfig/../gst-libs/gst/audio -L/home/dolphy/tmp/0_6/gst-plugins-0.6.0.2/pkgconfig/../gst-libs/gst/video -L/home/dolphy/tmp/0_6/gst-plugins-0.6.0.2/pkgconfig/../gst-libs/gst/play -lgstcontrol-0.6 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lz -lm -lglib-2.0 ../libs/gst/player/libgstplayer.la -lgstgconf-0.6 gcc -g -O2 -o .libs/gst-player gst_player-main.o -pthread -Wl,--export-dynamic -Wl,--export-dynamic -pthread -L/usr/X11R6/lib -L/usr/lib -lz -lm -ldl -lz -lm -ldl -lm -ldl -lz -ldl -lm -lm -lm -ldl -ldl -lm -lz -lm -ldl -lm -ldl -ldl -lz -lm -ldl -lz -lm -lz -ldl -ldl -lm -lm -ldl -ldl -ldl -lz -lm -ldl -L/opt/gstreamer/lib -ldl -lz -lm -L/home/dolphy/tmp/0_6/gst-plugins-0.6.0.2/pkgconfig/../gst-libs/gst/gconf -L/home/dolphy/tmp/0_6/gst-plugins-0.6.0.2/pkgconfig/../gst-libs/gst/audio -L/home/dolphy/tmp/0_6/gst-plugins-0.6.0.2/pkgconfig/../gst-libs/gst/video -L/home/dolphy/tmp/0_6/gst-plugins-0.6.0.2/pkgconfig/../gst-libs/gst/play -lz -lm -ldl -ldl -ldl -lz -lm -lz -lm ../libs/gst/player/.libs/libgstplayer.so /home/dolphy/tmp/0_6/gstreamer-0.6.0.2/pkgconfig/../gst/.libs/libgstreamer-0.6.so -lz -lm -ldl /home/dolphy/tmp/0_6/gst-plugins-0.6.0.2/pkgconfig/../gst-libs/gst/play/.libs/libgstplay-0.6.so -ldl -lz -lm /opt/gstreamer/lib/libgstcontrol-0.6.so /opt/gstreamer/lib/libgstreamer-0.6.so -lz -lm -ldl -ldl -ldl -lz -lm -lz -lm /usr/lib/libgnomeui-2.so -lz -lm -ldl -lSM -lICE /usr/lib/libbonoboui-2.so -lz -lm -ldl /usr/lib/libgnomecanvas-2.so -lm -ldl /usr/lib/libgnome-2.so -lz -ldl /usr/lib/libesd.so /usr/lib/libaudiofile.so -lm /usr/lib/libart_lgpl_2.so -lm /usr/lib/libpangoft2-1.0.so /usr/lib/libbonobo-2.so /usr/lib/libORBitCosNaming-2.so -lm -ldl /usr/lib/libgnomevfs-2.so -ldl -lm /usr/lib/libgnutls.so /usr/lib/libtasn1.so /usr/lib/libgcrypt.so -lnsl -lz -lrt /usr/lib/libbonobo-activation.so -lm -ldl -lm -ldl -ldl /usr/lib/libglade-2.0.so -lz -lm -ldl /usr/lib/libgtk-x11-2.0.so /usr/lib/libxml2.so -lz -lm -lz /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so -ldl /usr/lib/libgdk_pixbuf-2.0.so -ldl -lm -lm /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so -ldl -ldl -ldl /usr/lib/libgstgconf-0.6.so /usr/lib/libgconf-2.so /usr/lib/libORBit-2.so /usr/lib/libpopt.so -lm /usr/lib/liblinc.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgobject-2.0.so /usr/lib/libgthread-2.0.so -lpthread /usr/lib/libglib-2.0.so -Wl,--rpath -Wl,/opt/gstreamer//lib -Wl,--rpath -Wl,/opt/gstreamer/lib ../libs/gst/player/.libs/libgstplayer.so: undefined reference to `gst_gconf_get_default_visualisation_element' collect2: ld returned 1 exit status make[2]: *** [gst-player] Error 1 make[2]: Leaving directory `/home/dolphy/workdir/gst-player/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/dolphy/workdir/gst-player' make: *** [all] Error 2 dolphy@dolphy:~/workdir/gst-player$
Created attachment 15706 [details] make > make.log 2>&1
Created attachment 15709 [details] incriminated makefile
I fixed running against uninstalled gstreamer and gst-plugins this week, and it works for me now. I removed -lgstgconf and replaced it with the proper uninstalled pc getting. If this is not fixed for you, please reopen the bug.