<div>I recently updated our mangled Mesa build on Linux for 7.11.2, and I hit no real problems with glX. </div><div><br></div><div>This is what I did:</div><div><br></div><div><div><i>CXXFLAGS=&quot;-DUSE_MGL_NAMESPACE&quot; \</i></div>

<div><i>CFLAGS=&quot;-DUSE_MGL_NAMESPACE&quot; \</i></div><div><i>./configure \</i></div><div><i>    --prefix `pwd`/build/Linux64 \</i></div><div><i>    --enable-debug=no \</i></div><div><i>    --disable-driglx-direct \</i></div>

<div><i>    --enable-gl-osmesa=yes \</i></div><div><i>    --disable-glw \</i></div><div><i>    --disable-glut \</i></div><div><i>    --with-driver=xlib \</i></div><div><i>    --with-dri-drivers=  \</i></div><div><i>    --with-osmesa-bits=32 \</i></div>

<div><i>    --with-gallium-drivers= \</i></div><div><i>    --disable-egl \</i></div><div><i>    --enable-64-bit</i></div><div><i><br></i></div><div><i>gmake -j4</i></div><div><i>gmake install</i></div></div><div><br></div>

<div>I did notice that with 7.11.2 both OSMesa and libGL contain gl* symbols, where as our older 7.7.1 build linked OSMesa against libGL and we avoided the duplication. I do recall trying --enable-shared and rejected that route for a reason I don&#39;t recall. </div>

<div><br></div><div>On windows the situation is completely different I have still to get a fully working version of mangled mesa version - I am almost there but it has been non-trivial to first get a building version of mesa and next ensure the symbols are mangled. Once I have something ready I will probably post some info so others can avoid the headache.</div>

<div><br></div><div>I hope this helps,</div><br clear="all">Viral<br><br><br><div class="gmail_quote">On 23 April 2012 12:42, Li Zhou <span dir="ltr">&lt;<a href="mailto:zhou3@lycos.com">zhou3@lycos.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
<br>
------------Forwarded message------------<br>
From: <a href="mailto:zhou3@lycos.com">zhou3@lycos.com</a><br>
Date: Apr 22, 2012 05:05:24 AM<br>
Subject: Mangled Mesa compile failure<br>
To: <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<br>
Hello there:<br>
<br>
I could not compile mesa with<br>
<br>
./configure CFLAGS=&quot;-DUSE_MGL_NAMESPACE&quot; CXXFLAGS=&quot;-DUSE_MGL_NAMESPACE&quot; --prefix=/home/li/<a href="http://wci.llnl.gov/codes/visit/2.0.0/visit2.0.0/3rdparty" target="_blank">wci.llnl.gov/codes/visit/2.0.0/visit2.0.0/3rdparty</a> --without-demos --disable-gallium --disable-glw --disable-glu --disable-egl --enable-shared --disable-static<br>


<br>
make always fails at glxcmds.c with error messages like these:<br>
<br>
glxcmds.c:1413: error: ‘glXGetCurrentDisplayEXT’ aliased to undefined symbol ‘glXGetCurrentDisplay’<br>
glxcmds.c:1581: error: ‘glXQueryContextInfoEXT’ aliased to undefined symbol ‘glXQueryContext’<br>
glxcmds.c:1925: error: ‘glXGetFBConfigAttribSGIX’ aliased to undefined symbol ‘glXGetFBConfigAttrib’<br>
glxcmds.c:1929: error: ‘glXChooseFBConfigSGIX’ aliased to undefined symbol ‘glXChooseFBConfig’<br>
glxcmds.c:1934: error: ‘glXGetVisualFromFBConfigSGIX’ aliased to undefined symbol ‘glXGetVisualFromFBConfig’<br>
glxcmds.c:2674: error: ‘mglXGetProcAddress’ aliased to undefined symbol ‘glXGetProcAddressARB’<br>
<br>
I have tried every mesa release from version 6.0 to the latest 8.0.<br>
<br>
so,anyone one know how to get mangled mesa work?<br>
<br>
attached is a snapshot from debian 6.0 terminal window.<br>
<br>
thanks in advance.<br>
<br>
<br>
<br>
<br>
<br>_______________________________________________<br>
mesa-users mailing list<br>
<a href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-users" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-users</a><br>
<br></blockquote></div><br>