Error while compiling gl_init.cpp

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
Guest

Error while compiling gl_init.cpp

Post by Guest »

I've got a problem compiling vegastrike 0.4.1 on my system:
Linux 2.4.20-gentoo-r7 i686 AuthenticAMD GNU/Linux
gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)
glibc 2.3.2

Here's what happened:
gl_init.cpp: In function `void init_opengl_extensions()':
gl_init.cpp:106: `glXGetProcAddressARB' undeclared (first use this function)
gl_init.cpp:106: (Each undeclared identifier is reported only once for each
function it appears in.)
make[3]: *** [gl_init.o] Error 1
config.log wrote:This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:632: checking host system type
configure:653: checking target system type
configure:687: checking for a BSD compatible install
configure:740: checking whether build environment is sane
configure:797: checking whether make sets ${MAKE}
configure:843: checking for working aclocal-1.4
configure:856: checking for working autoconf
configure:869: checking for working automake-1.4
configure:882: checking for working autoheader
configure:895: checking for working makeinfo
configure:916: checking for gcc
configure:1029: checking whether the C compiler (gcc ) works
configure:1045: gcc -o conftest conftest.c 1>&5
configure:1071: checking whether the C compiler (gcc ) is a cross-compiler
configure:1076: checking whether we are using GNU C
configure:1085: gcc -E conftest.c
configure:1104: checking whether gcc accepts -g
configure:1146: gcc -c -falign-loops=4 conftest.c 1>&5
configure:1167: checking for c++
configure:1199: checking whether the C++ compiler (g++ ) works
configure:1215: g++ -o conftest conftest.C 1>&5
configure:1241: checking whether the C++ compiler (g++ ) is a cross-compiler
configure:1246: checking whether we are using GNU C++
configure:1255: g++ -E conftest.C
configure:1274: checking whether g++ accepts -g
configure:1306: checking how to run the C++ preprocessor
configure:1324: g++ -E conftest.C >/dev/null 2>conftest.out
configure:1362: checking for a BSD compatible install
configure:1415: checking whether ln -s works
configure:1438: checking for ranlib
configure:1467: checking how to run the C preprocessor
configure:1488: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1547: checking for ANSI C header files
configure:1560: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1627: gcc -o conftest conftest.c 1>&5
configure:1655: checking for dirent.h that defines DIR
configure:1668: gcc -c conftest.c 1>&5
configure:1693: checking for opendir in -ldir
configure:1712: gcc -o conftest conftest.c -ldir 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldir
collect2: ld returned 1 exit status
configure: failed program was:
#line 1701 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char opendir();

int main() {
opendir()
; return 0; }
configure:1779: checking for fcntl.h
configure:1789: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1779: checking for limits.h
configure:1789: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1779: checking for malloc.h
configure:1789: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1779: checking for sys/ioctl.h
configure:1789: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1779: checking for sys/time.h
configure:1789: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1779: checking for unistd.h
configure:1789: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1819: checking for working const
configure:1873: gcc -c conftest.c 1>&5
configure:1894: checking whether time.h and sys/time.h may both be included
configure:1908: gcc -c conftest.c 1>&5
configure:1929: checking for inline
configure:1943: gcc -c conftest.c 1>&5
configure:1969: checking for size_t
configure:2006: checking for getcwd
configure:2034: gcc -o conftest conftest.c 1>&5
configure:2006: checking for gettimeofday
configure:2034: gcc -o conftest conftest.c 1>&5
configure:2006: checking for strdup
configure:2034: gcc -o conftest conftest.c 1>&5
configure:2006: checking for select
configure:2034: gcc -o conftest conftest.c 1>&5
configure:2006: checking for socket
configure:2034: gcc -o conftest conftest.c 1>&5
configure:2006: checking for strstr
configure:2034: gcc -o conftest conftest.c 1>&5
configure:2018: warning: conflicting types for built-in function `strstr'
configure:2006: checking for access
configure:2034: gcc -o conftest conftest.c 1>&5
configure:2006: checking for lstat
configure:2034: gcc -o conftest conftest.c 1>&5
configure:2062: checking for finite
configure:2090: gcc -o conftest conftest.c 1>&5
configure:2062: checking for isnan
configure:2090: gcc -o conftest conftest.c 1>&5
configure:2117: checking for _finite
configure:2145: gcc -o conftest conftest.c 1>&5
/tmp/ccGne87f.o(.text+0x11): In function `main':
: undefined reference to `_finite'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2122 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _finite(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char _finite();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub__finite) || defined (__stub____finite)
choke me
#else
_finite();
#endif

; return 0; }
configure:2117: checking for _isnan
configure:2145: gcc -o conftest conftest.c 1>&5
/tmp/ccoppKYq.o(.text+0x11): In function `main':
: undefined reference to `_isnan'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2122 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _isnan(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char _isnan();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub__isnan) || defined (__stub____isnan)
choke me
#else
_isnan();
#endif

; return 0; }
configure:2173: checking for ieeefp.h
configure:2183: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2179:20: ieeefp.h: No such file or directory
configure: failed program was:
#line 2178 "configure"
#include "confdefs.h"
#include <ieeefp.h>
configure:2173: checking for zlib.h
configure:2183: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2254: checking for getpagesize
configure:2282: gcc -o conftest conftest.c 1>&5
configure:2307: checking for working mmap
configure:2455: gcc -o conftest conftest.c 1>&5
configure:2478: checking for 8-bit clean memcmp
configure:2496: gcc -o conftest conftest.c 1>&5
configure:2546: gcc -c conftest.c 1>&5
configure:2576: gcc -c -gdwarf-2 -g3 conftest.c 1>&5

configure:2678: checking for Win32 platform
configure:2709: checking for Linux platform
configure:2737: checking for MacOSX platform
configure:2781: checking for python
configure:2958: checking for sdl-config
configure:2993: checking for SDL - version >= 1.0.1
configure:3078: gcc -o conftest -I/usr/include/SDL -D_REENTRANT conftest.c -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread 1>&5
configure:3168: checking for SDL_JoystickOpen
configure:3196: gcc -o conftest conftest.c -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread 1>&5
configure:3240: checking for Mix_OpenAudio in -lSDL_mixer
configure:3259: gcc -o conftest conftest.c -lSDL_mixer -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread 1>&5
/usr/lib/libsmpeg-0.4.so.0: undefined reference to `_Unwind_Resume_or_Rethrow@GCC_3.3'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3248 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char Mix_OpenAudio();

int main() {
Mix_OpenAudio()
; return 0; }
configure:3330: checking for GL library
configure:3340: gcc -o conftest conftest.c -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lGL 1>&5
configure:3613: checking for glXGetProcAddressARB
configure:3641: gcc -o conftest conftest.c -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lGL 1>&5
configure:3711: checking for GLU library
configure:3721: gcc -o conftest conftest.c -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lGL -lGLU 1>&5
configure:4017: checking for GL/gl.h
configure:4027: gcc -E -DHAVE_SDL=1 -DSDL_WINDOWING=1 conftest.c >/dev/null 2>conftest.out
configure:4092: checking for GL/glext.h
configure:4102: gcc -E -DHAVE_SDL=1 -DSDL_WINDOWING=1 conftest.c >/dev/null 2>conftest.out
configure:4142: checking whether glext.h is recent enough
configure:4206: checking for glut32 library
configure:4222: gcc -o conftest -L/usr/X11R6/lib conftest.c -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lGL -lGLU -lglut32 -lXi -lXmu 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lglut32
collect2: ld returned 1 exit status
configure: failed program was:
#line 4215 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:4206: checking for glut library
configure:4222: gcc -o conftest -L/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lGL -lGLU -lglut -lXi -lXmu 1>&5

configure:4273: checking for GL/glut.h
configure:4283: gcc -E -DHAVE_SDL=1 -DSDL_WINDOWING=1 conftest.c >/dev/null 2>conftest.out
configure:4336: checking for expat library
configure:4346: gcc -o conftest -L/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -lexpat 1>&5
configure:4394: checking for expat.h
configure:4404: gcc -E -DHAVE_SDL=1 -DSDL_WINDOWING=1 conftest.c >/dev/null 2>conftest.out
configure:4458: checking for png library
configure:4468: gcc -o conftest -L/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -lpng 1>&5
configure:4543: checking for png.h
configure:4553: gcc -E -DHAVE_SDL=1 -DSDL_WINDOWING=1 conftest.c >/dev/null 2>conftest.out
configure:4614: checking for jpeg library
configure:4624: gcc -o conftest -L/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -ljpeg 1>&5
configure:4672: checking for jpeglib.h
configure:4682: gcc -E -DHAVE_SDL=1 -DSDL_WINDOWING=1 conftest.c >/dev/null 2>conftest.out
configure:4748: checking for openal library
configure:4758: gcc -o conftest -L/usr/X11R6/lib -L/usr/X11R6/lib conftest.c 1>&5
configure:4815: checking for AL/al.h
configure:4822: gcc -E -DHAVE_SDL=1 -DSDL_WINDOWING=1 conftest.c >/dev/null 2>conftest.out
configure:4837: checking for al.h
configure:4844: gcc -E -DHAVE_SDL=1 -DSDL_WINDOWING=1 conftest.c >/dev/null 2>conftest.out
configure:4840:18: al.h: No such file or directory
configure: failed program was:
#line 4839 "configure"
#include "confdefs.h"
#include <al.h>
configure:4925: checking for AL/alext.h
configure:4935: gcc -E -DHAVE_SDL=1 -DSDL_WINDOWING=1 conftest.c >/dev/null 2>conftest.out
Guest

Post by Guest »

err... nevermind...
Post Reply