[Mesa-dev] [Bug 57702] Eliminate RTLD_GLOBAL glapi hacks after removing support for static libglapi

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 29 16:11:50 PDT 2014


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

--- Comment #3 from fjhenigman <fjhmesabug at gmail.com> ---
If I'm understanding correctly:
- this bug asks that, for example, /usr/lib64/dri/i965_dri.so pull in libglapi
- at the moment it's deliberately not pulled because some use case didn't want
that
- that other use case no longer exists in current code, but there's reluctance
to break older versions by making the requested change
- in time, fear of breaking old code will reduce, and this change could happen

Here's another reason for making that change: gbm_create_device() fails because
dlopening (for example) i965_dri.so fails due to missing glapi symbols.  Unless
you link in or dlopen libglapi, or link in something that pulls it in such as
libGL.  The dlopen(libglapi) hack seems to be widespread:

chrome:
http://src.chromium.org/chrome/trunk/src/ui/ozone/platform/dri/ozone_platform_gbm.cc

wayland:
http://fossies.org/linux/weston/src/compositor-drm.c

enlightenment:
https://git.enlightenment.org/core/efl.git/commit/?h=devs/devilhorns/drm&id=73a7ac2ec8201123785ec17eff97364f72a474a1

Now I find waffle has the same problem.  Do I need to add the same hack there?
https://github.com/waffle-gl/waffle/pull/21

If we must use the hack for now, wouldn't it be better in gbm_create_device, so
every
gbm user doesn't clutter their code with it?

-- 
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/20141029/4039731c/attachment.html>


More information about the mesa-dev mailing list