[Webkit-unassigned] [Bug 50867] [Gtk] WebKitGtk+ doesn't build on Mac OS X 10.6

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 22 18:03:30 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=50867





--- Comment #13 from Koan-Sin Tan <koansin.tan at gmail.com>  2010-12-22 18:03:29 PST ---
(In reply to comment #11)
> > WebCore/ChangeLog:13
> > +        * config.h: (OS(DARWIN) && PLATFORM(GTK)) doesn't like ctypes
> 
> It's hard for me to understand exactly what the issue is here. Where does OS(DARWIN) && PLATFORM(GTK) use ctypes, that it breaks the build to disallow them.
> 

This is a bit tricky. Any Gtk file that includes <libintl.h>or <glib/gi18n-lib.h> will have trouble.
On Mac, libintl.h will include <xlocale.h>

<xclocale.h> includes <xlocale/_ctype.h>, which uses isacii(). If we use "DisallowCType.h"  (isascii() is disallowed), we'll see message shown below. Of course, we can do something like "#undef isascii" before including libintl.h or  glib/gi18n-lib.h, but don't use "DisallowCType.h" is easier.

In file included from /usr/include/xlocale.h:77,
                 from /usr/local/include/libintl.h:24,
                 from /opt/local/include/glib-2.0/glib/gi18n-lib.h:25,
                 from ../../WebKit/gtk/webkit/webkitnetworkresponse.cpp:30:
/usr/include/xlocale/_ctype.h: In function ‘int __istype_l(__darwin_ct_rune_t, long unsigned int, _xlocale*)’:
/usr/include/xlocale/_ctype.h:47: error: ‘isascii_WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h’ was not declared in this scope
/usr/include/xlocale/_ctype.h: In function ‘__darwin_ct_rune_t __toupper_l(__darwin_ct_rune_t, _xlocale*)’:
/usr/include/xlocale/_ctype.h:54: error: ‘isascii_WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h’ was not declared in this scope
/usr/include/xlocale/_ctype.h: In function ‘__darwin_ct_rune_t __tolower_l(__darwin_ct_rune_t, _xlocale*)’:
/usr/include/xlocale/_ctype.h:61: error: ‘isascii_WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h’ was not declared in this scope

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list