GNOME Bugzilla – Bug 696973
Compiling 2.36.0 for win64 fails in gdbusmessage.c
Last modified: 2013-04-01 06:53:03 UTC
(Cross) compiling glib 2.36.0 for mingw-w64 fails with: [ 342s] make[4]: Entering directory `/home/abuild/rpmbuild/BUILD/glib-2.36.0/gio' [ 342s] CC libgio_2_0_la-gdbusmessage.lo [ 342s] gdbusmessage.c: In function 'read_string': [ 342s] gdbusmessage.c:1387:20: error: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'gsize' [-Werror=format=] [ 342s] (gulong)mbuf->valid_len - mbuf->pos); [ 342s] ^ [ 342s] cc1: some warnings being treated as errors [ 342s] make[4]: *** [libgio_2_0_la-gdbusmessage.lo] Error 1 [ 342s] make[4]: Leaving directory `/home/abuild/rpmbuild/BUILD/glib-2.36.0/gio' [ 342s] make[3]: *** [all-recursive] Error 1 [ 342s] make[3]: Leaving directory `/home/abuild/rpmbuild/BUILD/glib-2.36.0/gio' [ 342s] make[2]: *** [all] Error 2 [ 342s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/glib-2.36.0/gio' [ 342s] make[1]: *** [all-recursive] Error 1 [ 342s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/glib-2.36.0' [ 342s] make: *** [all] Error 2
Created attachment 240209 [details] [review] 0001-Fix-compile-error-in-gdbusmessage.c-for-win64.patch
Review of attachment 240209 [details] [review]: Looks right, thanks. Do you have a GNOME git account?
(In reply to comment #2) > Review of attachment 240209 [details] [review]: > > Looks right, thanks. Do you have a GNOME git account? Yes. Shall I push it to master and glib-2-36 ?
https://git.gnome.org/browse/glib/commit/?id=1011e4269f2c1bb16ad0a72b4b92abaf625c6b56 https://git.gnome.org/browse/glib/commit/?h=glib-2-36&id=3b0b671f2b49064cad6cd5a06ba624910ccd81ad