Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8406507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:07:43+00:00 2026-06-09T23:07:43+00:00

While cross-compiling GLib 2.32.4 with Mingw-w64 for Win32, I ran into the following error:

  • 0

While cross-compiling GLib 2.32.4 with Mingw-w64 for Win32, I ran into the following error:

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

I can only assume one of two things:

  • I am missing some sort of preprocessor definition or ./configure flag (currently I only pass --host and --prefix to ./configure).

  • There is an error in the source code.

Some further digging around revealed that XDG_MIME_TYPE_UNKNOWN is defined gio/xdgmime/xdgmime.h like so:

extern const char xdg_mime_type_unknown[];
#define XDG_MIME_TYPE_UNKNOWN xdg_mime_type_unknown

This file doesn’t seem to be included anywhere in gcontenttype.c however.

Is this a problem with the way I am compiling the library or is it a bug with the library?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:07:44+00:00Added an answer on June 9, 2026 at 11:07 pm

    I finally just fixed up the source code myself.

    gcontenttype.c:335

    g_return_val_if_fail (data_size != (gsize) -1,
                          g_strdup (XDG_MIME_TYPE_UNKNOWN));
    

    …becomes…

    g_return_val_if_fail (data_size != (gsize) -1,
                          g_strdup ("application/octet-stream"));
    

    The library now compiles without error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While attempting to cross-compile ICU using android-ndk-r7 in Linux, the following error occurs after
While compiling C++ code that is cross platform, g++ throws a compiler error if
While running 'rvm install 1.9.3' I get the following error: Error running ' ./configure
Getting this error on chrome while trying to make cross-domain requests with GWT application.
While cross-site scripting is generally regarded as negative, I've run into several situations where
I came across some cross-browser weirdness while trying to integrate the ExtJs HtmlEditor into
I've been thinking for a while if there's a way to get cross-domain AJAX
I have code that relies heavily on yaml for cross-language serialization and while working
While deveoping a site (using Forms authentication and InProc sessionstate) a frequently run into
How do i count null values while making cross tab query? I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.