[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


https://bugs.freedesktop.org/show_bug.cgi?id=91724

            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
libMangledOSMesa32.a(glapi_libglapi_la-glapi_getproc.o)
  "_glClearColorx", referenced from:
      _static_functions in
libMangledOSMesa32.a(glapi_libglapi_la-glapi_getproc.o)
[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
gl_mangle.h)

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