GNOME Bugzilla – Bug 638510
[PATCH] X_LIBS missing for sticky notes and trash applet, they do not compile
Last modified: 2011-03-26 10:18:41 UTC
Created attachment 177348 [details] [review] fixes missing reference to X lib Make complains about missing reference to X lib since X_LIBS is missing for *_LDADD for sticky notes and trash applet. Fixed by following patch. Why does this break, suddenly?
(In reply to comment #0) > Why does this break, suddenly? Please provide the make output. :)
Sorry, here they come ...
Created attachment 177488 [details] error for compiling sticky notes applet
Created attachment 177489 [details] error for compiling the trash applet
Btw., the same problem occurred in other projects as well: - gnome-panel (gtk3 branch) - libwnck (gtk3 branch) I am using a fresh installation of Ubutnu 11.04 (development branch).
*** Bug 640356 has been marked as a duplicate of this bug. ***
The problem is arised when you use binutils.gold. binutils.gold (ld.gold) is faster than the GNU ld, but it is also stricter and raise the issues. For more reference: http://lwn.net/Articles/274859/ (the series of blog posts linked in the article are quite good).
I do not think it is critical, because with GNU ld it just compile. However, the Makefile is missing the X_LIB.
Actually the problem arises when you use GCC 4.5, at least on Debian/Ubuntu. Even without binutils-gold, it will pass --no-add-needed to the linker. I think the patch is correct.
patch committed to master head in http://git.gnome.org/browse/gnome-applets/commit/?id=99f91d51c5e18bc86cdc425dbe4e3a280e9b8f63