[patch] Use dlsym instead of glXGetProcAddress in xdriinfo

Christoph Hellwig hch at lst.de
Tue Nov 22 00:03:50 PST 2005


On Mon, Nov 21, 2005 at 06:08:48PM -0500, Felix K?hling wrote:
> The attached patches (monolithic and modular) should fix dynamic linking
> problems with xdriinfo, that NVidia users were complaining about. 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. There is only one
> catch: does Xorg currently support any architectures that don't have
> dlopen/dlsym in dlfcn.h?

Darwin?  Anyway, I don't think you should work around bugs in Nvidias
protritary stuff.  They get what they deserve for not using the
canonical libGL, and they should learn painfully what that means.



More information about the xorg mailing list