After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 696750 - win32 : native_update_icon_cache failed to cross-compiling
win32 : native_update_icon_cache failed to cross-compiling
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-03-28 05:40 UTC by LE GARREC Vincent
Modified: 2014-12-09 04:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description LE GARREC Vincent 2013-03-28 05:40:40 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,
Comment 1 Hib Eris 2014-06-30 21:32:26 UTC
A patch for this can be found in https://bugzilla.gnome.org/show_bug.cgi?id=696951
Comment 2 Jose Rostagno 2014-08-15 19:26:18 UTC
I think this bug was fixed by https://git.gnome.org/browse/gtk+/commit/?id=4376b4f705baec38e79449525e506bf4d28de4d2