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

Bug 147229

Summary: freeglut 2.4.0 fails to find libGL.so
Product: Gentoo Linux Reporter: Adam Bowers <adbowers>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: AMD64   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Adam Bowers 2006-09-11 13:44:06 UTC
Sorry is this is just a problem with my box, but I figured it may help.  I was able to link libGL.so.1 to libGL.so and the emerge finished.  As a side note, I only came across this problem when I was following the Gentoo GCC Upgrade Guide to update GCC from 3.4 to 4.1.  I am running nvidia-drivers if that helps.

i686-pc-linux-gnu-gcc -shared  libglut_la-freeglut_callbacks.lo libglut_la-freeglut_cursor.lo libglut_la-freeglut_display.lo libglut_la-freeglut_ext.lo libglut_la-freeglut_font.lo libglut_la-freeglut_glutfont_definitions.lo libglut_la-freeglut_font_data.lo libglut_la-freeglut_stroke_roman.lo libglut_la-freeglut_stroke_mono_roman.lo libglut_la-freeglut_gamemode.lo libglut_la-freeglut_geometry.lo libglut_la-freeglut_init.lo libglut_la-freeglut_joystick.lo libglut_la-freeglut_main.lo libglut_la-freeglut_menu.lo libglut_la-freeglut_misc.lo libglut_la-freeglut_overlay.lo libglut_la-freeglut_state.lo libglut_la-freeglut_structure.lo libglut_la-freeglut_teapot.lo libglut_la-freeglut_videoresize.lo libglut_la-freeglut_window.lo  -Wl,--rpath -Wl,/usr/lib/opengl/nvidia/lib -Wl,--rpath -Wl,/usr/lib/opengl/nvidia/lib  -L/usr/lib -lm /usr/lib/opengl/nvidia/lib/libGL.so /usr/lib/libGLU.so /usr/lib/libXext.so /usr/lib/libX11.so /usr/lib/libXxf86vm.so  -Wl,-soname -Wl,libglut.so.3 -o .libs/libglut.so.3.8.0
i686-pc-linux-gnu-gcc: /usr/lib/opengl/nvidia/lib/libGL.so: No such file or directory
make[2]: *** [libglut.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/freeglut-2.4.0/work/freeglut-2.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/freeglut-2.4.0/work/freeglut-2.4.0'
make: *** [all] Error 2

!!! ERROR: media-libs/freeglut-2.4.0 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 608:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Portage 2.1.1 (default-linux/x86/2005.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 1500MHz
Gentoo Base System version 1.12.4
Last Sync: Mon, 11 Sep 2006 19:30:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo"
LC_ALL="en_US.UTF-8"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi apm bash-completion bzip2 cdr crypt cups dlloader dvd elibc_glibc fbcon finger foomaticdb ftp gdbm gnutls gpm input_devices_keyboard input_devices_mouse javascript jpeg kernel_linux mmap mmx mozsvg mp3 ncurses nls nntp nptl nptlonly pam pcre perl png python readline reflection samba sdl session slp snmp spell spl sse ssl svga syslog sysvipc tcpd threads tiff truetype unicode usb userland_GNU video_cards_fbdev video_cards_nv video_cards_vesa xml xprint zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-11 14:48:49 UTC
Run 'eselect opengl set nvidia' and try again.
Comment 2 Adam Bowers 2006-09-12 12:11:32 UTC
No luck.

hotbbq@Beast ~ $ sudo eselect opengl set nvidia
Switching to nvidia OpenGL interface... done

hotbbq@Beast ~ $ ls -al /usr/lib/opengl/nvidia/lib
total 7.8M
drwxr-xr-x 2 root root  304 2006-09-11 19:41 .
drwxr-xr-x 5 root root  120 2006-06-07 15:40 ..
lrwxrwxrwx 1 root root   21 2006-06-07 15:40 libGLcore.so.1 -> libGLcore.so.1.0.7174
-rwxr-xr-x 1 root root 7.3M 2006-05-18 16:23 libGLcore.so.1.0.7174
-rw-r--r-- 1 root root  727 2006-05-18 16:23 libGL.la
lrwxrwxrwx 1 root root   17 2006-06-07 15:40 libGL.so.1 -> libGL.so.1.0.7174
-rwxr-xr-x 1 root root 474K 2006-05-18 16:23 libGL.so.1.0.7174
lrwxrwxrwx 1 root root   25 2006-06-07 15:40 libnvidia-tls.so.1 -> libnvidia-tls.so.1.0.7174
lrwxrwxrwx 1 root root   32 2006-06-07 15:39 libnvidia-tls.so.1.0.7174 -> ../tls/libnvidia-tls.so.1.0.7174