<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 --- - Compile error due to undefined reference to `gbm_dri_backend', fix attached"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78225">78225</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>Compile error due to undefined reference to `gbm_dri_backend', fix attached
          </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>berndkuhls@hotmail.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.1
          </td>
        </tr>

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

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=98379" name="attach_98379" title="Fix gbm compile without dri">attachment 98379</a> <a href="attachment.cgi?id=98379&action=edit" title="Fix gbm compile without dri">[details]</a></span>
Fix gbm compile without dri

Tested with mesa3d 10.2-rc1, configure options used:
--disable-glx --disable-xa --disable-static --enable-shared-glapi
--with-gallium-drivers=swrast --disable-dri --without-dri-drivers
--enable-opengl --enable-gbm --enable-egl --with-egl-platforms=drm
--enable-gles1 --enable-gles2

configure summary:

        OpenGL:          yes (ES1: yes ES2: yes)
        OpenVG:          no

        OSMesa:          no
        GLX:             no

        EGL:             yes
        EGL platforms:   drm
        EGL drivers:

        llvm:            no

        Gallium:         yes
        Target dirs:
        Winsys dirs:     sw
        Driver dirs:     galahad identity noop rbug softpipe trace
        Trackers dirs:

        Shared libs:     yes
        Static libs:     no
        Shared-glapi:    yes

mesa3d compiles without errors, but other apps needing mesa3d fail to compile,
like xbmc 12.3:

checking for main in -lEGL... no
configure: error: Could not find a required library. Please see the README for
your platform.

snippet from xbmc config.log:

configure:19532: checking for main in -lEGL
configure:19551: /home/br2/output/host/usr/bin/i686-pc-linux-gnu-gcc -o
conftest -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-pipe -Os 
-I/home/fli4l/br2/output/host/usr/i586-buildroot-linux-gnu/sysroot/usr/include 
-DMESA_EGL_NO_X11_HEADERS   -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -DNDEBUG=1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64  conftest.c -lEGL   -lpython2.7 -lpthread -ldl -lutil
-lm >&5
/home/br2/output/host/usr/i586-buildroot-linux-gnu/sysroot/usr/lib32/libgbm.so.1:
undefined reference to `gbm_dri_backend'
collect2: error: ld returned 1 exit status

The attached patch fixes the problem.</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>