error compiling gl_misc

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
cvk

error compiling gl_misc

Post by cvk »

Vegastrike fails to compile on my system and ain't got no no clue why... :-( Could there be any problems with my gcc 3.2.2?

Here's the error message:

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I ../   -DHAVE_SDL=1 -DSDL_WINDOWING=1     -DHAVE_AL=1   -I/usr/include/python2.2 -DHAVE_PYTHON=1     -march=athlon-xp -O3 -pipe -fomit-frame-pointer -O2 -g -Wall  -ffast-math -fexpensive-optimizations -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/include/SDL -D_REENTRANT -c gl_misc.cpp
gl_misc.cpp: In function `void GFXCircle(float, float, float, float)':
gl_misc.cpp:35: warning: initialization to `int' from `float'
gl_misc.cpp:35: warning: argument to `int' from `float'
gl_misc.cpp: In function `void GFXBegin(POLYTYPE)':
gl_misc.cpp:86: warning: `GLenum mode' might be used uninitialized in this
   function
gl_misc.cpp: In function `void GFXTexCoord4f(float, float, float, float)':
gl_misc.cpp:148: `glMultiTexCoord2fARB' undeclared (first use this function)
gl_misc.cpp:148: (Each undeclared identifier is reported only once for each
   function it appears in.)
make[3]: *** [gl_misc.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/vegastrike-0.2.9.4/work/vegastrike/src/gldrv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/vegastrike-0.2.9.4/work/vegastrike/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/vegastrike-0.2.9.4/work/vegastrike'
make: *** [all-recursive-am] Error 2
config.log:

Code: Select all

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:614: checking for a BSD compatible install
configure:667: checking whether build environment is sane
configure:724: checking whether make sets ${MAKE}
configure:770: checking for working aclocal
configure:783: checking for working autoconf
configure:796: checking for working automake
configure:809: checking for working autoheader
configure:822: checking for working makeinfo
configure:847: checking host system type
configure:875: checking for gcc
configure:988: checking whether the C compiler (gcc -march=athlon-xp -O3 -pipe -fomit-frame-pointer -lz -lm -L/usr/X11R6/lib) works
configure:1004: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer  -lz -lm -L/usr/X11R6/lib conftest.c  1>&5
configure:1030: checking whether the C compiler (gcc -march=athlon-xp -O3 -pipe -fomit-frame-pointer -lz -lm -L/usr/X11R6/lib) is a cross-compiler
configure:1035: checking whether we are using GNU C
configure:1063: checking whether gcc accepts -g
configure:1104: checking for c++
configure:1136: checking whether the C++ compiler (g++ -march=athlon-xp -O3 -pipe -fomit-frame-pointer -lz -lm -L/usr/X11R6/lib) works
configure:1152: g++ -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer  -lz -lm -L/usr/X11R6/lib conftest.C  1>&5
configure:1178: checking whether the C++ compiler (g++ -march=athlon-xp -O3 -pipe -fomit-frame-pointer -lz -lm -L/usr/X11R6/lib) is a cross-compiler
configure:1183: checking whether we are using GNU C++
configure:1211: checking whether g++ accepts -g
configure:1246: checking for ranlib
configure:1276: checking how to run the C preprocessor
configure:1356: checking for ANSI C header files
configure:1463: checking for sys/time.h
configure:1463: checking for unistd.h
configure:1501: checking for working const
configure:1576: checking whether time.h and sys/time.h may both be included
configure:1614: checking for getcwd
configure:1614: checking for gettimeofday
configure:1614: checking for strdup
configure:1670: checking for finite
configure:1670: checking for isnan
configure:1725: checking for _finite
configure:1725: checking for _isnan
configure:1781: checking for ieeefp.h
configure:1864: checking for Win32 platform
configure:1891: checking for MacOSX platform
configure:1929: checking for python
configure:2088: checking for sdl-config
configure:2123: checking for SDL - version >= 1.0.1
configure:2208: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -I/usr/include/SDL -D_REENTRANT  -lz -lm -L/usr/X11R6/lib conftest.c  -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread 1>&5
configure:2298: checking for SDL_JoystickOpen
configure:2413: checking for GL library
configure:2423: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer  -lz -lm -L/usr/X11R6/lib conftest.c   -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread  -lGL 1>&5
configure:2794: checking for GLU library
configure:2804: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer  -lz -lm -L/usr/X11R6/lib conftest.c   -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread  -lGL  -lGLU 1>&5
configure:3100: checking for GL/gl.h
configure:3110: gcc -E    -DHAVE_SDL=1 -DSDL_WINDOWING=1 conftest.c >/dev/null 2>conftest.out
configure:3175: checking for GL/glext.h
configure:3225: checking whether glext.h is recent enough
configure:3289: checking for glut library
configure:3305: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer  -L/usr/X11R6/lib  conftest.c   -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread  -lGL  -lGLU  -lglut -lXi -lXmu 1>&5
configure:3356: checking for GL/glut.h
configure:3419: checking for expat library
configure:3429: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer  -L/usr/X11R6/lib  conftest.c  -lexpat 1>&5
configure:3477: checking for expat.h
configure:3541: checking for png library
configure:3551: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer  -L/usr/X11R6/lib  conftest.c  -lpng -lz -lm 1>&5
configure:3599: checking for png.h
configure:3674: checking for openal library
configure:3684: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer  -L/usr/X11R6/lib  conftest.c  -lopenal 1>&5
configure:3735: checking for AL/al.h
configure:3742: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:3805: checking for AL/alext.h
configure:3923: checking for gtk-config
configure:3958: checking for GTK - version >= 1.2.1
configure:4059: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  -L/usr/X11R6/lib  conftest.c -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm  1>&5
Regards,
Chris
cvk

Post by cvk »

Err... dupe. please delete
Shrike
Bounty Hunter
Bounty Hunter
Posts: 128
Joined: Fri Jan 03, 2003 4:51 pm
Location: Somewhere in the Multiverse
Contact:

Post by Shrike »

Delete which? The first one or the second one, or both?
or

Post by or »

I have the same problem. I even tried adding "extern ..." and had gl_misc.o compiled but it gave me the error on linking stage I guess

gldrv/libgldrv.a(gl_misc.o)(.text+0x4b7):/home/barank/make/vegastrike-0.3.0/src/gldrv/gl_misc.cpp:159: undefined reference to `glMultiTexCoord2fARB(unsigned, float, float)'

Is there any suggestion ?
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

you have to use libGL.so
not libGL.a
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
vXkLGo1Hqqk=

Post by vXkLGo1Hqqk= »

hellcatv wrote:you have to use libGL.so
not libGL.a
n00b: How do I do this? And how can I continue the failed build (form rpm) ?
Post Reply