After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 637549 - build fails: ./.libs/libgstbase-0.10.so: undefined reference to `gst_clock_single_shot_id_reinit'
build fails: ./.libs/libgstbase-0.10.so: undefined reference to `gst_clock_si...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other All
: Normal major
: 0.10.32
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-12-19 10:02 UTC by Christian Kirbach
Modified: 2011-01-18 09:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Kirbach 2010-12-19 10:02:23 UTC
nazgul@rivendell:/git/gnome/gstreamer$ git branch 
* master
nazgul@rivendell:/git/gnome/gstreamer$ pkg-config --version gobject-introspection
0.25
nazgul@rivendell:/git/gnome/gstreamer$ date
So 19. Dez 10:59:38 CET 2010

full build log spotted e.g. : http://www.roojs.org/seed/tinderbox/gstreamer.html



  CC     libgstbase_0.10_la-gstdataqueue.lo
  CCLD   libgstbase-0.10.la
  GEN    GstBase-0.10.gir
g-ir-scanner: warning: Option --strip-prefix has been deprecated;
see --identifier-prefix and --symbol-prefix.
g-ir-scanner: compile: gcc -Wall -pthread -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib64/glib-2.0/include -I../../.. -I../../../libs -I../../.. -I../../../libs -I/space/git/gnome/gstreamer -I/space/git/gnome/gstreamer/libs -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib64/glib-2.0/include -I/opt/gnome2/include/libxml2 -c -o /space/git/gnome/gstreamer/libs/gst/base/tmp-introspectXneCIE/GstBase-0.10.o /space/git/gnome/gstreamer/libs/gst/base/tmp-introspectXneCIE/GstBase-0.10.c
g-ir-scanner: link: ../../../libtool --mode=link --tag=CC --silent gcc -o /space/git/gnome/gstreamer/libs/gst/base/tmp-introspectXneCIE/GstBase-0.10 -export-dynamic -L. libgstbase-0.10.la -pthread -L/opt/gnome2/lib64 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 /space/git/gnome/gstreamer/libs/gst/base/tmp-introspectXneCIE/GstBase-0.10.o
./.libs/libgstbase-0.10.so: undefined reference to `gst_clock_single_shot_id_reinit'
collect2: ld returned 1 exit status
linking of temporary binary failed: Command '['../../../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/space/git/gnome/gstreamer/libs/gst/base/tmp-introspectXneCIE/GstBase-0.10', '-export-dynamic', '-L.', 'libgstbase-0.10.la', '-pthread', '-L/opt/gnome2/lib64', '-lgio-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lrt', '-lglib-2.0', '/space/git/gnome/gstreamer/libs/gst/base/tmp-introspectXneCIE/GstBase-0.10.o']' returned non-zero exit status 1
make[4]: *** [GstBase-0.10.gir] Fehler 1
Comment 1 Tim-Philipp Müller 2011-01-11 14:43:01 UTC
Let's see if this helps:

 commit 1ae28ed41c66078b3943e667692b26f596c64279
 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
 Date:   Tue Jan 11 13:47:38 2011 +0000

    gobject-introspection: make g-ir-scanner try harder to find the right libgstreamer
    
    It's not quite clear to me why g-ir-scanner doesn't get this info from
    the pkg-config file, nor why libtool doesn't get it from the .la.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=637549
Comment 2 Tim-Philipp Müller 2011-01-13 18:40:42 UTC
Seems not:

linking of temporary binary failed: Command '['../../../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/disk2/checkout/gnome2/gstreamer/libs/gst/base/tmp-introspectaBGQrW/GstBase-0.10', '-export-dynamic', '-L.', 'libgstbase-0.10.la', '-L../../../gst', '-pthread', '-lgio-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lrt', '-lglib-2.0', '/disk2/checkout/gnome2/gstreamer/libs/gst/base/tmp-introspectaBGQrW/GstBase-0.10.o']' returned non-zero exit status 1

*sigh* (the second -L isn't quite in the right spot, though you'd think libtool would be picking put the right libgstreamer via the .la file anyway)
Comment 3 Tim-Philipp Müller 2011-01-13 20:14:49 UTC
Let's see if this helps:

commit 6c073ca2c7c401773bfeee837540ee6301532b89
Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
Date:   Thu Jan 13 20:12:16 2011 +0000

    gobject-introspection: another attempt to make g-i find the right libgstreamer
    
    Turns out g-i puts the additional -L we specify at the end, helpfully.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=637549
Comment 4 Tim-Philipp Müller 2011-01-18 09:08:50 UTC
Last fix seems to have worked (build bot is now stuck in gtk-doc scanner, but I don't think that's related.)

 commit a1581a5364a1ead42bf17dc222b2edca9b6c8dbc
 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
 Date:   Tue Jan 18 09:04:51 2011 +0000

    gobject-introspection: try harder to make g-ir-scanner use the right libgstreamer
    
    Apply fix from libgstbase to all core libs now that we know that it
    works. Should fix problems with g-ir-scanner using the wrong
    (ie. system) libgstreamer, leading to linking errors such as
    undefined reference to `gst_clock_single_shot_id_reinit'.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=637549