[Mesa-dev] [Bug 91724] GL/gl_mangle.h misses symbols from GLES/gl.h

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 22 02:37:44 PDT 2015


            Bug ID: 91724
           Summary: GL/gl_mangle.h misses symbols from GLES/gl.h
           Product: Mesa
           Version: 10.6
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: frederic.devernay at m4x.org
        QA Contact: mesa-dev at lists.freedesktop.org

When using a statically linked libMangledOSMesa32.a, One gets these undefined
symbols at link time:

Undefined symbols for architecture x86_64:
  "_glAlphaFuncx", referenced from:
      _static_functions in
  "_glClearColorx", referenced from:
      _static_functions in
[long list of _gl.*x undefined symbols]

obviously, functions defined in GLES/gl.h should be mangled too.

To fix it, include ../GLES/gl.h when regenerating gl_mangle.h:

(cd include/GL; sed -e 's at gl.h glext.h at gl.h glext.h ../GLES/gl.h@' -e
's@\^GLAPI@^GL_?API@' -i .orig gl_mangle.h)
(cd include/GL; sh ./gl_mangle.h > gl_mangle.h.new && mv gl_mangle.h.new

now glAlphaFuncx and friends are correctly mangled

You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150822/48bac89a/attachment.html>

More information about the mesa-dev mailing list