[patch] Use dlsym instead of glXGetProcAddress in xdriinfo

Brian Paul brian.paul at tungstengraphics.com
Tue Nov 22 07:36:41 PST 2005


Michel Dänzer wrote:
> On Mon, 2005-11-21 at 18:08 -0500, Felix Kühling wrote: 
> 
>>The attached patches (monolithic and modular) should fix dynamic linking
>>problems with xdriinfo, that NVidia users were complaining about. 

(referrring to previous message) Why not just use glXGetProcAddressARB 
instead?


> Does their driver support the DRI configuration infrastructure?
> 
> 
>>Their libGL doesn't define glXGetProcAddress but only glXGetProcAddressARB.
>>The cleanest solution that works with any libGL is to use dlopen and
>>dlsym instead. This has the nice side effect that it removes all
>>build-time dependencies on libGL and GLX headers.
> 
> 
> Couldn't there be an implementation of the DRI configuration
> infrastructure where glXGetProcAddress(ARB) works but dlopen/dlsym
> doesn't though?

Possibly.

-Brian



More information about the xorg mailing list