Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#35522 closed defect (fixed)

webkit-gtk +quartz can't find X11

Reported by: dansbox@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: mountainlion Cc: dstrubbe (David Strubbe), jeremyhu (Jeremy Huddleston Sequoia), LMariachi, cooljeanius (Eric Gallager)
Port: webkit-gtk

Description

Getting a build failure in webkit-gtk 1.6.3_4. It can't find X11 headers.

:info:build ./Source/WebCore/plugins/npapi.h:93:22: error: X11/Xlib.h: No such file or directory
:info:build ./Source/WebCore/plugins/npapi.h:94:23: error: X11/Xutil.h: No such file or directory

This is in Mountain Lion (10.8.0). I'm trying to build gnucash for Quartz, which requires the +quartz option here, along with +quartz and +no_x11 in some of the dependencies (e.g., gtk2 @2.24.10_2+no_x11+quartz).

Attachments (2)

main.log (260.9 KB) - added by dansbox@… 12 years ago.
patch-quartz.patch.diff (555 bytes) - added by royliu@… 12 years ago.
The +quartz patch-patch.

Download all attachments as: .zip

Change History (12)

Changed 12 years ago by dansbox@…

Attachment: main.log added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: mountainlion added
Owner: changed from macports-tickets@… to devans@…

comment:2 Changed 12 years ago by dansbox@…

To reproduce:

sudo port uninstall installed
(modify variants.conf to include +no_x11 -x11 +quartz)
sudo port install webkit-gtk
(dependencies all build, webkit-gtk fails, as reported)

Workaround:

sudo port uninstall webkit-gtk
sudo port install xorg-libX11
sudo port install webkit-gtk

xorg-libX11 has a bunch of small dependencies; somewhere in there, the missing header file is made available. Presumably, this dependency does not exist at runtime, and this is just to make the compiler happy (pending a bug fix). Can't be completely sure, though...

comment:3 Changed 12 years ago by LMariachi

As of webkit-gtk @1.8.2_0+quartz, the missing headers are:

:info:build Source/WebCore/plugins/gtk/PluginViewGtk.cpp:80:30: error: cairo/cairo-xlib.h: No such file or directory :info:build Source/WebCore/plugins/gtk/PluginViewGtk.cpp:81:22: error: gdk/gdkx.h: No such file or directory

This is on 10.6.8.

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: dstrubbe@… jeremyhu@… ludwig@… added
Summary: webkit-gtk 1.6.3_4 +quartz can't find X11webkit-gtk +quartz can't find X11

Has duplicate #35756.

comment:5 Changed 12 years ago by dstrubbe (David Strubbe)

After the update to webkit-gtk @1.8.2_2+quartz+video today, I am able to build successfully.

comment:6 Changed 12 years ago by royliu@…

How about not building the Netscape plugin (which eventually includes X11 headers) if +quartz is given? See the attached patch.

Changed 12 years ago by royliu@…

Attachment: patch-quartz.patch.diff added

The +quartz patch-patch.

comment:7 Changed 12 years ago by royliu@…

Never mind, my patch doesn't solve the problem. The X11 headers are still being required; however, disabling the Netscape plugin does prevent the .cpp bodies from being compiled.

comment:8 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

Closing based on the comment from 3 weeks ago.

comment:9 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:10 Changed 10 years ago by dstrubbe (David Strubbe)

Cc: dstrubbe@… added; dstrubbe@… removed
Note: See TracTickets for help on using tickets.