GNOME Bugzilla – Bug 760192
commit 85c185d5dc662945f98860ea6092b2f9927dac8f breaks compilation with gcc 5.2/3
Last modified: 2016-01-06 10:33:29 UTC
commit 85c185d5dc662945f98860ea6092b2f9927dac8f 'audioscrobbler: build a separate static library for tests' breaks compilation with gcc 5.2/3 with the follow error messages. reverting fixes compilation. ../plugins/audioscrobbler/.libs/libaudioscrobblertest.a(rb-audioscrobbler-entry.o): In function `rb_audioscrobbler_entry_encode': rb-audioscrobbler-entry.c:(.text+0x2c2): undefined reference to `soup_uri_encode' rb-audioscrobbler-entry.c:(.text+0x2d5): undefined reference to `soup_uri_encode' rb-audioscrobbler-entry.c:(.text+0x2e9): undefined reference to `soup_uri_encode' rb-audioscrobbler-entry.c:(.text+0x313): undefined reference to `soup_uri_encode' ../plugins/audioscrobbler/.libs/libaudioscrobblertest.a(rb-audioscrobbler-entry.o): In function `rb_audioscrobbler_entry_load_from_string': rb-audioscrobbler-entry.c:(.text+0x495): undefined reference to `soup_uri_decode' rb-audioscrobbler-entry.c:(.text+0x4b7): undefined reference to `soup_uri_decode' rb-audioscrobbler-entry.c:(.text+0x4d7): undefined reference to `soup_uri_decode' rb-audioscrobbler-entry.c:(.text+0x517): undefined reference to `soup_uri_decode' collect2: error: ld returned 1 exit status Makefile:850: recipe for target 'test-audioscrobbler' failed make[2]: *** [test-audioscrobbler] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/home/daniel/Downloads/rhythmbox-git/src/rhythmbox-git/tests' Makefile:606: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/daniel/Downloads/rhythmbox-git/src/rhythmbox-git' Makefile:515: recipe for target 'all' failed make: *** [all] Error 2
Compiles successfully here with gcc version 5.3.1 20151207 (Red Hat 5.3.1-2) (GCC).
Ill try a newer snapshot of gcc 5 next week This is what is currently on my system, if you want to know anything else, just look at the arch-linux stable repos libsoup 2.52.2-1 binutils 2.25.1-3 gcc 5.3.0-3 (gcc version 5.3.0 (GCC))
--as-needed strikes again
fixed in commit 5f3cddd