[MacPorts] #39898: Webkit-gtk +quartz fails on X11/xresource.h code dependencies

MacPorts noreply at macports.org
Mon Jul 29 16:39:03 PDT 2013


#39898: Webkit-gtk +quartz fails on X11/xresource.h code dependencies
------------------------+--------------------------------
 Reporter:  c.herbig@…  |      Owner:  macports-tickets@…
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  webkit-gtk
------------------------+--------------------------------
 If the user has not installed anything that installs xorg-libx11, then
 building webkit-gtk +quartz will fail.  The first place it fails is here:
 {{{
 :info:build In file included from
 Source/WebCore/bridge/NP_jsobject.cpp:30:
 :info:build In file included from
 ./Source/WebCore/bridge/NP_jsobject.h:31:
 :info:build ./Source/WebCore/bridge/npruntime_internal.h:33:14: fatal
 error: 'X11/Xresource.h' file not found
 :info:build     #include <X11/Xresource.h>
 :info:build              ^
 :info:build In file included from Source/WebCore/bridge/npruntime.cpp:31:
 :info:build ./Source/WebCore/bridge/npruntime_internal.h:33:14: fatal
 error: 'X11/Xresource.h' file not found
 :info:build     #include <X11/Xresource.h>
 :info:build              ^
 :info:build 1 error generated.
 }}}

 In this first case, the offending #include line can be removed and the
 build will proceed until the next error:
 {{{
 :info:build In file included from
 Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:27:
 :info:build In file included from
 ./Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h:35:
 :info:build ./Source/WebCore/plugins/PluginView.h:432:9: error: unknown
 type name 'Pixmap'
 :info:build         Pixmap m_drawable;
 :info:build         ^
 :info:build ./Source/WebCore/plugins/PluginView.h:433:9: error: unknown
 type name 'Visual'
 :info:build         Visual* m_visual;
 :info:build         ^
 :info:build ./Source/WebCore/plugins/PluginView.h:434:9: error: unknown
 type name 'Colormap'
 :info:build         Colormap m_colormap;
 :info:build         ^
 :info:build ./Source/WebCore/plugins/PluginView.h:435:9: error: unknown
 type name 'Display'
 :info:build         Display* m_pluginDisplay;
 :info:build         ^
 :info:build ./Source/WebCore/plugins/PluginView.h:437:25: error: unknown
 type name 'XEvent'; did you mean 'Event'?
 :info:build         void initXEvent(XEvent* event);
 :info:build                         ^~~~~~
 :info:build                         Event
 }}}
 Unfortunately, the quick fix of removing the offending lines does not work
 this time.  Installing the port: xorg-libX11 will make the build succeed:
 {{{
 variant quartz {
 depends_lib-append port:xorg-libX11
 ...
 }}}
 However, a real solution ought to be sought in the code itself.

-- 
Ticket URL: <https://trac.macports.org/ticket/39898>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list