Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349957 - media-libs/mesa-7.9 does not create some DRI files
Summary: media-libs/mesa-7.9 does not create some DRI files
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-28 13:37 UTC by Etaoin Shrdlu
Modified: 2010-12-28 14:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Etaoin Shrdlu 2010-12-28 13:37:31 UTC
Not sure this is a bug; maybe it's just lack of information on my part.

My video card is 

01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]

for which I'm using the open source driver (x11-drivers/xf86-video-ati-6.13.2). I saw this in my Xorg.0.log:

[    73.582] (EE) AIGLX error: dlopen of /usr/lib64/dri/r300_dri.so failed (/usr/lib64/dri/r300_dri.so: cannot open shared object file: No such file or directory)
[    73.582] (EE) AIGLX: reverting to software rendering

Sure enough, the file isn't there. Reading, I found that the file should be provided by mesa. However, emerging mesa with USE=classic only creates r200_dri.so and radeon_dri.so; emerging mesa with USE=gallium creates a file called r300g_dri.so. In both cases, X complains.
So: how to either get the plain r300_dri.so with USE=classic, or alternatively instruct X to look for r300g_dri.so?

I've noticed that there is a file called r300_dri.so under usr/lib64/mesa. Would it just be a matter of symlinking that one?

Reproducible: Always
Comment 1 Etaoin Shrdlu 2010-12-28 13:38:53 UTC
# emerge --info media-libs/mesa
Portage 2.1.9.25 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5cgroup x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-r5cgroup-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-1.12.14
Timestamp of tree: Tue, 28 Dec 2010 11:15:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13::<unknown repository>, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo                 http://ftp.snt.ipv6.utwente.nl/pub/os/linux/gentoo                 http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="-6 --recursive  --links  --safe-links  --perms  --times                       --compress  --force  --whole-file  --delete   --stats    		    --timeout=180 --exclude='/distfiles' --exclude='/local' 		    --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="64bit X a52 aalib acl acpi alsa amd64 arts avi berkdb branding bzip2 bzlib cairo caps cdr chm classic cracklib crypt curl dbus dga dio djvu dlloader dri dvd dvdr dvdread encode exceptions exif fam ffmpeg font-server ftp gif glib gtk gtk2 handbook hddtemp idn imap imlib ipv6 jabber java joystick jpeg lock mad maildir mbox memlimit midi mime mmap mng motif mozbranding mp3 mpeg multilib musepack ncurses nls nntp nocd nptl nptlonly nsplugin offensive ogg oggvorbis opengl pam pcntl pcre pdf pdflib perl png pnp posix ps python rdesktop rdp readline sdl semantic-desktop session shared sharedmem sockets sqlite ssl startup-notification svg sysvipc tcl tcltk threads thunar tiff tk truetype truetype-fonts trusted type1-fonts udev unicode usb userlocales vnc vorbis wavelan wireshark wmf xcb xcomposite xine xml xml2 xmlrpc xorg xpm xsl xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev ati" XFCE_PLUGINS="menu" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-libs/mesa-7.9 was built with the following:
USE="classic motif (multilib) nptl -debug -gallium -gles -llvm -pic (-selinux)" VIDEO_CARDS="radeon -intel -mach64 -mga -nouveau -r128 -savage -sis -tdfx -via -vmware"
CFLAGS="-march=native -Os -pipe -ffast-math"
CXXFLAGS="-march=native -Os -pipe -ffast-math"
Comment 2 Etaoin Shrdlu 2010-12-28 13:49:09 UTC
Since all the other files under /usr/lib64/dri are symlinks to files in /usr/lib64/mesa, I bit the bullet and created a symlink for the r300 too.
It seems indeed that creating the symlink makes X happy, and doesn't seem to have cause other ill effects (so far).

So maybe the ebuild should create the link automatically?
Comment 3 Etaoin Shrdlu 2010-12-28 14:14:05 UTC
Ok, shame on me:

eselect mesa set r300 classic

is what I needed. Sorry for th enoise.