Windows compile error with glib enabled
@rhabacker
Submitted by Ralf Habacker Assigned to Ralf Habacker @rhabacker
Description
with recent dbus-1.10 branch I get a build error with autotools cross compiling for windows:
make[3]: Entering directory /home/ralf.habacker/src/dbus-autotools-cross-build/test' ^ ../../dbus/test/test-utils-glib.c:454:3: warning: nested extern declaration of 'alarm' [-Wnested-externs] ../../dbus/test/test-utils-glib.c:458:14: error: variable 'act' has initializer but incomplete type struct sigaction act = { }; ^ ../../dbus/test/test-utils-glib.c:458:24: error: storage size of 'act' isn't known struct sigaction act = { }; ^ ../../dbus/test/test-utils-glib.c:462:7: warning: nested extern declaration of 'sigaction' [-Wnested-externs] ../../dbus/test/test-utils-glib.c:462:18: error: 'SIGALRM' undeclared (first use in this function) sigaction (SIGALRM, &act, NULL); ^ make[3]: *** [test-utils-glib.lo] Fehler 1 make[3]: Leaving directory
/home/ralf.habacker/src/dbus-autotools-cross-build/test'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory /home/ralf.habacker/src/dbus-autotools-cross-build/test' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory
/home/ralf.habacker/src/dbus-autotools-cross-build'
make: *** [all] Fehler 2
and with cmake
In file included from /home/ralf.habacker/src/dbus/test/test-utils-glib.c:28:0: /home/ralf.habacker/src/dbus/test/test-utils-glib.h:32:18: fatal error: glib.h: No such file or directory compilation terminated. make[2]: *** [test/CMakeFiles/dbus-testutils-glib.dir/home/ralf.habacker/src/dbus/test/test-utils-glib.obj] Fehler 1 make[1]: *** [test/CMakeFiles/dbus-testutils-glib.dir/all] Fehler 2 make: *** [all] Fehler 2
Version: 1.10