<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - GL/gl_mangle.h misses symbols from GLES/gl.h"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91724">91724</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>GL/gl_mangle.h misses symbols from GLES/gl.h
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>10.6
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Mesa core
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>frederic.devernay@m4x.org
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>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 '<a href="mailto:s@gl.h">s@gl.h</a> <a href="mailto:glext.h@gl.h">glext.h@gl.h</a> 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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>