Hi! A lost DRI some monthes ago... And thought it is good time to get it back! So after installing the most recent versions, compile DRM out of kernel, and failed... :( A simple strace was the answer! $ strace glxinfo open("$LIBGL_DRIVERS_PATH/tls/r300_dri.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("$LIBGL_DRIVERS_PATH/r300_dri.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/xorg/modules/dri/tls/r300_dri.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/xorg/modules/dri/r300_dri.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/xorg/modules/dri/tls/r300_dri.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/xorg/modules/dri/r300_dri.so", O_RDONLY) = -1 ENOENT (No such file or directory) $ equery files mesa | grep r300_dri.so /usr/lib/dri/r300_dri.so So I guess LIBGL_DRIVERS_PATH is not set during configuration... or that the drivers should reside in the correct location.
Attach your xorg.conf, please.
Created attachment 106959 [details] xorg.conf Thanks!
Hmm...exactly what versions of mesa and xorg-server are you using?
Created attachment 106963 [details] emerge-info.out [I--] [ ] media-libs/mesa-6.5.1-r1 (0) [I--] [ ] x11-apps/mesa-progs-6.5.1 (0) [I--] [ ] x11-base/xorg-server-1.1.1-r4 (0) [I--] [ ~] x11-base/xorg-x11-7.1 (0) [I--] [ ] x11-libs/libdrm-2.0.2 (0) kernel-2.6.19+genpatches 5+suspend2
Well, this doesn't make sense :) Everything seems to be where it's supposed to be. You wouldn't happen to be using binpackages of any X stuff, would you? Does 'eselect opengl set xorg-x11' have any effect? Donnie, do you have any ideas?
Oh, and attach your Xorg.0.log as well.
(In reply to comment #5) > Well, this doesn't make sense :) Where should the Mesa dri files be located? /usr/lib/dri /usr/lib/xorg/modules/dri > Everything seems to be where it's supposed to be. You wouldn't happen to be > using binpackages of any X stuff, would you? Does 'eselect opengl set > xorg-x11' have any effect? I have ati-drivers installed... And it put the files in: /usr/lib/xorg/modules/dri As far as I know, except of this, I use only source based....
Created attachment 106989 [details] Xorg.0.log I don't know why the X is related... If I understand correctly... the Mesa install the files at one place, and then try to access them at different place... right?
Mesa drivers search in /usr/lib/dri by default if LIBGL_DRIVERS_PATH variable is not defined, but x11-drivers/ati-drivers ebuild create /etc/env.d/09ati witch define it as follow: LIBGL_DRIVERS_PATH="$LIBGL_DRIVERS_PATH::/usr/lib/xorg/modules/dri" Change it to LIBGL_DRIVERS_PATH="$LIBGL_DRIVERS_PATH:/usr/lib/dri:/usr/lib/xorg/modules/dri" and it should work. I'm wondering if x11-drivers/ati-drivers configuration should be fixed or if media-libs/mesa should define LIBGL_DRIVERS_PATH in /etc/env.d
I may forgot to explicit say that if I link /usr/lib/xorg/modules/dri/r300_dri.so -> /usr/lib/dri/r300_dri.so It works, without any need to stop/start xorg-server.
Looks like the default driver directory probably isn't getting set correctly. A compilation log of mesa can help determine this by checking whether -DDEFAULT_DRIVER_DIR is passed to dri_glx.c.
(In reply to comment #9) > and it should work. Right!!! > I'm wondering if x11-drivers/ati-drivers configuration should be fixed or if > media-libs/mesa should define LIBGL_DRIVERS_PATH in /etc/env.d Maybe eselect opengl should take care of this one too?
(In reply to comment #11) > Looks like the default driver directory probably isn't getting set correctly. A > compilation log of mesa can help determine this by checking whether > -DDEFAULT_DRIVER_DIR is passed to dri_glx.c. What exactly do you request? The WHOLE compilation log, or just config.log?
(In reply to comment #9) > Mesa drivers search in /usr/lib/dri by default if LIBGL_DRIVERS_PATH variable > is not defined, but x11-drivers/ati-drivers ebuild create /etc/env.d/09ati > witch define it as follow: > > LIBGL_DRIVERS_PATH="$LIBGL_DRIVERS_PATH::/usr/lib/xorg/modules/dri" > > Change it to > > LIBGL_DRIVERS_PATH="$LIBGL_DRIVERS_PATH:/usr/lib/dri:/usr/lib/xorg/modules/dri" This is broken, $LIBGL_DRIVERS_PATH will never get expanded there, it's not like env-update would expand vars in /etc/env.d Anyway, this whole thing is a dupe of Bug 142584 which has been ignored by the maintainer for ages.
(In reply to comment #14) > Anyway, this whole thing is a dupe of Bug 142584 which has been ignored by the > maintainer for ages. Thanks Jakub, you're right. *** This bug has been marked as a duplicate of bug 142584 ***