Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162066 - >=media-libs/mesa-6.5.1 does not locate dri driver (wrong path)
Summary: >=media-libs/mesa-6.5.1 does not locate dri driver (wrong path)
Status: RESOLVED DUPLICATE of bug 142584
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-14 16:37 UTC by Alon Bar-Lev (RETIRED)
Modified: 2007-02-06 18:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xorg.conf (xorg.conf,22.25 KB, text/plain)
2007-01-14 16:50 UTC, Alon Bar-Lev (RETIRED)
Details
emerge-info.out (emerge-info.out,2.82 KB, text/plain)
2007-01-14 17:20 UTC, Alon Bar-Lev (RETIRED)
Details
Xorg.0.log (Xorg.0.log,44.64 KB, text/plain)
2007-01-14 19:42 UTC, Alon Bar-Lev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-14 16:37:49 UTC
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.
Comment 1 Joshua Baergen (RETIRED) gentoo-dev 2007-01-14 16:43:10 UTC
Attach your xorg.conf, please.
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-14 16:50:37 UTC
Created attachment 106959 [details]
xorg.conf

Thanks!
Comment 3 Joshua Baergen (RETIRED) gentoo-dev 2007-01-14 17:10:48 UTC
Hmm...exactly what versions of mesa and xorg-server are you using?
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-14 17:20:13 UTC
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
Comment 5 Joshua Baergen (RETIRED) gentoo-dev 2007-01-14 17:46:41 UTC
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?
Comment 6 Joshua Baergen (RETIRED) gentoo-dev 2007-01-14 17:49:02 UTC
Oh, and attach your Xorg.0.log as well.
Comment 7 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-14 19:40:57 UTC
(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....
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-14 19:42:03 UTC
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?
Comment 9 Roberto Castagnola 2007-01-14 20:16:24 UTC
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
Comment 10 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-14 20:33:50 UTC
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.
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2007-01-14 20:46:51 UTC
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.
Comment 12 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-14 20:48:19 UTC
(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?
Comment 13 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-14 20:49:34 UTC
(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?

Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-01-14 22:30:45 UTC
(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.
Comment 15 Joshua Baergen (RETIRED) gentoo-dev 2007-01-14 22:37:51 UTC
(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 ***