[Webkit-unassigned] [Bug 185639] New: [WPE] Build failure with RPi userland drivers and gstreamer-gl

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 14 18:57:44 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=185639

            Bug ID: 185639
           Summary: [WPE] Build failure with RPi userland drivers and
                    gstreamer-gl
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit WPE
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: clopez at igalia.com
                CC: aperez at igalia.com, bugs-noreply at webkitgtk.org,
                    zan at falconsigh.net

Trying to build WPE (upstream) with RPi userland drivers and gstreamer-gl currently results in a build failure due to some mismatches on the definitions of the GLsync types.

The issue seems to be the following one:

 1. RPi userland drivers doesn't define GLsync in the GLESv2 headers
 2. Therefore gstreamer-plugins-bad define "GST_GL_HAVE_GLSYNC 0" at configure time
 3. libepoxy enables GLsync in its headers
 4. In WPE in MediaPlayerPrivateGStreamerBase.cpp we include first the libepoxy headers before the gstreamer-gl ones
 5. gstreamer-gl headers try to give a type definition to GLsync (due to 2.) but it conflicts with the one already assigned from libepoxy (3. and .4)
 6. Build error happens

| /home/igalia/clopez/yocto/commit-builds/meta-webkit/builds/rpi_userland/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/wpewebkit/2.20.2-r0/recipe-sysroot/usr/include/gstreamer-1.0/gst/gl/glprototypes/gstgl_compat.h:40:18: error: conflicting declaration 'typedef void* GLsync'
|  typedef gpointer GLsync;
|                   ^~~~~~
| In file included from /home/igalia/clopez/yocto/commit-builds/meta-webkit/builds/rpi_userland/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/wpewebkit/2.20.2-r0/recipe-sysroot/usr/include/epoxy/gl.h:89:0,
|                  from /home/igalia/clopez/yocto/commit-builds/meta-webkit/builds/rpi_userland/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/wpewebkit/2.20.2-r0/releases/WebKitGTK/webkit-2.20/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:62:
| /home/igalia/clopez/yocto/commit-builds/meta-webkit/builds/rpi_userland/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/wpewebkit/2.20.2-r0/recipe-sysroot/usr/include/epoxy/gl_generated.h:83:26: note: previous declaration as 'typedef struct __GLsync* GLsync'
|  typedef struct __GLsync *GLsync;
|                           ^~~~~~


This issue seems to be already workarounded in the wpewebkit-downstream repository. We should fix this upstream as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180515/5bd21c09/attachment-0001.html>


More information about the webkit-unassigned mailing list