I get this compile error when building with --enable-gio:
nsGIOService.o: In function `nsGIOService::CreateAppFromCommand(nsACString const&, nsACString const&, nsIGIOMimeApp**)':
nsGIOService.cpp:(.text+0x98): undefined reference to `g_app_info_get_all'
nsGIOService.cpp:(.text+0x147): undefined reference to `g_app_info_get_name'
nsGIOService.cpp:(.text+0x29b): undefined reference to `g_app_info_create_from_commandline'
nsGIOService.o: In function `nsGIOService::ShowURI(nsIURI*)':
nsGIOService.cpp:(.text+0x33b): undefined reference to `g_app_info_launch_default_for_uri'
nsGIOService.o: In function `nsGIOService::ShowURIForInput(nsACString const&)':
nsGIOService.cpp:(.text+0x3a0): undefined reference to `g_file_new_for_commandline_arg'
nsGIOService.cpp:(.text+0x3b3): undefined reference to `g_file_get_uri'
nsGIOService.cpp:(.text+0x3ce): undefined reference to `g_app_info_launch_default_for_uri'
nsGIOService.o: In function `nsGIOMimeApp::GetName(nsACString&)':
nsGIOService.cpp:(.text+0x429): undefined reference to `g_app_info_get_name'
nsGIOService.o: In function `nsGIOService::GetMimeTypeFromExtension(nsACString const&, nsACString&)':
nsGIOService.cpp:(.text+0x53c): undefined reference to `g_content_type_guess'
nsGIOService.cpp:(.text+0x54c): undefined reference to `g_content_type_get_mime_type'
nsGIOService.o: In function `nsGIOMimeApp::SetAsDefaultForFileExtensions(nsACString const&)':
nsGIOService.cpp:(.text+0x694): undefined reference to `g_app_info_set_as_default_for_extension'
nsGIOService.o: In function `nsGIOMimeApp::GetSupportedURISchemes(nsIUTF8StringEnumerator**)':
nsGIOService.cpp:(.text+0x75d): undefined reference to `g_vfs_get_default'
nsGIOService.cpp:(.text+0x76e): undefined reference to `g_vfs_get_supported_uri_schemes'
nsGIOService.o: In function `nsGIOMimeApp::Launch(nsACString const&)':
nsGIOService.cpp:(.text+0x91c): undefined reference to `g_app_info_launch_uris'
nsGIOService.o: In function `nsGIOMimeApp::GetExpectsURIs(int*)':
nsGIOService.cpp:(.text+0x98b): undefined reference to `g_app_info_supports_uris'
nsGIOService.o: In function `nsGIOMimeApp::GetId(nsACString&)':
nsGIOService.cpp:(.text+0x99f): undefined reference to `g_app_info_get_id'
nsGIOService.o: In function `get_content_type_from_mime_type(char const*)':
nsGIOService.cpp:(.text+0x9c3): undefined reference to `g_content_types_get_registered'
nsGIOService.cpp:(.text+0x9d4): undefined reference to `g_content_type_get_mime_type'
nsGIOService.o: In function `nsGIOService::GetDescriptionForMimeType(nsACString const&, nsACString&)':
nsGIOService.cpp:(.text+0xa72): undefined reference to `g_content_type_get_description'
nsGIOService.o: In function `nsGIOService::GetAppForMimeType(nsACString const&, nsIGIOMimeApp**)':
nsGIOService.cpp:(.text+0xaf9): undefined reference to `g_app_info_get_default_for_type'
nsGIOService.o: In function `nsGIOMimeApp::SetAsDefaultForMimeType(nsACString const&)':
nsGIOService.cpp:(.text+0xbad): undefined reference to `g_app_info_set_as_default_for_type'
/usr/bin/ld: libmozgnome.so: hidden symbol `g_app_info_get_name' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[4]: *** [libmozgnome.so] Error 1
I get this compile error when building with --enable-gio:
nsGIOService.o: In function `nsGIOService: :CreateAppFromC ommand( nsACString const&, nsACString const&, nsIGIOMimeApp**)': cpp:(.text+ 0x98): undefined reference to `g_app_ info_get_ all' cpp:(.text+ 0x147): undefined reference to `g_app_ info_get_ name' cpp:(.text+ 0x29b): undefined reference to `g_app_ info_create_ from_commandlin e' :ShowURI( nsIURI* )': cpp:(.text+ 0x33b): undefined reference to `g_app_ info_launch_ default_ for_uri' :ShowURIForInpu t(nsACString const&)': cpp:(.text+ 0x3a0): undefined reference to `g_file_ new_for_ commandline_ arg' cpp:(.text+ 0x3b3): undefined reference to `g_file_get_uri' cpp:(.text+ 0x3ce): undefined reference to `g_app_ info_launch_ default_ for_uri' :GetName( nsACString& )': cpp:(.text+ 0x429): undefined reference to `g_app_ info_get_ name' :GetMimeTypeFro mExtension( nsACString const&, nsACString&)': cpp:(.text+ 0x53c): undefined reference to `g_content_ type_guess' cpp:(.text+ 0x54c): undefined reference to `g_content_ type_get_ mime_type' :SetAsDefaultFo rFileExtensions (nsACString const&)': cpp:(.text+ 0x694): undefined reference to `g_app_ info_set_ as_default_ for_extension' :GetSupportedUR ISchemes( nsIUTF8StringEn umerator* *)': cpp:(.text+ 0x75d): undefined reference to `g_vfs_get_default' cpp:(.text+ 0x76e): undefined reference to `g_vfs_ get_supported_ uri_schemes' :Launch( nsACString const&)': cpp:(.text+ 0x91c): undefined reference to `g_app_ info_launch_ uris' :GetExpectsURIs (int*)' : cpp:(.text+ 0x98b): undefined reference to `g_app_ info_supports_ uris' :GetId( nsACString& )': cpp:(.text+ 0x99f): undefined reference to `g_app_info_get_id' type_from_ mime_type( char const*)': cpp:(.text+ 0x9c3): undefined reference to `g_content_ types_get_ registered' cpp:(.text+ 0x9d4): undefined reference to `g_content_ type_get_ mime_type' :GetDescription ForMimeType( nsACString const&, nsACString&)': cpp:(.text+ 0xa72): undefined reference to `g_content_ type_get_ description' :GetAppForMimeT ype(nsACString const&, nsIGIOMimeApp**)': cpp:(.text+ 0xaf9): undefined reference to `g_app_ info_get_ default_ for_type' :SetAsDefaultFo rMimeType( nsACString const&)': cpp:(.text+ 0xbad): undefined reference to `g_app_ info_set_ as_default_ for_type' info_get_ name' isn't defined
nsGIOService.
nsGIOService.
nsGIOService.
nsGIOService.o: In function `nsGIOService:
nsGIOService.
nsGIOService.o: In function `nsGIOService:
nsGIOService.
nsGIOService.
nsGIOService.
nsGIOService.o: In function `nsGIOMimeApp:
nsGIOService.
nsGIOService.o: In function `nsGIOService:
nsGIOService.
nsGIOService.
nsGIOService.o: In function `nsGIOMimeApp:
nsGIOService.
nsGIOService.o: In function `nsGIOMimeApp:
nsGIOService.
nsGIOService.
nsGIOService.o: In function `nsGIOMimeApp:
nsGIOService.
nsGIOService.o: In function `nsGIOMimeApp:
nsGIOService.
nsGIOService.o: In function `nsGIOMimeApp:
nsGIOService.
nsGIOService.o: In function `get_content_
nsGIOService.
nsGIOService.
nsGIOService.o: In function `nsGIOService:
nsGIOService.
nsGIOService.o: In function `nsGIOService:
nsGIOService.
nsGIOService.o: In function `nsGIOMimeApp:
nsGIOService.
/usr/bin/ld: libmozgnome.so: hidden symbol `g_app_
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[4]: *** [libmozgnome.so] Error 1
System is x86_64 with glib 2.20.4.