[Webkit-unassigned] [Bug 195800] New: [GTK] [2.24.0] Build failure in Debian 9 (stretch)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 15 05:49:39 PDT 2019


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

            Bug ID: 195800
           Summary: [GTK] [2.24.0] Build failure in Debian 9 (stretch)
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: berto at igalia.com
                CC: bugs-noreply at webkitgtk.org

Here's the error message:

   In file included from Source/WebCore/platform/graphics/ANGLEWebKitBridge.h:56:0,
                    from Source/WebCore/platform/graphics/GraphicsContext3D.h:28,
                    from Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:32:
   Source/WebCore/platform/graphics/OpenGLShims.h:259:67: error: expected type-specifier before 'glActiveTexture'
    #define glActiveTexture                        LOOKUP_GL_FUNCTION(glActiveTexture)
                                                                      ^
   Source/WebCore/platform/graphics/OpenGLShims.h:259:67: error: expected initializer before 'glActiveTexture'
   Source/WebCore/platform/graphics/OpenGLShims.h:260:67: error: expected type-specifier before 'glAttachShader'
    #define glAttachShader                         LOOKUP_GL_FUNCTION(glAttachShader)
                                                                   ^

The problem seems to be that this bit from OpenGLShims.h:

   // We disable the shims for OpenGLShims.cpp, so that we can set them.
   #ifndef DISABLE_SHIMS
   #define LOOKUP_GL_FUNCTION(Function) WebCore::openGLFunctionTable()->Function
   #define glActiveTexture                        LOOKUP_GL_FUNCTION(glActiveTexture)
   #define glAttachShader                         LOOKUP_GL_FUNCTION(glAttachShader)
   #define glBindAttribLocation                   LOOKUP_GL_FUNCTION(glBindAttribLocation)
   #define glBindBuffer                           LOOKUP_GL_FUNCTION(glBindBuffer)
   /* ... */
   #endif

conflicts with declarations like this one from /usr/include/GLES3/gl3.h:

   GL_APICALL void GL_APIENTRY glActiveTexture (GLenum texture);

and generates this incorrect declaration:

   void WebCore::openGLFunctionTable()->glActiveTexture(GLenum texture);

I haven't debugged this further and builds in Debian experimental work
fine, so perhaps this is just a bug in the Mesa headers.

-- 
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/20190315/4d805b5f/attachment.html>


More information about the webkit-unassigned mailing list