GNOME Bugzilla – Bug 667905
fails to build: libcanberra undefined references
Last modified: 2012-11-14 01:22:33 UTC
I'm having trouble building gnome-games trunk. I guess this is a result of http://git.gnome.org/browse/gnome-games/commit/?id=7b570dd2213e8bc95711f72a4143461e82d88e15 make[2]: Entering directory `/home/jeremy/devel/gnome-games/upstream2/gnobots2' Making all in src make[3]: Entering directory `/home/jeremy/devel/gnome-games/upstream2/gnobots2/src' CCLD gnobots2 /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libcanberra-gtk3.so: error: undefined reference to 'XFree' /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libcanberra-gtk3.so: error: undefined reference to 'XGetWindowProperty' collect2: ld returned 1 exit status make[3]: *** [gnobots2] Error 1 make[3]: Leaving directory `/home/jeremy/devel/gnome-games/upstream2/gnobots2/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/jeremy/devel/gnome-games/upstream2/gnobots2' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jeremy/devel/gnome-games/upstream2' make: *** [all] Error 2 I have libcanberra-gtk3-dev installed and I'm trying to build using Ubuntu 12.04 amd64. Let me know if you need more logs or info. I had the same problem with gnect and iagno. Jeremy
I am able to build from the 3.3.4 release tarball just fine, but building from git doesn't work for me. I run autogen.sh then make.
I works fine here. Both in jhbuild and in a fresh clone + autogen.sh + make
on 32bit
It looks like a problem with the way libcanberra is linked - it's looking for the XFree and XGetWindowProperty symbols which we don't use anywhere in GNOME Games. Does ldd /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libcanberra-gtk3.so show it correctly linking to libX11?
Created attachment 206385 [details] ldd-output Yes, it look likes libcanberra-gtk3 is linked against libX11 Robert, are you running Precise or something else?
I'm running Precise.
Guessing you don't have this problem anymore Jeremy? Closing as we no longer have a GNOME Games module.