[Mesa-dev] [Bug 91724] GL/gl_mangle.h misses symbols from GLES/gl.h

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 15 00:42:46 PST 2015


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

--- Comment #4 from Frederic Devernay <frederic.devernay at m4x.org> ---
I updated the gist for the newest Mesa release:
https://gist.github.com/devernay/71f3d7661d910e6494a9

Note that, despite what Emil said in
http://lists.freedesktop.org/archives/mesa-dev/2014-December/072575.html using
dlopen(RTLD_LOCAL) may not be a viable option, for example if both the system's
libGL and the Mesa libGL depend on libraries with the same soname (llvm or X11
for example) but which are incompatible for some reason (in my case, I am
loading Mesa from a plugin, and I don't know what the host application has
loaded before - the only safe way is to use a mangled Mesa).

In short, RTLD_LOCAL works for the loaded library (in my case, it is the
plugin), but not its dependencies.
See https://sourceware.org/ml/libc-help/2014-08/msg00042.html for a full
explanation.

So please, don't remove the option to mangle Mesa symbols, unless there is a
viable and portable possibility to load a non-mangled mesa together with the
system libGL.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151215/45703c95/attachment.html>


More information about the mesa-dev mailing list