[patch] Use dlsym instead of glXGetProcAddress in xdriinfo
Ian Romanick
idr at us.ibm.com
Wed Nov 23 07:15:55 PST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eric Anholt wrote:
> On Tue, 2005-11-22 at 17:58 -0500, Felix Kühling wrote:
>
>>Right now there doesn't seem to be the one patch that makes everybody
>>happy. The dlsym version isn't portable and the glXGetProcAddressARB has
>>been reported (by you) to be broken on AMD64. At this point there is
>>really nothing I can do. I'm basically waiting for someone with AMD64 to
>>track down that issue. Until then from my POV the current solution is at
>>least as good as any of the other ones that have been proposed so far.
>
> So, good news. I went to test if I still had segfaults with
> glXGetProcAddressARB and noticed that there were warnings about nested
> extern declaration (i.e. no prototype), and warnings that pointers were
> being cast to int. After adding #define GLX_GLXEXT_LEGACY at the top,
> it works. I must have just missed those with the first time I tried it.
I did some digging through my notes on this issue. Wasn't there also
some problem related to the use of GCC's "alias" extension?
> Patch attached. Sound sane?
That looks like the right solution to me.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFDhIerX1gOwKyEAw8RAv8xAJ9sfiInNHwah6W6l9ym57ttQXSsrQCeMDB1
UwW9+VFdPLw71MNR46Sj/9s=
=3x93
-----END PGP SIGNATURE-----
More information about the xorg
mailing list