GNOME Bugzilla – Bug 768219
Build failure due to missing ServiceData members
Last modified: 2016-06-30 10:17:56 UTC
On Fedora 24, using GNOME 3.22 jhbuild: /home/daniels/src/gnome/phodav/spice/spice-webdavd.c: In function ‘main’: /home/daniels/src/gnome/phodav/spice/spice-webdavd.c:1157:15: error: ‘ServiceData {aka struct _ServiceData}’ has no member named ‘drive_letter’ service_data.drive_letter = 0; ^ /home/daniels/src/gnome/phodav/spice/spice-webdavd.c:1158:29: error: ‘ServiceData {aka struct _ServiceData}’ has no member named ‘mutex’ g_mutex_init(&service_data.mutex); ^ Makefile:1046: recipe for target 'spice/spice_webdavd-spice-webdavd.o' failed Either the usage should be placed under the G_OS_WIN32 conditional immediately above, or the ServiceData members should be declared unconditionally.
This appears to have been introduced with 606ebd7ee3, and I don't believe phodav would have been able to build since on non-Windows OSes.
The following fix has been pushed: bbcb90a Fix build on non-win32
Created attachment 330643 [details] [review] Fix build on non-win32 Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=768219 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>