6.2-PRE, AGP X800, and Modular Xorg == No DRI?

Yong-Jhen Hong yongjhen at alqualonde.org
Sun Dec 17 03:59:35 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Isaac Waldron wrote:
> Upon further debugging, it appears that RADEONDRIGetVersion is failing
> due to symbol "drmAvailable" not being found.  This was silently
> failing, so I added a call to xf86DrvMsg to make it speak up.
> 
> Now, drmAvailable appears to be part of the libdrm port, of which I
> have version 2.3.0 installed.  Apparently, Xorg is not loading
> libdrm.so for some reason?  libdrm.so is located in /usr/local/lib, is
> there something special I need to do to get Xorg to pull this in?
> 
> Isaac
> 

I have similar problem.
I find that after X server dlopen(3) the extension libdri.so with
option RTLD_GLOBAL, the symbols in libdrm.so which it depends on
cannot be accessed using dlsym(3), neither via the reference to
libdri.so, nor the reference to the global scope.

I have this little patch to make it work, but it seems not a best
way to do so.

- --- hw/xfree86/loader/dlloader.c.orig   Sun Dec 10 20:07:20 2006
+++ hw/xfree86/loader/dlloader.c        Sun Dec 10 20:07:38 2006
@@ -120,7 +120,7 @@
     }

     if (!global_scope)
- -       global_scope = dlopen(NULL, DLOPEN_LAZY | DLOPEN_GLOBAL);
+       global_scope = RTLD_DEFAULT;

     if (global_scope)
        return dlsym(global_scope, name);


Regards,
yongjhen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhTEIMczB8rP/pbkRAu7jAJ4+QLaYkNNZyGnWZh0xsG2vk4C3TgCfWvn+
v3rOMZIBs1CFlOaKDID8WU0=
=odwC
-----END PGP SIGNATURE-----


More information about the freebsd-x11 mailing list