<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 - osmesa gallium build with scons on linux contains no OSMesa* and GL* symbols"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94489">94489</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>osmesa gallium build with scons on linux contains no OSMesa* and GL* symbols
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>a.faenger@e-sign.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When osmesa is build on linux using scons, then it contains none of the OSMesa
specific symbols nor any of the gl* symbols. So it's basically broken.

mesa-git # scons build=release
mesa-git # nm build/linux-x86_64/gallium/targets/osmesa/libosmesa.so | grep
OSMesaCreateContext
(no result)
mesa-git # nm lib/gallium/libOSMesa.so | grep glCreate
(no result)


However, when osmesa is build with make, then it contains all of the symbols:


mesa-git # ./configure --enable-gallium-osmesa --with-gallium-drivers=swrast
--disable-llvm-shared-libs --disable-driglx-direct --disable-dri --disable-glx
--disable-egl
mesa-git # make
mesa-git # nm lib/gallium/libOSMesa.so | grep OSMesaCreateContext
00000000004a1a40 T OSMesaCreateContext
00000000004a1610 t OSMesaCreateContextAttribs
00000000004a19e0 T OSMesaCreateContextExt

mesa-git # nm lib/gallium/libOSMesa.so | grep glCreate
00000000004ad370 T glCreateProgram
00000000004b2620 T glCreateProgramObjectARB
00000000004ad3a0 T glCreateShader
00000000004b2650 T glCreateShaderObjectARB


Just for reference, the classic osmesa (swrast) version build with scons also
contains all symbols (even more (!) than gallium osmesa
glCreateShaderProgramEXT/glCreateTextures):


mesa-10.5.9 # scons build=release openmp=true osmesa
mesa-10.5.9 # nm build/linux-x86_64/mesa/drivers/osmesa/libosmesa.so | grep
OSMesaCreateContext
000000000005a740 T OSMesaCreateContext
000000000005a320 T OSMesaCreateContextExt

mesa-10.5.9 # nm build/linux-x86_64/mesa/drivers/osmesa/libosmesa.so | grep
glCreate
00000000000637e0 T glCreateProgram
0000000000064fc0 T glCreateProgramObjectARB
0000000000063800 T glCreateShader
0000000000064fe0 T glCreateShaderObjectARB
0000000000069150 T glCreateShaderProgramEXT
0000000000066de0 T glCreateTextures</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>