Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37381 - compile error gle-3.0.1-r2 -> mainsimple.c:45: `GLUT_DOUBLE' undeclared
Summary: compile error gle-3.0.1-r2 -> mainsimple.c:45: `GLUT_DOUBLE' undeclared
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-06 04:23 UTC by Michiel Roeleveld
Modified: 2004-01-07 11:20 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 Michiel Roeleveld 2004-01-06 04:23:04 UTC
I try to emerge gle, I get errors due to undeclared variables/constants.

make[2]: Entering directory `/var/tmp/portage/gle-3.0.1-r2/work/gle-3.0.1/examples'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include   -I..   -I../src     -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -frename-registers -Wall -c beam.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include   -I..   -I../src     -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -frename-registers -Wall -c mainsimple.c
mainsimple.c:14:21: GL/glut.h: No such file or directory
beam.c:19:21: GL/glut.h: No such file or directory
beam.c: In function `DrawStuff':
beam.c:118: warning: implicit declaration of function `glutSwapBuffers'
mainsimple.c: In function `MouseMotion':
mainsimple.c:25: warning: implicit declaration of function `glutPostRedisplay'
mainsimple.c: In function `main':
mainsimple.c:44: warning: implicit declaration of function `glutInit'
mainsimple.c:45: warning: implicit declaration of function `glutInitDisplayMode'mainsimple.c:45: `GLUT_DOUBLE' undeclared (first use in this function)
mainsimple.c:45: (Each undeclared identifier is reported only once
mainsimple.c:45: for each function it appears in.)
mainsimple.c:45: `GLUT_RGB' undeclared (first use in this function)
mainsimple.c:45: `GLUT_DEPTH' undeclared (first use in this function)
mainsimple.c:46: warning: implicit declaration of function `glutCreateWindow'
mainsimple.c:47: warning: implicit declaration of function `glutDisplayFunc'
mainsimple.c:48: warning: implicit declaration of function `glutMotionFunc'
mainsimple.c:51: warning: implicit declaration of function `glutCreateMenu'
mainsimple.c:52: warning: implicit declaration of function `glutAddMenuEntry'
mainsimple.c:53: warning: implicit declaration of function `glutAttachMenu'
mainsimple.c:53: `GLUT_MIDDLE_BUTTON' undeclared (first use in this function)
mainsimple.c:79: warning: implicit declaration of function `glutMainLoop'
make[2]: *** [beam.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [mainsimple.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gle-3.0.1-r2/work/gle-3.0.1/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gle-3.0.1-r2/work/gle-3.0.1'
make: *** [all-recursive-am] Error 2
 
!!! ERROR: media-libs/gle-3.0.1-r2 failed.
!!! Function src_compile, Line 23, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. emerge gle
2.
3.




Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-gentoo-r2)
=================================================================
System uname: 2.4.22-gentoo-r2 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -frename-registers"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -frename-registers"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache keepwork sandbox"
GENTOO_MIRRORS="ftp://ftp.nluug.nl/pub/os/Linux/distr/gentoo 
http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apm arts avi berkdb bonobo cdr crypt cups doc
encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 guile imlib java jpeg kde
libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss
pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga
tcltk tcpd tetex truetype usb x86 xml2 xmms xv zlib"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-01-06 17:38:53 UTC
You seem to missing your /usr/X11R6/include/GL/glut.h file.  try remerging glut
and then trying to merge gle again.
Comment 2 Michiel Roeleveld 2004-01-07 11:20:55 UTC
It worked, thanks.

Michiel