GNOME Bugzilla – Bug 679972
XDG_MIME_TYPE_UNKNOWN reference is undeclared on windows (leads to build failures)
Last modified: 2012-07-15 20:01:58 UTC
Since version 2.32.4, line 334 of gcontenttype.c references XDG_MIME_TYPE_UNKNOWN. This part of the file is surrounded by an #ifdef G_OS_WIN32, but on windows, xdgmime/xdgmime.h is never included, so XDG_MIME_TYPE_UNKNOWN is never defined. The result is you can no longer compile gio for windows: CC libgio_2_0_la-gcontenttype.lo gcontenttype.c: In function 'g_content_type_guess': gcontenttype.c:335:3: error: 'XDG_MIME_TYPE_UNKNOWN' undeclared (first use in this function) gcontenttype.c:335:3: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [libgio_2_0_la-gcontenttype.lo] Error 1 make[2]: Leaving directory `/home/mike/comp/gimp/win/fetched/glib-2.32.4/gio' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mike/comp/gimp/win/fetched/glib-2.32.4/gio' make: *** [all] Error 2 (I encountered this while cross-compiling using mingw32 under Linux).
see bug 674452 *** This bug has been marked as a duplicate of bug 674452 ***