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 665705 - [patch] glib fails to use system iconv on Mac OS X
[patch] glib fails to use system iconv on Mac OS X
Status: RESOLVED DUPLICATE of bug 529806
Product: glib
Classification: Platform
Component: build
2.30.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-12-06 23:47 UTC by camillo.lugaresi+gnome
Modified: 2012-02-24 23:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description camillo.lugaresi+gnome 2011-12-06 23:47:50 UTC
glib is being overzealous about trying to detect situations where you use headers from one version of iconv with libraries from another. The libiconv that comes with OS X is actually GNU libiconv, but symbols have standard name like iconv_open instead of libiconv_open, and glib gets a bit confused.

This patch solves the problem by disabling glib's faulty check. You may want to conditionalize this on DARWIN, though.


diff --git a/glib/gconvert.c b/glib/gconvert.c
index b363bca..9924c6c 100644
--- a/glib/gconvert.c
+++ b/glib/gconvert.c
@@ -62,7 +62,6 @@
 #error GNU libiconv in use but included iconv.h not from libiconv
 #endif
 #if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H)
-#error GNU libiconv not in use but included iconv.h is from libiconv
 #endif
Comment 1 John Ralls 2012-02-24 23:21:17 UTC

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