Problems with AUDStopAllSounds() on Mandrake 9.1...

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
Wolverine

Problems with AUDStopAllSounds() on Mandrake 9.1...

Post by Wolverine »

Compilation results in failing to build vegastrike 0.4.1 with:

make[3]: Entering directory `/home/games/vegastrike/src/aldrv'
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/boost129 -
I/usr/local/include -I/usr/include/python2.2 -DHAVE_PYTHON=1 -DUSE_BOOST_129=1
-pipe -O3 -fexpensive-optimizations -fomit-frame-pointer -Wall -ffast-math -pipe -c al_init.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/boost129 I/usr/local/include -I/usr/include/python2.2 -DHAVE_PYTHON=1 -DUSE_BOOST_129= -pipe -O3 -fexpensive-optimizations -fomit-frame-pointer -Wall -ffast-math -pipe -c al_listen.cpp
al_listen.cpp: In function `float AUDGetListenerGain()':
al_listen.cpp:176: warning: no return statement in function returning non-void
al_listen.cpp:176: warning: control reaches end of non-void function
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/boost129 I/usr/local/include -I/usr/include/python2.2 -DHAVE_PYTHON=1 -DUSE_BOOST_129= -pipe -O3 -fexpensive-optimizations -fomit-frame-pointer -Wall -ffast-math -pipe -c al_sound.cpp
al_sound.cpp: In function `void AUDStopAllSounds()':
al_sound.cpp:311: `sounds' undeclared (first use this function)
al_sound.cpp:311: (Each undeclared identifier is reported only once for each fuction it appears in.)
make[3]: *** [al_sound.o] Błąd 1
make[3]: Leaving directory `/home/games/vegastrike/src/aldrv'
make[2]: *** [all-recursive] Błąd 1
make[2]: Leaving directory `/home/games/vegastrike/src'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/home/games/vegastrike'
make: *** [all-recursive-am] Błąd 2

What's going on? I've managed to overcome glXProcAddressARB problem, but then compilation fails on conditions above. Could anyone help how to solve it?
lopik

my solve

Post by lopik »

Hi, i had the same problem, it helped to change function in al_sound.cpp in following way:
( addend #ifdef HAVE_AL and #endif )

void AUDSoundGain (const int sound, const float gain) {
#ifdef HAVE_AL
if (sound>=0&&sound<(int)sounds.size()&&sounds[sound].source) {
alSourcef(sounds[sound].source,AL_GAIN,gain);
// alSourcefv(sounds[sound].source,AL_VELOCITY,v);
}
#endif
}
Wolverine

Post by Wolverine »

Errr... I already have that in my sources. And it's not working! :( Could anybody help with this stuff? I really wanna see and play this game...
Guest

Post by Guest »

Here is my config.log file. Maybe this can help.

Code: Select all

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 (c++  ) works
configure:1215: c++ -o conftest    conftest.C  1>&5
configure:1241: checking whether the C++ compiler (c++  ) is a cross-compiler
configure:1246: checking whether we are using GNU C++
configure:1255: c++ -E conftest.C
configure:1274: checking whether c++ accepts -g
configure:1306: checking how to run the C++ preprocessor
configure:1324: c++ -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/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/cc3DyQAk.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/ccmDa6ZB.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:3330: checking for GL library
configure:3340: gcc -o conftest    conftest.c   -lutil  -lGL 1>&5
configure:3613: checking for glXGetProcAddressARB
configure:3641: gcc -o conftest    conftest.c   -lutil  -lGL 1>&5
configure:3711: checking for GLU library
configure:3721: gcc -o conftest    conftest.c   -lutil  -lGL  -lGLU 1>&5
/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
configure: failed program was:
#line 3714 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3739: checking for GLU library (with pthreads)
configure:3749: gcc -o conftest    conftest.c   -lutil  -lGL  -lGLU -lpthread 1>&5
/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
configure: failed program was:
#line 3742 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3778: checking for MesaGLU library
configure:3788: gcc -o conftest    conftest.c   -lutil  -lGL  -lMesaGLU 1>&5
/usr/bin/ld: cannot find -lMesaGLU
collect2: ld returned 1 exit status
configure: failed program was:
#line 3781 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3806: checking for MesaGLU library (with pthreads)
configure:3816: gcc -o conftest    conftest.c   -lutil  -lGL  -lMesaGLU -lpthread 1>&5
/usr/bin/ld: cannot find -lMesaGLU
collect2: ld returned 1 exit status
configure: failed program was:
#line 3809 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3778: checking for openglu32 library
configure:3788: gcc -o conftest    conftest.c   -lutil  -lGL  -lopenglu32 1>&5
/usr/bin/ld: cannot find -lopenglu32
collect2: ld returned 1 exit status
configure: failed program was:
#line 3781 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3806: checking for openglu32 library (with pthreads)
configure:3816: gcc -o conftest    conftest.c   -lutil  -lGL  -lopenglu32 -lpthread 1>&5
/usr/bin/ld: cannot find -lopenglu32
collect2: ld returned 1 exit status
configure: failed program was:
#line 3809 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3855: checking for GLU library
configure:3865: gcc -o conftest    conftest.c   -lutil  -lGL -L/usr/X11R6/lib -lGLU 1>&5
configure:4017: checking for GL/gl.h
configure:4027: gcc -E    conftest.c >/dev/null 2>conftest.out
configure:4092: checking for GL/glext.h
configure:4102: gcc -E    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  -lGL -L/usr/X11R6/lib -lGLU  -lglut32 -lXi -lXmu 1>&5
/usr/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  -lGL -L/usr/X11R6/lib -lGLU  -lglut -lXi -lXmu 1>&5
configure:4273: checking for GL/glut.h
configure:4283: gcc -E     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       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
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng.so: undefined reference to `deflate'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng.so: undefined reference to `inflate'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng.so: undefined reference to `inflateInit_'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng.so: undefined reference to `crc32'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng.so: undefined reference to `pow'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng.so: undefined reference to `deflateInit2_'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng.so: undefined reference to `inflateReset'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng.so: undefined reference to `deflateReset'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng.so: undefined reference to `inflateEnd'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
configure: failed program was:
#line 4461 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:4458: checking for png12 library
configure:4468: gcc -o conftest   -L/usr/X11R6/lib -L/usr/X11R6/lib  conftest.c  -lpng12 1>&5
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng12.so: undefined reference to `deflate'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng12.so: undefined reference to `inflate'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng12.so: undefined reference to `inflateInit_'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng12.so: undefined reference to `crc32'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng12.so: undefined reference to `pow'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng12.so: undefined reference to `deflateInit2_'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng12.so: undefined reference to `inflateReset'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng12.so: undefined reference to `deflateReset'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng12.so: undefined reference to `inflateEnd'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../libpng12.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
configure: failed program was:
#line 4461 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:4490: checking for png -lz -lm library
configure:4500: gcc -o conftest   -L/usr/X11R6/lib -L/usr/X11R6/lib  conftest.c  -lpng -lz -lm 1>&5
configure:4543: checking for png.h
configure:4553: gcc -E        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         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        conftest.c >/dev/null 2>conftest.out
configure:4837: checking for al.h
configure:4844: gcc -E        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        conftest.c >/dev/null 2>conftest.out

Guest

Post by Guest »

Guess I'm making progress in getting VegaStrike run :D

It was really stupid problem. I had OpenAL library, but haven't got developement libraries for it. I've managed to install OpenAL Devel from MDK-Contrib CD#2. VS compiled then almost without any problems (however I needed devel rpms for sdl libs). I was forced to compile under boost128 instead of boost129.

But now I've come to another problem, that in my opinion is real pain in the a**. Linking returns so many errors I can't even trace what's causing them. However I'll post this problem in another topic.

This topic should be considered as CLOSED.

EOT.
Post Reply