Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 556802

Summary: 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)’
Product: Gentoo Linux Reporter: Jan Vesely <jano.vesely>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.webkit.org/show_bug.cgi?id=145701
Whiteboard:
Package list:
Runtime testing required: ---

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 ***