GNOME Bugzilla – Bug 696750
win32 : native_update_icon_cache failed to cross-compiling
Last modified: 2014-12-09 04:36:28 UTC
I'm trying to compile gtk+ for Windows. I use the following line to configure : PKG_CONFIG_FOR_BUILD="/usr/bin/pkg-config" CFLAGS="-march=i686 -O0 -g3 -ggdb3 -pipe" ./configure --disable-modules --disable-packagekit --disable-cups --disable-papi --disable-introspection --disable-static --enable-shared --prefix=/usr/i686-pc-mingw32/usr/ --build=x86_64-pc-linux-gnu --host=i686-pc-mingw32 but the program fails with : CC libgtka11y_la-gtktoplevelaccessible.lo CC libgtka11y_la-gtktreeviewaccessible.lo CC libgtka11y_la-gtkwidgetaccessible.lo CC libgtka11y_la-gtkwindowaccessible.lo CCLD libgtka11y.la make[4] : on quitte le répertoire « /home/legarrec/programmation/comp/gtk+-3.8.0/gtk/a11y » Making all in native make[4] : on entre dans le répertoire « /home/legarrec/programmation/comp/gtk+-3.8.0/gtk/native » CC native_update_icon_cache-updateiconcache.o In file included from /usr/include/stdlib.h:319:0, from ./../updateiconcache.c:21: /usr/include/sys/types.h:65:17: erreur: two or more data types in declaration specifiers /usr/include/sys/types.h:80:17: erreur: two or more data types in declaration specifiers make[4]: *** [native_update_icon_cache-updateiconcache.o] Erreur 1 make[4] : on quitte le répertoire « /home/legarrec/programmation/comp/gtk+-3.8.0/gtk/native » make[3]: *** [all-recursive] Erreur 1 make[3] : on quitte le répertoire « /home/legarrec/programmation/comp/gtk+-3.8.0/gtk » make[2]: *** [all] Erreur 2 make[2] : on quitte le répertoire « /home/legarrec/programmation/comp/gtk+-3.8.0/gtk » make[1]: *** [all-recursive] Erreur 1 make[1] : on quitte le répertoire « /home/legarrec/programmation/comp/gtk+-3.8.0 » make: *** [all] Erreur 2 The line 65 of sys/types.h is : #ifndef __gid_t_defined typedef __gid_t gid_t; # define __gid_t_defined #endif and the line 80 is : #ifndef __uid_t_defined typedef __uid_t uid_t; # define __uid_t_defined #endif but I don't have a single idea to solve that problem. Does anybody have ? Thanks,
A patch for this can be found in https://bugzilla.gnome.org/show_bug.cgi?id=696951
I think this bug was fixed by https://git.gnome.org/browse/gtk+/commit/?id=4376b4f705baec38e79449525e506bf4d28de4d2