[patch] Use dlsym instead of glXGetProcAddress in xdriinfo

Felix Kühling fxkuehl at gmx.de
Mon Nov 21 15:08:48 PST 2005


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?

I tested both the monolithic and modular builds on x86. The builds work
and so do both resulting binaries.

With the release managers' approval I could commit these patches for the
upcoming Xorg 6.9/7.0 releases.

Regards,
  Felix

-- 
| Felix Kühling <fxkuehl at gmx.de>                     http://fxk.de.vu |
| PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3  B152 151C 5CC1 D888 E595 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xdriinfo-modular.diff
Type: text/x-patch
Size: 850 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20051121/a37d0401/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xdriinfo-monolith.diff
Type: text/x-patch
Size: 6298 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20051121/a37d0401/attachment-0001.bin>


More information about the xorg mailing list