GNOME Bugzilla – Bug 743674
error building gsd in jhbuild
Last modified: 2015-02-20 12:38:51 UTC
1. warning building power plugin: gpm-common.c:201:9: warning: implicit declaration of function ‘gnome_settings_get_chassis_type’ [-Wimplicit-function-declaration] type = gnome_settings_get_chassis_type (); 2. error building xrandr plugin: ../../plugins/common/.libs/libcommon.a(libcommon_la-gsd-device-manager.o): In function `gsd_device_manager_get': /home/alberts/JHBuild/checkout/gnome-settings-daemon/plugins/common/gsd-device-manager.c:269: undefined reference to `gnome_settings_is_wayland'
Created attachment 295718 [details] [review] power: add missing include
Created attachment 295719 [details] [review] common: link with libgsd.la
(In reply to comment #0) <snip> > 2. error building xrandr plugin: > > ../../plugins/common/.libs/libcommon.a(libcommon_la-gsd-device-manager.o): In > function `gsd_device_manager_get': > /home/alberts/JHBuild/checkout/gnome-settings-daemon/plugins/common/gsd-device-manager.c:269: > undefined reference to `gnome_settings_is_wayland' I can't reproduce that.
Deleted gnome-settings-daemon from checkout directory and run jhbuild buildone gnome-settings-daemon. And it fails with same error: make[3]: Entering directory '/home/alberts/JHBuild/checkout/gnome-settings-daemon/plugins/xrandr' CC libxrandr_la-gsd-xrandr-plugin.lo CC libxrandr_la-gsd-xrandr-manager.lo CC gsd_test_xrandr-test-xrandr.o CC gsd_test_xrandr-gsd-xrandr-manager.o LC_ALL=C /usr/bin/intltool-merge -d -u -c ../../po/.intltool-merge-cache ../../po xrandr.gnome-settings-plugin.in xrandr.gnome-settings-plugin Found cached translation database Merging translations into xrandr.gnome-settings-plugin. CCLD gsd-test-xrandr CCLD libxrandr.la ../../plugins/common/.libs/libcommon.a(libcommon_la-gsd-device-manager.o): In function `gsd_device_manager_get': /home/alberts/JHBuild/checkout/gnome-settings-daemon/plugins/common/gsd-device-manager.c:269: undefined reference to `gnome_settings_is_wayland' collect2: error: ld returned 1 exit status Makefile:642: recipe for target 'gsd-test-xrandr' failed make[3]: *** [gsd-test-xrandr] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/home/alberts/JHBuild/checkout/gnome-settings-daemon/plugins/xrandr'
Still not failing, please attach the full build log.
Created attachment 295788 [details] build log
Still getting this error... Do you have any idea what could cause this error?
I can reliably trigger it with LDFLAGS="-Wl,--as-needed", while the build passes without it, so there does indeed seem to be some underlinking going on.
Tested and fixed with some changes to the commit message.