Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252794 - x11-apps/xdriinfo-1.0.2 (and 1.0.1) fails to emerge because "cannot find GL library - make sure Mesa or other OpenGL package is installed" ...even though they are installed
Summary: x11-apps/xdriinfo-1.0.2 (and 1.0.1) fails to emerge because "cannot find GL l...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-28 10:55 UTC by Ian Douglas
Modified: 2009-07-22 10:51 UTC (History)
0 users

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


Attachments
emerge log (xdriinfo-build-log.txt,3.76 KB, text/plain)
2008-12-28 11:02 UTC, Ian Douglas
Details
config.log (xdriinfo-config-log.txt,12.99 KB, text/plain)
2008-12-28 11:06 UTC, Ian Douglas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Douglas 2008-12-28 10:55:16 UTC
x11-apps/xdriinfo-1.0.2 (and 1.0.1) fails to emerge thusly:
checking for library containing glXGetProcAddressARB... no
configure: error: cannot find GL library - make sure Mesa or other OpenGL package is installed

Reproducible: Always

Steps to Reproduce:
1.emerge xdriinfo
2.
3.

Actual Results:  
Fails as above

Expected Results:  
Expected clean emerge ... 1.0.1 existed on my system without any problems in the past.

see http://forums.gentoo.org/viewtopic-p-5328767.html#5328767 for the gory details, including an x86 user with same issue. I'm on amd64.

The usually requested bits of info are there, but here's emerge --info and some others:

gentoo ~ # emerge --info
Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r0, 2.6.24-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.24-gentoo-r2-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5
Timestamp of tree: Sun, 28 Dec 2008 08:05:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.0
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2"
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/X11/app-defaults /usr/share/config"
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/udev/rules.d"
CXXFLAGS="-pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirrors.blueyonder.co.uk/mirrors/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_ZA en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac accessibility acl akode alsa amd64 amr apache2 bash-completion berkdb binfilter bitmap-fonts bzip2 cairo cddb cdr cgi cli colordiff cracklib crypt css cups curl djvu dri dts dvd dvdnav dvdr dvdread emul-linux-x86 exif flac foomaticdb fortran ftp gd gdbm gif gimp gimpprint gnome gnome-print gpm gstreamer gtk gtk2 iconv imagemagick imlib innodb ipv6 isdnlog java javascript jikes joystick jpeg kde kdeenablefinal libungif libwww lm_sensors midi mime mmx mozdevelop mozilla mozsvg mp3 mpeg mudflap multilib mysql mysqli ncurses network nls no-htdocs nodrm npp nptl nptlonly nsplugin offensive ogg openal opengl openmp oss pam pcre pdf perl php png posix ppds pppd python qt3support qt4 quicktime rar readline reflection rtc samba scanner session sockets spell spl sse sse2 ssl svg sysfs szip tcpd threads tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l vcd visualization vorbis wmf xine xml xml2 xmlreader xmlwriter xorg xpm xulrunner zip zlib" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_ZA en_GB" USERLAND="GNU" VIDEO_CARDS="fglrx vga vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


gentoo ~ # eix mesa
* games-emulation/psemu-gpupetemesagl
     Available versions:  *1.76!s
     Homepage:            http://www.pbernert.com/
     Description:         PSEmu MesaGL GPU

[I] media-libs/mesa
     Available versions:  6.5.2-r1 (~)7.0.3 (~)7.1_rc3 (~)7.1 (~)7.2_rc1 (~)7.2 {debug doc kernel_FreeBSD motif nptl pic video_cards_intel video_cards_mach64 video_cards_mga video_cards_none video_cards_r128 video_cards_radeon video_cards_s3virge video_cards_savage video_cards_sis video_cards_sunffb video_cards_tdfx video_cards_trident video_cards_via xcb}
     Installed versions:  7.2(22:28:19 26/12/08)(-debug -doc -kernel_FreeBSD -motif -nptl -pic -video_cards_intel -video_cards_mach64 -video_cards_mga -video_cards_none -video_cards_r128 -video_cards_radeon -video_cards_s3virge -video_cards_savage -video_cards_sis -video_cards_sunffb -video_cards_tdfx -video_cards_trident -video_cards_via -xcb)
     Homepage:            http://mesa3d.sourceforge.net/
     Description:         OpenGL-like graphic library for Linux

[I] x11-apps/mesa-progs
     Available versions:  6.5.2 (~)7.0.1 (~)7.0.3 (~)7.1
     Installed versions:  7.1(14:50:20 05/12/08)
     Homepage:            http://mesa3d.sourceforge.net/
     Description:         Mesa's OpenGL utility and demo programs (like glxgears)

Found 3 matches.


gentoo ~ # eix opengl
[I] app-admin/eselect-opengl
     Available versions:  1.0.5 (~)1.0.6 1.0.6-r1
     Installed versions:  1.0.6-r1(23:03:36 26/12/08)
     Homepage:            http://www.gentoo.org/
     Description:         Utility to change the OpenGL interface being used

* app-doc/opengl-manpages
     Available versions:  20001215!m
     Homepage:            http://www.opengl.org/documentation/specs/
     Description:         Man pages for OpenGL

* dev-haskell/opengl
     Available versions:  (~)2.0 (~)2.1 2.2.1 2.2.1.1 {doc profile}
     Homepage:            http://haskell.org/ghc/
     Description:         OpenGL bindings for haskell

[U] dev-python/pyopengl
     Available versions:  2.0.0.44 (~)3.0.0_beta6 {doc tk}
     Installed versions:  3.0.0_beta1(19:36:30 26/02/08)(-doc -tk)
     Homepage:            http://pyopengl.sourceforge.net/
     Description:         Python OpenGL bindings

* dev-ruby/ruby-opengl
     Available versions:  0.32c (~)0.32d 0.32g (~)0.60.0 {doc}
     Homepage:            http://ruby-opengl.rubyforge.org/
     Description:         OpenGL / GLUT bindings for ruby

* games-rpg/openglad
     Available versions:  (~)0.98
     Homepage:            http://snowstorm.sourceforge.net/
     Description:         An SDL clone of Gladiator, a classic RPG game

[I] virtual/opengl
     Available versions:  7.0
     Installed versions:  7.0(00:48:37 06/10/07)
     Homepage:            http://www.gentoo.org/proj/en/desktop/x/x11/
     Description:         Virtual for OpenGL implementation

[I] x11-libs/qt-opengl
     Available versions:  (4)  [M](~)4.4.0 (~)4.4.1 (~)4.4.2
        {debug pch qt3support}
     Installed versions:  4.4.2(4)(03:35:17 19/10/08)(qt3support -debug -pch)
     Homepage:            http://www.trolltech.com/
     Description:         The OpenGL module for the Qt toolkit.

Found 8 matches.
Comment 1 Ian Douglas 2008-12-28 11:02:36 UTC
Created attachment 176583 [details]
emerge log
Comment 2 Ian Douglas 2008-12-28 11:06:07 UTC
Created attachment 176585 [details]
config.log
Comment 3 Rafał Mużyło 2008-12-28 16:00:47 UTC
Well, something you don't see everyday:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../lib64/libGL.so: undefined reference to `XDamageAdd'
Somewhere along the line, libXdamage went AWOL.
Check the output of ldd for libGL and libX11.
Comment 4 Ian Douglas 2008-12-28 18:29:02 UTC
(In reply to comment #3)
> Well, something you don't see everyday:
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../lib64/libGL.so: undefined
> reference to `XDamageAdd'
> Somewhere along the line, libXdamage went AWOL.
> Check the output of ldd for libGL and libX11.
> 

thanks for the speedy reply.

I re-emerged libXdamage but that didn't fix the problem.

I tried using ldd without success (after consulting --help and the man pages)

gentoo ~ # ldd libX11
ldd: ./libX11: No such file or directory

gentoo ~ # ldd libGL
ldd: ./libGL: No such file or directory


Excuse my ignorance but what exactly should I be passing to ldd?

thanks, Ian




Comment 5 Rafał Mużyło 2008-12-28 22:32:50 UTC
ldd needs full path.
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-29 03:01:45 UTC
Assigning to maintainers.
Comment 7 Berend Dekens 2009-01-13 14:11:32 UTC
I am facing the same problem as well. My system is also amd64 and multilib.

At first I thought the libGL.so symlink was missing or corrupt but even after using 'eselect opengl' to put it back, the build still fails.

Perhaps this is an nvidia issue? I am using the 180.22 drivers that came out yesterday and the beta 180.xx drivers before that.
Comment 8 Ian Douglas 2009-01-13 14:23:03 UTC
(In reply to comment #7)
> I am facing the same problem as well. My system is also amd64 and multilib.
> 
> At first I thought the libGL.so symlink was missing or corrupt but even after
> using 'eselect opengl' to put it back, the build still fails.
> 
> Perhaps this is an nvidia issue? I am using the 180.22 drivers that came out
> yesterday and the beta 180.xx drivers before that.
> 

These seem related: (and affect ATI and nVidia):

http://bugs.gentoo.org/show_bug.cgi?id=238686
http://bugs.gentoo.org/show_bug.cgi?id=237785
http://bugs.gentoo.org/show_bug.cgi?id=228547

I did try the steps on 237785 and now mesa-progs no longer emerges ... so still stuck.

Looks like it's actually an eselect or unmerge/portage issue.

cheers, Ian
Comment 9 Berend Dekens 2009-01-21 15:58:11 UTC
Actually, it seems that because I don't have Mesa installed, any call to 'eselect opengl set 2' (option 2 is xorg-x11 opengl) will erase the /usr/lib/libGL.so symlink.

When xdriinfo starts it does this:
>>> Emerging (1 of 178) x11-apps/xdriinfo-1.0.2
 * xdriinfo-1.0.2.tar.bz2 RMD160 SHA1 SHA256 size ;-)... [ ok ]
 * checking ebuild checksums ;-)... [ ok ]
 * checking auxfile checksums ;-)... [ ok ]
 * checking miscfile checksums ;-)... [ ok ]
 * Forcing on xorg-x11 for header sanity...

That is the moment when it switches my system back from nvidia opengl to mesa - or at least it tries. In fact it erases the symlink leaving the system without the proper openGL support (afaik).

My workaround: hit ctrl+z when switched to mesa ('Unpacking source' is after the switch so hitting ctrl+z there is safe). Check if the symlink is gone: 'ls -alh /usr/lib/libGL*' shows no libGL.so in there.

Next enter 'eselect opengl set 1' (you might want to confirm that number 1 is indeed your native openGL driver).

Enter 'fg' and let xdriinfo continue. *done*

It compiles fine this way so whoevers bright idea it was to switch the openGL driver for compiling one program: please don't...
Also, it looks like the layer is not switched back to the original value, so after installing xdriinfo, everyone is stuck with Mesa?
Comment 10 Ian Douglas 2009-01-21 17:27:50 UTC
(In reply to comment #9)
> Actually, it seems that because I don't have Mesa installed, any call to
> 'eselect opengl set 2' (option 2 is xorg-x11 opengl) will erase the
> /usr/lib/libGL.so symlink.

Um, didn't quite work for me... probably because I have uninstalled ATI-Drivers (which according to another bug may actually be the root of the problems -- the uninstall step, that is).

gentoo / # emerge -uvDN xdriinfo

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] x11-apps/xdriinfo-1.0.2  USE="-debug" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-apps/xdriinfo-1.0.2
 * xdriinfo-1.0.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
 * checking ebuild checksums ;-) ... [ ok ]
 * checking auxfile checksums ;-) ... [ ok ]
 * checking miscfile checksums ;-) ... [ ok ]
 * Forcing on xorg-x11 for header sanity...
Switching to xorg-x11 OpenGL interface... done
>>> Unpacking source...
>>> Unpacking xdriinfo-1.0.2.tar.bz2 to /var/tmp/portage/x11-apps/xdriinfo-1.0.2/work
>>> Source unpacked in /var/tmp/portage/x11-apps/xdriinfo-1.0.2/work
^Z
[1]+  Stopped                 emerge -uvDN xdriinfo
gentoo / # ls -alh /usr/lib/libGL*
-rw-r--r-- 1 root root  747 2009-01-21 18:41 /usr/lib/libGL.la
lrwxrwxrwx 1 root root   38 2009-01-21 18:41 /usr/lib/libGL.so -> //usr/lib/opengl/xorg-x11/lib/libGL.so*
-rw-r--r-- 1 root root 884K 2006-05-18 21:14 /usr/lib/libGLU.a
-rw-r--r-- 1 root root  752 2009-01-20 15:10 /usr/lib/libGLU.la
lrwxrwxrwx 1 root root   11 2009-01-20 15:10 /usr/lib/libGLU.so -> libGLU.so.1*
lrwxrwxrwx 1 root root   20 2009-01-20 15:10 /usr/lib/libGLU.so.1 -> libGLU.so.1.3.070200*
-rwxr-xr-x 1 root root 451K 2009-01-20 15:10 /usr/lib/libGLU.so.1.3.070200*
-rw-r--r-- 1 root root  45K 2006-05-18 21:14 /usr/lib/libGLw.a
gentoo / # eselect opengl list
Available OpenGL implementations:
  [1]   xorg-x11 *
gentoo / #                         


so should I uninstall Mesa first?

thanks, Ian
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2009-07-22 10:51:34 UTC
xdriinfo changes to xorg-x11's libGL as it should, so it's a bug with your binary drivers.. not xdriinfo