[Mesa-dev] egl: Minor changes to the _EGLConfig interface.

Chia-I Wu olv at lunarg.com
Sun Oct 24 08:15:46 PDT 2010


On Sun, Oct 24, 2010 at 9:31 PM, Jon TURNEY <jon.turney at dronecode.org.uk> wrote:
>
> Since commit 8a6bdf3979c2dda0efc6771308bf9e5c32bbdab4 "egl: Minor changes to
> the _EGLConfig interface.", I have a failure building egl_glx.so (see [1])
>
> Here is the failure with a bit more verbosity:
>
> make[4]: Entering directory
> `/opt/wip/jhbuild/git/mesa/mesa/src/egl/drivers/glx'
> /bin/sh ../../../../bin/mklib -o egl_glx.so -noprefix \
>                -linker 'ccache gcc' -ldflags '-L/opt/wip/jhbuild/install/lib
> ' \
>                 \
>                egl_glx.o -L/opt/wip/jhbuild/install/lib -lX11 -lxcb -lXau
> -lXdmcp   -lGL -lEGL \
>                -L../../../../lib
> mklib: Making CYGWIN shared library:  egl_glx.so
> ccache gcc -shared -Wl,--enable-auto-image-base
> -L/opt/wip/jhbuild/install/lib -o egl_glx.so egl_glx.o
> -L/opt/wip/jhbuild/install/lib -lX11 -lxcb -lXau -lXdmcp -lGL -lEGL
> -L../../../../lib
> egl_glx.o: In function `create_configs':
> /opt/wip/jhbuild/git/mesa/mesa/src/egl/drivers/glx/egl_glx.c:455: undefined
> reference to `__eglLinkConfig'
> egl_glx.o: In function `_eglPutSurface':
> /opt/wip/jhbuild/git/mesa/mesa/src/egl/drivers/glx/../../../../src/egl/main/eglsurface.h:88:
> undefined reference to `__eglPutResource'
> egl_glx.o: In function `_eglPutContext':
> /opt/wip/jhbuild/git/mesa/mesa/src/egl/drivers/glx/../../../../src/egl/main/eglcontext.h:65:
> undefined reference to `__eglPutResource'
> collect2: ld returned 1 exit status
> make[4]: *** [egl_glx.so] Error 1
> make[4]: Leaving directory
> `/opt/wip/jhbuild/git/mesa/mesa/src/egl/drivers/glx'
>
> As you can see, the link line contains a -L for the install directory
> (coming from LDFLAGS set by jhbuild) which precedes the -L for the lib
> staging directory, so we are attempting to link with an older, installed
> version of libEGL from a previous build, which does not have these interface
> changes.
>
> Attached is a small patch to arrange -L options in the correct order.
>
> I haven't (yet) checked other uses of mklib for this pattern.
>
> [1]
> http://tinderbox.freedesktop.org/builds/2010-10-23-0015/logs/libGL/#build
Thanks for catching the bug.  I've made a similar change to
gallium/targets/egl.

-- 
olv at LunarG.com


More information about the mesa-dev mailing list