[Mesa-dev] removal of _glthread_GetID() breaks libglapi.so's ABI

Brian Paul brianp at vmware.com
Thu Mar 13 07:07:25 PDT 2014


On 03/12/2014 11:31 PM, Chia-I Wu wrote:
> Hi Brian,
>
> _glthread_GetID() was removed by this commit
>
> commit 02cb04c68ffbdaffaf7513ddc951584cac29f209
> Author: Brian Paul <brianp at vmware.com>
> Date:   Tue Mar 4 15:24:16 2014 -0700
>
>      mesa: remove remaining uses of _glthread_GetID()
>
> It turns out the function, declared in glapi.h, is a part of
> libglapi.so ABI.  I am now getting this error when building GL
> applications
>
> /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libGL.so:
> undefined reference to `_glthread_GetID'
>
> (gcc finds distro-provided libGL.so, which finds my build of
> libglapi.so because of LD_LIBRARY_PATH).
>
> I wonder if we should give the symbol available.  It could simply return zero...
>

Yeah, Jose said this might be a problem too.  I was waiting to see.

I think adding the dummy function you suggest is fine.  Do you want to 
write a patch for that?

-Brian



More information about the mesa-dev mailing list