Bug 12249

Summary: declared and actually needed version of glib2 do not match
Product: shared-mime-info Reporter: Guillaume D. <guillaumed>
Component: generalAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Guillaume D. 2007-09-01 06:56:37 UTC
configure.in says "glib-2.0 >= 2.3.2" but `make` gives:
gcc -I/sw/include/libxml2 -I/sw/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include   -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings   -o update-mime-database update_mime_database-update-mime-database.o -L/sw/lib -lxml2 -lpthread -lz -lm -lglib-2.0 -lintl  
/usr/bin/ld: Undefined symbols:
_g_debug
_g_log_set_default_handler

Both are only available from 2.6, see http://www.gtk.org/api/2.6/glib/glib-Message-Logging.html

As a workaround, replacing "g_debug (" with "g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG," and commenting the call to "g_log_set_default_handler" works for me.
Comment 1 Bastien Nocera 2008-02-21 10:01:31 UTC
I updated the requirements to 2.6.0 (which was released 4 years ago...).

* configure.in: Update deps to glib 2.6.0, spotted by
Guillaume D. <guillaumed@users.sf.net> (Closes: #12249)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.