Header file errors
Asfand Yar Qazi
email at asfandyar.cjb.net
Mon Oct 10 02:03:57 EDT 2005
Hello,
Got the following error (I'm using the nVidia headers from driver
6111, I can't upgrade since later versions of the driver make X hang
or crash.)
[asfand at big ~/src/games/quake3/icculus_quake3/quake3.build]
$ make
make -C code/unix release
make[1]: Entering directory
`/home/asfand/src/games/quake3/icculus_quake3/quake3.build/code/unix'
make targets B=releasei386-glibc CFLAGS=" -pipe -Wall -Wimplicit
-Wstrict-prototypes -DUSE_SDL=1 -I/opt/sdl/include/SDL -D_REENTRANT
-DHAVE_VM_NATIVE -DHAVE_VM_COMPILED -m32 -DNDEBUG -O3 -march=i686
-fomit-frame-pointer -ffast-math -falign-loops=2 -falign-jumps=2
-falign-functions=2 -fno-strict-aliasing -fstrength-reduce -MMD"
make[2]: Entering directory
`/home/asfand/src/games/quake3/icculus_quake3/quake3.build/code/unix'
gcc -pipe -Wall -Wimplicit -Wstrict-prototypes -DUSE_SDL=1
-I/opt/sdl/include/SDL -D_REENTRANT -DHAVE_VM_NATIVE
-DHAVE_VM_COMPILED -m32 -DNDEBUG -O3 -march=i686 -fomit-frame-pointer
-ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2
-fno-strict-aliasing -fstrength-reduce -MMD -o
releasei386-glibc/client/jerror.o -c ../jpeg-6/jerror.c
In file included from /usr/X11R6/include/GL/glx.h:25,
from ../jpeg-6/../renderer/qgl.h:54,
from ../jpeg-6/../renderer/tr_local.h:31,
from ../jpeg-6/jerror.c:22:
/usr/X11R6/include/X11/Xmd.h:100:1: warning: "SIZEOF" redefined
In file included from ../jpeg-6/jerror.c:17:
../jpeg-6/jinclude.h:105:1: warning: this is the location of the
previous definition
In file included from /usr/X11R6/include/GL/glx.h:25,
from ../jpeg-6/../renderer/qgl.h:54,
from ../jpeg-6/../renderer/tr_local.h:31,
from ../jpeg-6/jerror.c:22:
/usr/X11R6/include/X11/Xmd.h:134: error: redefinition of typedef 'INT32'
../jpeg-6/../jpeg-6/jmorecfg.h:153: error: previous declaration of
'INT32' was here
/usr/X11R6/include/X11/Xmd.h:136: error: redefinition of typedef 'INT16'
../jpeg-6/../jpeg-6/jmorecfg.h:159: error: previous declaration of
'INT16' was here
make[2]: *** [releasei386-glibc/client/jerror.o] Error 1
make[2]: Leaving directory
`/home/asfand/src/games/quake3/icculus_quake3/quake3.build/code/unix'
make[1]: *** [build_release] Error 2
make[1]: Leaving directory
`/home/asfand/src/games/quake3/icculus_quake3/quake3.build/code/unix'
make: *** [release] Error 2
Huh? I'm sleepy so..... I'll work up an #ifdef/#undef style patch
later, but just bringing it to the attention of the list members for
now. BTW, I'm still stuck on XFree86 4.3 vanilla version, perhaps
they didn't hide their internal defines too well.
Also, may I suggest inclusion of your GL headers with the source? I
believe there are many OpenGL projects that do this already, due to
incompatibilities between header versions (OpenSceneGraph being one of
them, I think - or was it someone else?) Having a standard set of GL
headers would make development easier, I feel. No errors so far, but
still, just in case
Thanks
More information about the quake3
mailing list