Bug 22712 - [Gtk] Build failure: typedef mismatch for "Boolean"
Summary: [Gtk] Build failure: typedef mismatch for "Boolean"
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2008-12-06 10:33 PST by Daniel Macks
Modified: 2009-07-28 03:04 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Macks 2008-12-06 10:33:49 PST
Building nightly 39007 on OS X 10.4 with apple's x11 (with a manually-coded xt.pc) and XCode-2.5, using fink to supply all gnomish deps (at versions comparable to GNOME2.24) and automake1.10 libtool2.2.4:

./autogen.sh --prefix=/sw --with-target=x11 --with-http-backend=curl --with-font-backend=freetype --disable-video && make


libtool: compile:  g++ -DHAVE_CONFIG_H -I. -DWTF_USE_ICU_UNICODE=1 -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1 -DWTF_CHANGES -DXP_UNIX -DNDEBUG -I./WebCore -I./WebCore/bindings/js -I./WebCore/bridge -I./WebCore/bridge/c -I./WebCore/css -I./WebCore/dom -I./WebCore/editing -I./WebCore/history -I./WebCore/html -I./WebCore/inspector -I./WebCore/loader -I./WebCore/loader/appcache -I./WebCore/loader/archive -I./WebCore/loader/icon -I./WebCore/page -I./WebCore/page/animation -I./WebCore/platform -I./WebCore/platform/graphics -I./WebCore/platform/graphics/filters -I./WebCore/platform/image-decoders -I./WebCore/platform/image-decoders/bmp -I./WebCore/platform/image-decoders/gif -I./WebCore/platform/image-decoders/ico -I./WebCore/platform/image-decoders/jpeg -I./WebCore/platform/image-decoders/png -I./WebCore/platform/image-decoders/xbm -I./WebCore/platform/network -I./WebCore/platform/text -I./WebCore/plugins -I./WebCore/rendering -I./WebCore/rendering/style -I./WebCore/xml -I./WebCore/bindings/js -DWTF_USE_CURL=1 -I./WebCore/platform/network/curl -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DASHBOARD_SUPPORT=1 -DENABLE_DATABASE=1 -I./WebCore/platform/sql -I./WebCore/storage -DENABLE_DOM_STORAGE=1 -I./WebCore/storage -DENABLE_ICONDATABASE=1 -DENABLE_XPATH=1 -DENABLE_XSLT=1 -DENABLE_WORKERS=1 -DENABLE_GEOLOCATION=1 -DENABLE_SVG=1 -I./WebCore/svg -I./WebCore/svg/animation -I./WebCore/svg/graphics -I./WebCore/svg/graphics/filters -DENABLE_SVG_USE=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_ANIMATION=1 -DDATA_DIR=\"/sw/share\" -I./JavaScriptCore -I./JavaScriptCore/ForwardingHeaders -I./JavaScriptCore/parser -I./JavaScriptCore/wtf -I./DerivedSources -I./JavaScriptCore/API -I./JavaScriptCore/ForwardingHeaders -I./JavaScriptCore/interpreter -I./JavaScriptCore/bytecode -I./JavaScriptCore/bytecompiler -I./JavaScriptCore/debugger -I./JavaScriptCore/jit -I./JavaScriptCore/pcre -I./JavaScriptCore/profiler -I./JavaScriptCore/runtime -I./JavaScriptCore/wrec -I./JavaScriptCore/jit -I./JavaScriptCore/assembler -I./JavaScriptCore/wtf/unicode -I./JavaScriptCore/pcre -I./JavaScriptCore/parser -I./JavaScriptCore/runtime -I./WebCore/loader/gtk -I./WebCore/page/gtk -I./WebCore/platform/graphics/cairo -I./WebCore/platform/graphics/gtk -I./WebCore/platform/gtk -DUSE_FREETYPE=1 -I./WebCore/svg/graphics/cairo -I/sw/lib/system-openssl/include -I/sw/include -fvisibility-inlines-hidden -fno-rtti -fno-strict-aliasing -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -fvisibility=hidden -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I./JavaScriptCore/icu -I./WebCore/icu -I/sw/include/libxml2 -I/sw/include -I/sw/lib/fontconfig2/include -I/sw/include/libpng12 -I/sw/include -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/sw/include/pixman-1 -I/sw/include/cairo -I/usr/X11R6/include -I/usr/X11/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/lib/pango-ft219/include/pango-1.0 -I/sw/lib/fontconfig2/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/sw/lib/pango-ft219/include/pango-1.0 -I/sw/include/libpng12 -I/sw/include -I/sw/include/pixman-1 -I/sw/include/cairo -I/sw/include/gtk-2.0 -I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/X11/include -I/usr/X11R6/include -I/sw/include -I/sw/lib/fontconfig2/include -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/lib/pango-ft219/include/pango-1.0 -I/sw/include/libpng12 -I/sw/include -I/sw/include/pixman-1 -I/sw/include/cairo -I/usr/X11R6/include -I/usr/X11/include -I/sw/include -I/sw/include/libxml2 -I/sw/include -O2 -MT WebCore/plugins/gtk/libWebCore_la-PluginViewGtk.lo -MD -MP -MF WebCore/plugins/gtk/.deps/libWebCore_la-PluginViewGtk.Tpo -c WebCore/plugins/gtk/PluginViewGtk.cpp  -fno-common -DPIC -o WebCore/plugins/gtk/.libs/libWebCore_la-PluginViewGtk.o
/usr/X11R6/include/X11/Intrinsic.h:158: error: conflicting declaration 'typedef char Boolean'
/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:288: error: 'Boolean' has a previous declaration as 'typedef unsigned char Boolean'make: 
*** [WebCore/plugins/gtk/libWebCore_la-PluginViewGtk.lo] Error 1
Comment 1 Mark Rowe (bdash) 2008-12-06 14:54:50 PST
It's finding both X11 and Carbon's version of Boolean.  What is leading to Carbon headers being included?
Comment 2 Daniel Macks 2008-12-07 09:28:43 PST
The include tracings are:

/usr/X11R6/include/X11/Intrinsic.h:
from WebCore/plugins/gtk/gtk2xtbin.h:44,
from WebCore/plugins/gtk/PluginViewGtk.cpp:63

/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:32,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:8,
from ./WebCore/platform/FileSystem.h:45,
from WebCore/html/File.cpp:29


NB: I scrapped my legacy (and now un-needed) xt.pc hackery and just pass -L/usr/X11R6/lib manually (Bug #19045). No change in behavior.
Comment 3 Jan Alonzo 2009-07-25 01:25:54 PDT
Hi Daniel! Is this still an issue?
Comment 4 Daniel Macks 2009-07-27 12:44:31 PDT
The gtkwebkit-1.1.10 source release builds with no boolean problems on OS X 10.4/ppc and is now available via fink. A fink user on 10.5/intel confirmed that it built for him on that platform as well.
Comment 5 Jan Alonzo 2009-07-28 03:04:57 PDT
(In reply to comment #4)
> The gtkwebkit-1.1.10 source release builds with no boolean problems on OS X
> 10.4/ppc and is now available via fink. A fink user on 10.5/intel confirmed
> that it built for him on that platform as well.

Reported verified that this is fixed. Closing.