Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556802 - net-libs/webkit-gtk-2.8.3: build failure: Source/WebCore/platform/graphics/egl/GLContextEGL.cpp:70:90: error: cannot convert ‘wl_display*’ to ‘EGLNativeDisplayType {aka _XDisplay*}’ for argument ‘1’ to ‘void* eglGetDisplay(EGLNativeDisplayType)’
Summary: net-libs/webkit-gtk-2.8.3: build failure: Source/WebCore/platform/graphics/eg...
Status: RESOLVED DUPLICATE of bug 549228
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-06 05:01 UTC by Jan Vesely
Modified: 2015-08-25 01:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Vesely 2015-08-06 05:01:13 UTC
In file included from /var/tmp/portage/net-libs/webkit-gtk-2.8.3/work/webkitgtk-2.8.3/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp:50:0:
/usr/include/cairo/cairo-gl.h:95:5: warning: "CAIRO_HAS_GLX_FUNCTIONS" is not defined [-Wundef]
 #if CAIRO_HAS_GLX_FUNCTIONS
     ^
/usr/include/cairo/cairo-gl.h:113:5: warning: "CAIRO_HAS_WGL_FUNCTIONS" is not defined [-Wundef]
 #if CAIRO_HAS_WGL_FUNCTIONS
     ^
/var/tmp/portage/net-libs/webkit-gtk-2.8.3/work/webkitgtk-2.8.3/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp: In function ‘void* WebCore::sharedEGLDisplay()’:
/var/tmp/portage/net-libs/webkit-gtk-2.8.3/work/webkitgtk-2.8.3/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp:70:90: error: cannot convert ‘wl_display*’ to ‘EGLNativeDisplayType {aka _XDisplay*}’ for argument ‘1’ to ‘void* eglGetDisplay(EGLNativeDisplayType)’
             gSharedEGLDisplay = eglGetDisplay(WaylandDisplay::instance()->nativeDisplay());
                                                                                          ^
In file included from /var/tmp/portage/net-libs/webkit-gtk-2.8.3/work/webkitgtk-2.8.3/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp:30:0:
/usr/include/cairo/cairo-gl.h:113:5: warning: "CAIRO_HAS_WGL_FUNCTIONS" is not defined [-Wundef]
 #if CAIRO_HAS_WGL_FUNCTIONS
     ^
ninja: build stopped: subcommand failed.

Reproducible: Always

Steps to Reproduce:
1. emerge webkit-gtk:4



# emerge -pvt1 webkit-gtk

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  NS   ~] net-libs/webkit-gtk-2.8.3:4/37::gentoo [2.4.9:3/25::gentoo] USE="(X) egl gstreamer introspection jit libsecret opengl spell wayland webgl -coverage -doc -geoloc -gles2 {-test}" 0 KiB

$ emerge -vpt1 cairo

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R    ] x11-libs/cairo-1.14.2::gentoo  USE="X glib opengl svg xcb (-aqua) -debug (-directfb) (-gles2) -static-libs -valgrind -xlib-xcb" ABI_X86="(64) -32 (-x32)
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-08-24 15:57:06 UTC
Does this still happen with webkit-gtk-2.8.5?
Comment 2 Jan Vesely 2015-08-25 00:41:07 UTC
(In reply to Alexandre Rostovtsev from comment #1)
> Does this still happen with webkit-gtk-2.8.5?

yes
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-08-25 01:00:55 UTC
Ah, I see, USE=wayland.

Then yes, this doesn't work in 2.8.5, and it seems won't be fixed in 2.8.x at all. Maybe 2.10 will finally support wayland properly.

Which is why the wayland USE flag has been package.use.masked for webkit-gtk for a long time (probably you manually unmasked it?)

*** This bug has been marked as a duplicate of bug 549228 ***