<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - OpenGL ES2 with fbdev - link error"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=75098">75098</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>OpenGL ES2 with fbdev - link error
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>christian.prochaska@genode-labs.com
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>10.0
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>EGL
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I've built Mesa 10.0.3 for using OpenGL ES 2 on fbdev with the following
configuration:

./configure --enable-gles2 --disable-dri --enable-gallium-egl
--with-egl-platforms=fbdev --with-gallium-drivers=swrast

When I tried to build the 'es2gears' example (from the mesa-demos archive)
using the command

gcc -o es2gears es2gears.c ../eglut/eglut_screen.c ../eglut/eglut.c -I../eglut
-lGLESv2 -lEGL -lm

the following link error occured:

/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_Dispatch'
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_get_dispatch'
collect2: error: ld returned 1 exit status

I could finally get it to work by adding the '--enable-shared-glapi' configure
option (which made libGLESv2.so link with libglapi.so.0, which contains the
missing symbols), but only after editing the configure script to not make this
option depend on DRI ("Shared GLAPI is only useful for DRI, disabling").

Is this the correct solution or is the real problem somewhere else?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>