Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] mesa's libGL.so looking in wrong place for r300_dri.so
Date: Tue, 24 Nov 2009 22:10:01
Message-Id: hehidr$97b$1@ger.gmane.org
1 I just switched to the radeon driver from the fglrx driver
2 Fglrx was a pretty old version and DRI had stopped working.
3 Oddly, emerge has "forgotten" it's installed. It obviously is
4 installed: it works (mostly), all its files are there, and
5 and eselect opengl still shows an "ati" option. How do you
6 uninstall a package that emerge claims isn't installed?
7
8 Anyway, I can't get DRI working with the open-source "radeon"
9 driver. Mesa's libGL.so seems to be broken. I've re-emerged
10 both mesa and mesa-progs, but libGL.so (part of mesa) can't
11 find other .so files that are _also_ part of mesa.
12
13 Here's the output from glxinfo with debugging turned on:
14
15 libGL: XF86DRIGetClientDriverName: 5.3.0 r300 (screen 0)
16 libGL: OpenDriver: trying /usr/X11R6/lib/dri/r300_dri.so
17 libGL error: dlopen /usr/X11R6/lib/dri/r300_dri.so failed (/usr/X11R6/lib/dri/r300_dri.so: cannot open shared object $
18 libGL error: unable to load driver: r300_dri.so
19 libGL: OpenDriver: trying /usr/X11R6/lib/dri/swrast_dri.so
20 libGL error: dlopen /usr/X11R6/lib/dri/swrast_dri.so failed (/usr/X11R6/lib/dri/swrast_dri.so: cannot open shared obj$
21 libGL error: unable to load driver: swrast_dri.so
22 libGL error: reverting to indirect rendering
23
24 mesa's libGL can't find r300_dri.so and swrast_dri.so, even
25 though they're both part of the same package and are exactly
26 where mesa installed them:
27
28 # equery files mesa | grep dri.so
29 /usr/lib/dri/r200_dri.so
30 /usr/lib/dri/r300_dri.so
31 /usr/lib/dri/radeon_dri.so
32 /usr/lib/dri/swrast_dri.so
33
34 # ls -l /usr/lib/dri
35 total 9072
36 -rwxr-xr-x 1 root root 2379724 Nov 24 14:55 r200_dri.so
37 -rwxr-xr-x 1 root root 2397036 Nov 24 14:55 r300_dri.so
38 -rwxr-xr-x 1 root root 2348908 Nov 24 14:55 radeon_dri.so
39 -rwxr-xr-x 1 root root 2138328 Nov 24 14:55 swrast_dri.so
40
41 Why is libGL.so looking in the wrong place for the dri modules?
42
43 I suppose I could symlink /usr/X11R6/dri -> /usr/lib/dri, but
44 shouldn't the mesa ebuild have done that if it's required?
45
46 --
47 Grant Edwards grante Yow! Loni Anderson's hair
48 at should be LEGALIZED!!
49 visi.com

Replies

Subject Author
[gentoo-user] Re: mesa's libGL.so looking in wrong place for r300_dri.so Grant Edwards <grant.b.edwards@×××××.com>
Re: [gentoo-user] mesa's libGL.so looking in wrong place for r300_dri.so Paul Hartman <paul.hartman+gentoo@×××××.com>