Created attachment 38839 [details] [review] Marking glapi_get_proc_address as PUBLIC Currently libglx.so does not mark glapi_get_proc_address as PUBLIC and because of this, when having mesa compiled with -z,now or executing startx with LD_BIND_NOW=1 you will get the following error: [ 24890.012] (EE) AIGLX error: dlopen of /usr/lib64/dri/nouveau_dri.so failed (/usr/lib64/dri/nouveau_dri.so: undefined symbol: _glapi_get_proc_address) [ 24890.012] (EE) AIGLX: reverting to software rendering Now with the attached patch this error disapperes, and nouveau_dri.so seems to load as it should.
On Tue, Sep 21, 2010 at 04:20:51 -0700, bugzilla-daemon@freedesktop.org wrote: > Currently libglx.so does not mark glapi_get_proc_address as PUBLIC and because > of this, when having mesa compiled with -z,now or executing startx with > LD_BIND_NOW=1 you will get the following error: > This sounds like "it hurts when I shoot myself in the foot".
(In reply to comment #1) > This sounds like "it hurts when I shoot myself in the foot". Oh, my foot is fine. At least it was with mesa classic drivers which worked fine, however with Gallium3D-drivers this is confirmed with both for nouveau and radeon. Oh, and the feetshooting is called hardened gentoo.
I also forgot to ask: how can nouveau_dri.so or the radeon counterpart rely on and resolv glapi_get_proc_address unless it is public also when not using BIND_NOW?
I maybe should mention that what I am trying to get done here is having the following change inside of mesa also exported to the xserver tree: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d62eb45997a199e116661e26217b4d44fb9ba1e
Issue confirmed with i915
This is actually fixed in master[1]. Yay for feets in the shooting gallery!:-) [1] http://cgit.freedesktop.org/xorg/xserver/commit?id=17d9e374721d6c8ee3f7f9cdc882f80127bdb57f
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.