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 679972 - XDG_MIME_TYPE_UNKNOWN reference is undeclared on windows (leads to build failures)
XDG_MIME_TYPE_UNKNOWN reference is undeclared on windows (leads to build fail...
Status: RESOLVED DUPLICATE of bug 674452
Product: glib
Classification: Platform
Component: gio
2.32.x
Other Windows
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-07-15 19:58 UTC by Mike Henning (drawoc)
Modified: 2012-07-15 20:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mike Henning (drawoc) 2012-07-15 19:58:59 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).
Comment 1 Marc-Andre Lureau 2012-07-15 20:01:58 UTC
see bug 674452

*** This bug has been marked as a duplicate of bug 674452 ***