[Webkit-unassigned] [Bug 241131] New: BitmapTextureGL.cpp: undefined reference to WebCore::openGLFunctionTable when WEBGL=no

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 31 09:20:43 PDT 2022


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

            Bug ID: 241131
           Summary: BitmapTextureGL.cpp: undefined reference to
                    WebCore::openGLFunctionTable when WEBGL=no
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dennisn at dennisn.mooo.com
                CC: bugs-noreply at webkitgtk.org

When WEBGL=no, but OPENGL=yes and TEXTURE_MAPPER_GL=yes, the opengl function calls in Source/WebCore/platform/graphics/texmap/BitmapTextureGL.cpp fail during the final ld linking stage of libwebkit2gtk-4.0.so, I guess because Source/WebCore/platform/graphics/OpenGLShims.cpp is only included when WEBGL=yes.

Getting rid of that #if ENABLE(WEBGL) preprocessing in OpenGLShims.cpp allowed things to link/compile for me.

Linking CXX shared library lib/libwebkit2gtk-4.0.so...
FAILED: lib/libwebkit2gtk-4.0.so....

ld: Source/WebCore/CMakeFiles/WebCore.dir/./platform/graphics/texmap/BitmapTextureGL.cpp.o: in function `WebCore::BitmapTextureGL::initializeStencil()':
BitmapTextureGL.cpp: undefined reference to `WebCore::openGLFunctionTable()'
ld: BitmapTextureGL.cpp: undefined reference to `WebCore::openGLFunctionTable()'
ld: BitmapTextureGL.cpp: undefined reference to `WebCore::openGLFunctionTable()'
ld: BitmapTextureGL.cpp: undefined reference to `WebCore::openGLFunctionTable()'
ld: BitmapTextureGL.cpp: undefined reference to `WebCore::openGLFunctionTable()'
ld: Source/WebCore/CMakeFiles/WebCore.dir/./platform/graphics/texmap/BitmapTextureGL.cpp.o:BitmapTextureGL.cpp: more undefined references to `WebCore::openGLFunctionTable()' follow
ld: Source/WebCore/CMakeFiles/WebCore.dir/./platform/graphics/GLContext.cpp.o: in function `WebCore::initializeOpenGLShimsIfNeeded()':
GLContext.cpp: undefined reference to `WebCore::initializeOpenGLShims()'
ld: Source/WebCore/CMakeFiles/WebCore.dir/./platform/graphics/GLContext.cpp.o: in function `WebCore::GLContext::version()':
GLContext.cpp: undefined reference to `WebCore::openGLFunctionTable()'
ld: Source/WebCore/CMakeFiles/WebCore.dir/./platform/graphics/glx/GLContextGLX.cpp.o: in function `WebCore::GLContextGLX::~GLContextGLX()':
GLContextGLX.cpp: undefined reference to `WebCore::openGLFunctionTable()'
collect2: error: ld returned 1 exit status

-- 
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/20220531/00484844/attachment.htm>


More information about the webkit-unassigned mailing list