Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85898 - gl117-1.3.2 fails to compile with xorg-6.8.2-r1 and ati-drivers
Summary: gl117-1.3.2 fails to compile with xorg-6.8.2-r1 and ati-drivers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-19 06:15 UTC by Giuseppe Foti
Modified: 2005-03-20 10:34 UTC (History)
0 users

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 Giuseppe Foti 2005-03-19 06:15:56 UTC
emerging gl117 gives in the configure phase the following warnings:

checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking GL/glut.h usability... yes
checking GL/glut.h presence... yes
checking for GL/glut.h... yes
checking SDL/SDL.h usability... yes
checking SDL/SDL.h presence... yes
checking for SDL/SDL.h... yes
checking SDL/SDL_mixer.h usability... yes
checking SDL/SDL_mixer.h presence... yes
checking for SDL/SDL_mixer.h... yes
checking for glEnable in -lGL... no
configure: WARNING: GL not found - please install GL or MesaGL
checking for gluPerspective in -lGLU... no
configure: WARNING: GLU not found - please install GLU or MesaGLU
checking for glutMainLoop in -lglut... no
configure: WARNING: GLUT not found - please install GLUT or MesaGLUT
checking for SDL_Init in -lSDL... no
configure: WARNING: SDL not found - please install SDL
checking for Mix_LoadMUS in -lSDL_mixer... no
configure: WARNING: SDL_mixer not found - please install SDL_mixer
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands

after it goes on but exit with this message:

if i686-pc-linux-gnu-g++ -I. -I.. -I. -I. -I..   -DDATADIR='"/usr/share/games"' -Wall -pedantic  -O2 -march=athlon-xp -pipe -I/usr/include -I/usr/include -MT maploader.o -MD -MP -MF ".deps/maploader.Tpo" -c -o maploader.o maploader.cpp; \
then mv -f ".deps/maploader.Tpo" ".deps/maploader.Po"; else rm -f ".deps/maploader.Tpo"; exit 1; fi
i686-pc-linux-gnu-g++  -O2 -march=athlon-xp -pipe -I/usr/include -I/usr/include  -lm -lGL -lGLU -lglut -o gl-117  main.o gl.o model.o 3ds.o audio.o land.o glland.o aiobject.o effects.o vertexarray.o net.o mathtab.o dirs.o objload.o pilots.o loader_tga.o object.o conf.o mission.o cockpit.o common.o menu.o fileloader.o maploader.o  -L/usr/X11R6/lib -L/usr/lib -L/usr/lib
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make[2]: *** [gl-117] Error 1
make[2]: Leaving directory `/var/tmp/portage/gl117-1.3.2/work/gl-117-1.3.2-src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gl117-1.3.2/work/gl-117-1.3.2-src'
make: *** [all] Error 2

I looked at DEPEND of this ebuild and I saw:

DEPEND="virtual/x11
        media-libs/libsdl
        media-libs/sdl-mixer
        virtual/opengl
        virtual/glu
        virtual/glut"

all of this in my system is emerged:
root@peppebook portage # emerge -p virtual/x11 media-libs/libsdl media-libs/sdl-mixer virtual/opengl virtual/glu virtual/glut

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] x11-base/xorg-x11-6.8.2-r1
[ebuild   R   ] media-libs/libsdl-1.2.7-r3
[ebuild   R   ] media-libs/sdl-mixer-1.2.5-r1
[ebuild   R   ] media-libs/glut-3.7.1


Reproducible: Always
Steps to Reproduce:
1.emerge gl117

Actual Results:  
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lGL
collect2: ld returned 1 exit status
make[2]: *** [gl-117] Error 1
make[2]: Leaving directory `/var/tmp/portage/gl117-1.3.2/work/gl-117-1.3.2-src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gl117-1.3.2/work/gl-117-1.3.2-src'
make: *** [all] Error 2

!!! ERROR: games-simulation/gl117-1.3.2 failed.
!!! Function games_src_compile, Line 150, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.



root@peppebook portage # emerge info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1,
2.6.7 i686)
=================================================================
System uname: 2.6.7 i686 Mobile AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 26 2005, 13:03:29)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.19-r1, 2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://gentoo.osuosl.org/
ftp://194.117.143.72/mirrors/gentoo http://194.117.143.72
ftp://194.117.143.70/mirrors/gentoo ftp://194.117.143.69/mirrors/gentoo"
LANG="it_IT@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acpi alsa apache2 apm arts avi berkdb bitmap-fonts cdr
crypt cups curl directfb dvd dvdr emacs emacs-w3 emboss encode esd ethereal evo
fam flac flash font-server foomaticdb fortran gb gd gdbm gif gpm gstreamer gtk2
imagemagick imlib innodb ipv6 java jpeg junitkde libcaca libg++ libwww live mad
mikmod mng mod_php motif mozilla mp3 mpeg mysql ncurses network nls oggvorbis
opengl oss pam pcmcia pda pdflib perl php png pnp python qt quicktime readline
real samba scanner sdl slang speex spell ssl svga tcltk tcpd theora tiff
truetype truetype-fonts type1-fonts usb wmf xml2 xmms xv xvmc zlib linguas_it"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

##################
more:
root@peppebook portage # opengl-update --get-implementation
ati
Comment 1 SpanKY gentoo-dev 2005-03-19 10:18:41 UTC
your opengl is broken, try running `opengl-update`
Comment 2 Giuseppe Foti 2005-03-20 10:34:41 UTC
My implementation of opengl was broken.
I just run 
# opengl-update ati

and then
# emerge gl117

so this was NOT A BUG.
sorry