Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342209 - app-eselect/eselect-opengl should warn if the selected implementation is broken
Summary: app-eselect/eselect-opengl should warn if the selected implementation is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on: 728286
Blocks:
  Show dependency tree
 
Reported: 2010-10-22 15:49 UTC by Hans Meier
Modified: 2020-09-12 21:06 UTC (History)
1 user (show)

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 Hans Meier 2010-10-22 15:49:25 UTC
Many Programs as

MPlayer, glxgears (mesa-progs), Gltron, other Games don0't works
if is not hera this link

/usr/lib/libGL.so.1

mplayer: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

glxgears: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
... and so on

I must allways link with

ln -s /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2 /usr/lib/libGL.so.1

And then I have

 ls -l /usr/lib/libGL.so.1
lrwxrwxrwx 1 root root 41 Oct 22 17:45 /usr/lib/libGL.so.1 -> /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2

Then all programs works.


Reproducible: Always

Steps to Reproduce:
1. A clean installation of media-libs/mesa-9999
2.
3.

Actual Results:  
Many Programs don't works, there isn't link /usr/lib/libGL.so.1

Expected Results:  
That all Programs works
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-10-23 08:49:25 UTC
Possibly there is some issue with eselect opengl.
Comment 2 Hans Meier 2010-10-23 12:19:30 UTC
eselect opengl list
Available OpenGL implementations:
  [1]   ati *
  [2]   xorg-x11

Install media-libs/mesa-9999
 
ls -l /usr/lib/libGL.so.1
ls: cannot access /usr/lib/libGL.so.1: No such file or directory

eselect opengl list
Available OpenGL implementations:
  [1]   ati
  [2]   xorg-x11 *

Install media-libs/mesa-9999

ls -l /usr/lib/libGL.so.1
ls: cannot access /usr/lib/libGL.so.1: No such file or directory

This has no issue with OpenGL implementations, this is a fault in the ebuild from X11 Overlay.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-10-24 08:45:46 UTC
Please paste the output of:

$ ls -l /usr/lib/opengl/xorg-x11/lib

Thank you.
Comment 4 Hans Meier 2010-10-24 09:15:58 UTC
(In reply to comment #3)
> Please paste the output of:
> 
> $ ls -l /usr/lib/opengl/xorg-x11/lib
> 
> Thank you.
> 

ls -l /usr/lib/opengl/xorg-x11/lib
total 624
lrwxrwxrwx 1 root root     10 2010-10-23 14:14 libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root     12 2010-10-23 14:14 libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 root root 633824 2010-10-23 14:14 libGL.so.1.2

Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-10-24 09:21:29 UTC
Ok, I am able to reproduce it. After removing /usr/lib/libGL*, eselect-opengl does link libGL.so only.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-10-24 09:25:20 UTC
On the other hand, I don't seem to have problems with that. Could you paste as well the output of:

$ cat /etc/ld.so.conf
Comment 7 Hans Meier 2010-10-24 09:28:43 UTC
# cat /etc/ld.so.conf
# ld.so.conf autogenerated by eselect
# Make all changes to /etc/env.d files
/usr/local/lib
include ld.so.conf.d/*.conf
/usr/lib32/opengl/ati/lib
/usr/lib64/opengl/ati/lib
/lib
/usr/lib
/lib64
/usr/lib64
/usr/local/lib64
/lib32
/usr/lib32
/usr/local/lib32
/usr/x86_64-pc-linux-gnu/lib
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/32
//usr/lib64/xulrunner-1.9.2
/usr/lib/qt4
/usr/lib64/qt4
/usr/lib32/qt4
/usr/qt/3/lib
/usr/qt/3/lib64
/usr/qt/3/lib32
/usr/lib64/postgresql-8.4/lib64
/usr/games/lib
/usr/games/lib64
/usr/games/lib32
/usr/lib64/fltk-1.1
/usr/lib64/fltk
/usr/GNUstep/System/Library/Libraries
/usr/GNUstep/Local/Library/Libraries
/usr/lib32/libstdc++-v3/
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-10-24 09:32:57 UTC
Ah, forgot about ati. Please then paste as well:

$ ls -l /usr/lib64/opengl/ati/lib
Comment 9 Hans Meier 2010-10-24 10:13:18 UTC
# ls -l /usr/lib64/opengl/ati/lib
total 844
-rwxr-xr-x 1 root root 859736 2010-10-10 19:54 FGL.renamed.libGL.so.1.2
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-10-24 10:16:01 UTC
(In reply to comment #9)
> # ls -l /usr/lib64/opengl/ati/lib
> total 844
> -rwxr-xr-x 1 root root 859736 2010-10-10 19:54 FGL.renamed.libGL.so.1.2

This does not look good, almost as if you have run the proprietary fglrx installer (which is known to break eselect opengl).
Comment 11 Hans Meier 2010-10-24 10:37:57 UTC
I run now only OpenSource Radeon Driver with KMS, which run best

x11-drivers/xf86-video-ati


Before I have try to use, but this binary is unusable

x11-drivers/ati-drivers

I have also had something in

/etc/modprobe.d

from this binary Driver, which had blacklisted radeon Driver :(

After I have deleted this blow, Radeon works very good.

I think this is something wrong with deinstallation of
x11-drivers/ati-drivers

Thanks,
Comment 12 Hans Meier 2010-10-24 11:09:31 UTC
I have deleted folder

rm -fr /usr/lib64/opengl/ati/lib

Reinstalled

x11-drivers/xf86-video-ati
media-libs/mesa

Have only this links, this is enough

ls -l /usr/lib/libGL.so*
lrwxrwxrwx 1 root root 32 2010-10-24 12:53 /usr/lib/libGL.so -> opengl/xorg-x11/lib/libGL.so.1.2

Mplayer and others Programs works. Thanks for Yours Patience.

Regards,
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-10-24 13:42:59 UTC
I guess eselect-opengl should be able to warn whenever such a case is in effect.
Comment 14 Rick Farina (Zero_Chaos) gentoo-dev 2013-11-19 17:11:57 UTC
it's very odd but I've never installed the ati-drivers outside of using emerge and I have this issue too. I don't appear to be the only one either.