[Mesa-dev] [Bug 78225] New: Compile error due to undefined reference to `gbm_dri_backend', fix attached

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat May 3 09:24:30 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=78225

          Priority: medium
            Bug ID: 78225
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: Compile error due to undefined reference to
                    `gbm_dri_backend', fix attached
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: berndkuhls at hotmail.com
          Hardware: Other
            Status: NEW
           Version: 10.1
         Component: Other
           Product: Mesa

Created attachment 98379
  --> https://bugs.freedesktop.org/attachment.cgi?id=98379&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140503/6d43cfd2/attachment-0001.html>


More information about the mesa-dev mailing list