GNOME Bugzilla – Bug 665705
[patch] glib fails to use system iconv on Mac OS X
Last modified: 2012-02-24 23:21:17 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
*** This bug has been marked as a duplicate of bug 529806 ***