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

Bug 147846

Summary: media-libs/freeglut-2.4.0 cannot find -lGL
Product: Gentoo Linux Reporter: konsti
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description konsti 2006-09-16 12:53:06 UTC
This is a fresh amd64 install and I am stuck with any opengel stuff. mesa-6.5.1 cpmiled but freeglut says:

x86_64-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 -Wl,--rpath -Wl,/usr/lib  -L/usr/lib64 -L/usr/lib -lm -lGL /usr/lib/libGLU.so /usr/lib64/libXext.so /usr/lib64/libX11.so /usr/lib64/libXxf86vm.so  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-soname -Wl,libglut.so.3 -o .libs/libglut.so.3.8.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lGL

Now I am stuck :-(


Portage 2.1.2_pre1 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-rc7 x86_64)
=================================================================
System uname: 2.6.18-rc7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.5
Last Sync: Sat, 16 Sep 2006 16:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo "
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib alsa ao audiofile avi berkdb bitmap-fonts bzip2 cli crypt cups dga dlloader dvd elibc_glibc encode flac glibc-omitfp gpm icq imagemagick imap input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kernel_linux libcaca libg++ mad maildir menu minimal moznocompose moznoirc moznomail moznoroaming mozsvg mpeg ncurses no-old-linux nptl nptlonly nvidia offensive ogg opengl pam png pppd readline reflection session smime spl ssl symlink tetex theora truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales vcd video_cards_nv video_cards_nvidia vorbis xinerama xml2 xorg xosd xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-16 14:04:36 UTC

*** This bug has been marked as a duplicate of 136134 ***
Comment 2 konsti 2006-09-17 08:51:51 UTC
I can not see any coincidence with this bug. An undefined reference linking to usb hid libraries has nothing to do with -lGL.
Merely I found out now, that any attempt to link to libGL fails.
Concerned so far are mesa-progs, quake1 and freeglut. May                        be eselect opengel list simply exiting is a coincidence? Bug number 147660.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-17 08:58:46 UTC
Wrong dupe #.

This has nothing to do w/ freeglut, your OpenGL is messed up. Run 'eselect opengl set nvidia' or 'eselect opengl set xorg-x11' or whatever else you are using.
Comment 4 konsti 2006-09-17 09:32:45 UTC
# > eselect opengl set nvidia
exiting.
# > eselect opengl list      
exiting.
Comment 5 konsti 2006-09-17 09:36:51 UTC
Sorry, I forget to mention to ask where to to reaasign this stuff. Ok, my opengl setup is hosed, including eselect. but how do I find out where to complain or debug further by myself?
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-09-17 09:42:32 UTC
(In reply to comment #4)
> # > eselect opengl set nvidia
> exiting.
> # > eselect opengl list      
> exiting.
> 

See Bug 147660.
Comment 7 konsti 2006-09-17 09:51:10 UTC
(In reply to comment #6)
okay, I will keep my eye on this one since this seems to be a symptome only. 
Comment 8 konsti 2006-09-17 11:42:59 UTC
Ok, solved in #147660   
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-09-17 11:55:44 UTC
Good. thanks for reporting back.