Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 283237

Summary: app-admin/eselect-opengl doesn't select right libGL.so.1 with nvidia-drivers
Product: Gentoo Linux Reporter: Massimo Maggi <massimo>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: NetBSD   
URL: http://forums.gentoo.org/viewtopic-t-789927.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Massimo Maggi 2009-08-30 10:35:48 UTC
Direct Rendering wasn't working. /usr/lib64/xorg/libGL.so.1 was a real library instead of a symlink to nvidia's one.


Reproducible: Sometimes

Steps to Reproduce:
~ # ldd $(which glxinfo)
.......        libGL.so.1 => /usr/lib64/xorg/libGL.so.1 (0x00007f57c7ac6000) ..........
replacing this library with a link to ../opengl/nvidia/lib/libGL.so
solved the problem.
Before, I've tried with eselect opengl with no luck. Also switching to xorg-x11 implementation and then back to nvidia's.
A user on the forum had a similar problem, but only for users and not for root. My solution worked for him.
http://forums.gentoo.org/viewtopic-t-789927.html
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-08-30 10:39:43 UTC
please attach the ouput of 

emerge -vp app-admin/eselect app-admin/eselect-opengl x11-drivers/nvidia-drivers

and 

emerge --info
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-08-30 10:40:19 UTC
Normally, broken eselect opengl is a consequence of installing the proprietary drivers outside portage.
Comment 3 Massimo Maggi 2009-08-30 11:11:24 UTC
(It's Linux, not NetBSD!!)
[ebuild   R   ] app-admin/eselect-1.2  USE="bash-completion -doc" 0 kB
[ebuild   R   ] app-admin/eselect-opengl-1.0.7  53 kB
[ebuild   R   ] x11-drivers/nvidia-drivers-185.18.14  USE="acpi gtk (multilib) -custom-cflags" 21,692 kB

Portage 2.2_rc40 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-rc8 x86_64)
=================================================================                                   
System uname: Linux-2.6.30-rc8-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6700_@_2.66GHz-with-gentoo-2.0.1 
Timestamp of tree: Fri, 28 Aug 2009 19:30:01 +0000                                                  
app-shells/bash:     4.0_p28                                                                        
dev-java/java-config: 2.1.8-r1                                                                      
dev-lang/python:     2.5.4-r2, 2.6.2-r1, 3.1.1                                                      
dev-util/cmake:      2.6.4-r2                                                                       
sys-apps/baselayout: 2.0.1                                                                          
sys-apps/openrc:     0.4.3-r3                                                                       
sys-apps/sandbox:    2.1                                                                            
sys-devel/autoconf:  2.13, 2.63-r1                                                                  
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                                               
sys-devel/binutils:  2.19.1-r1                                                                      
sys-devel/gcc-config: 1.4.1                                                                         
sys-devel/libtool:   2.2.6a                                                                         
virtual/os-headers:  2.6.30-r1                                                                      
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                      
CBUILD="x86_64-pc-linux-gnu"                                                                        
CFLAGS="-O2 -pipe -march=core2 -fomit-frame-pointer -D_FORTIFY_SOURCE=2"                            
CHOST="x86_64-pc-linux-gnu"                                                                         
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                     
CXXFLAGS="-O2 -pipe -march=core2 -fomit-frame-pointer -D_FORTIFY_SOURCE=2"                                                           
DISTDIR="/usr/portage/distfiles"                                                                                                     
FEATURES="assume-digests distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                                                              
GENTOO_MIRRORS=" http://mirror.etf.bg.ac.yu/gentoo http://mirror.muntinternet.net/pub/gentoo/ http://ftp.vein.hu/pub/linux/distributions/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"                                                                                               
LANG="it_IT.UTF8"                                                                                                                    
LC_ALL="it_IT"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--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/layman/desktop-effects /usr/local/layman/max /usr/local/layman/gnome"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 aspnet2 avahi bash-completion beagle berkdb bluetooth branding bzip2 cairo cdr cli consolekit cpio cpudetection cracklib crypt cups dbus device-mapper dns dri dts dvb dvd dvdr eds emboss encode esd exif faac faad fam ffmpeg firefox flac fortran ftp fuse gd gdbm gif glitz glut gnome gpm gstreamer gtk hal http iconv imap inotify ipv6 isdnlog java javascript jpeg kde ldap libnotify libsamplerate lm_sensors mad mikmod mmx mono mp3 mp4 mpeg mplayer msn mudflap multilib mysql ncurses nls nptl nptlonly nsplugin obex odbc ogg openexr opengl openmp pam pcntl pcre pdf perl php pipechan plasma png ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline recode reflection samba scanner sdl session smp spell spl sql sse sse2 ssl ssse3 startup-notification svg sysfs sysvipc tcpd threads thumbnail thunar tiff tokenizer truetype type1 unicode usb v4l v4l2 vdpau vorbis webkit wifi winpopup wlm wmf x264 xcomposite xft xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I've NEVER installed nvidia-drivers manually.
Comment 4 Ulrich Müller gentoo-dev 2009-09-04 18:17:06 UTC
Unlikely that this is a problem of the eselect core, so removing eselect@gentoo.org from CC.
Comment 5 Yuriy Dmitriev 2009-09-15 11:50:47 UTC
I can confirm. 
Comment 6 Yuriy Dmitriev 2009-09-15 11:55:12 UTC
on my ~AMD64


 # eselect opengl set nvidia
Switching to nvidia OpenGL interface...ln: creating symbolic link `./' -> `': No such file or directory
!!! Error: Failed to create /usr/lib32/libGL.so
exiting
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2009-09-15 11:58:01 UTC
(In reply to comment #6)
> on my ~AMD64
> 
> 
>  # eselect opengl set nvidia
> Switching to nvidia OpenGL interface...ln: creating symbolic link `./' -> `':
> No such file or directory
> !!! Error: Failed to create /usr/lib32/libGL.so
> exiting
> 

Already fixed, just sync the tree in 30 minutes and reemerge the eselect-opengl, i accidentaly uploaded wrong tarball on server.
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2009-09-15 11:58:41 UTC
Also for others please try with eselect-opengl-1.0.8.
Comment 9 Yuriy Dmitriev 2009-09-15 13:40:36 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > on my ~AMD64
> > 
> > 
> >  # eselect opengl set nvidia
> > Switching to nvidia OpenGL interface...ln: creating symbolic link `./' -> `':
> > No such file or directory
> > !!! Error: Failed to create /usr/lib32/libGL.so
> > exiting
> > 
> 
> Already fixed, just sync the tree in 30 minutes and reemerge the
> eselect-opengl, i accidentaly uploaded wrong tarball on server.
> 


Tnx))) fixed)))

Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2009-09-20 09:40:01 UTC
Ok so as i stated in comment 8, please try to use eselect-opengl-1.0.8 and get back to us by telling us if it select rigth libGL.so.1. When you test it just reopen the bug.

Thanks