Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] (PR#6201) 1.14: SDL mixer compilation problem
Home

[Freeciv-Dev] (PR#6201) 1.14: SDL mixer compilation problem

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#6201) 1.14: SDL mixer compilation problem
From: "Guest" <rt-guest@xxxxxxxxxxxxxx>
Date: Mon, 13 Oct 2003 14:32:03 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[jdorje - Fri Sep 19 15:24:27 2003]:

> Do you have the same problem with the CVS snapshots?
> 
> ftp://ftp.freeciv.org/freeciv/latest/
> 
> jason

Sorry I havn't replied before, but I'm not familiar with this RT system.
I have just tried it again with CVS-Oct-12, and I have the exact same
problem. The ./configure script says everything is fine (in particular,
it finds SDL_mixer.h), but 'make' (which is gmake) fails to compile it.
The error I get is the following:

--- (cut and past) ---

make[3]: Entering directory `/freeciv-cvs-Oct-12/client'
source='audio_esd.c' object='audio_esd.o' libtool=no \
depfile='.deps/audio_esd.Po' tmpdepfile='.deps/audio_esd.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./include -I../common
-I../common/aicore -I../intl -I./agents   -I/site/include
-I/site/include/SDL -D_REENTRANT    -g -O2 -Wall -Wpointer-arith
-Wcast-align -Wmissing-prototypes -Wmissing-declarations -c `test -f
'audio_esd.c' || echo './'`audio_esd.c
source='audio_sdl.c' object='audio_sdl.o' libtool=no \
depfile='.deps/audio_sdl.Po' tmpdepfile='.deps/audio_sdl.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./include -I../common
-I../common/aicore -I../intl -I./agents   -I/site/include
-I/site/include/SDL -D_REENTRANT    -g -O2 -Wall -Wpointer-arith
-Wcast-align -Wmissing-prototypes -Wmissing-declarations -c `test -f
'audio_sdl.c' || echo './'`audio_sdl.c
audio_sdl.c:22:23: SDL_mixer.h: No such file or directory
audio_sdl.c:32: parse error before "Mix_Chunk"
audio_sdl.c:32: warning: no semicolon at end of struct or union
audio_sdl.c:34: parse error before '}' token
audio_sdl.c:36: parse error before '*' token
audio_sdl.c:36: warning: type defaults to `int' in declaration of `mus'
audio_sdl.c:36: warning: data definition has no type or storage class
audio_sdl.c:37: `MIX_CHANNELS' undeclared here (not in a function)
audio_sdl.c: In function `my_play':
audio_sdl.c:46: `Mix_Chunk' undeclared (first use in this function)
audio_sdl.c:46: (Each undeclared identifier is reported only once
audio_sdl.c:46: for each function it appears in.)
audio_sdl.c:46: `wave' undeclared (first use in this function)
audio_sdl.c:54: warning: implicit declaration of function `Mix_HaltMusic'
audio_sdl.c:55: warning: implicit declaration of function `Mix_FreeMusic'
audio_sdl.c:58: warning: implicit declaration of function `Mix_LoadMUS'
audio_sdl.c:58: warning: assignment makes pointer from integer without a
cast
audio_sdl.c:63: warning: implicit declaration of function `Mix_PlayMusic'
audio_sdl.c:66: warning: implicit declaration of function `Mix_VolumeMusic'
audio_sdl.c:66: `MIX_MAX_VOLUME' undeclared (first use in this function)
audio_sdl.c:71: `MIX_CHANNELS' undeclared (first use in this function)
audio_sdl.c:75: warning: implicit declaration of function `Mix_PlayChannel'
audio_sdl.c:81: warning: implicit declaration of function `Mix_LoadWAV'
audio_sdl.c:91: warning: implicit declaration of function `Mix_FreeChunk'
audio_sdl.c: In function `my_stop':
audio_sdl.c:115: warning: implicit declaration of function
`Mix_FadeOutMusic'
audio_sdl.c: In function `my_wait':
audio_sdl.c:125: warning: implicit declaration of function `Mix_Playing'
audio_sdl.c: In function `my_shutdown':
audio_sdl.c:171: `MIX_CHANNELS' undeclared (first use in this function)
audio_sdl.c:178: warning: implicit declaration of function `Mix_CloseAudio'
audio_sdl.c: In function `my_init':
audio_sdl.c:188: `MIX_DEFAULT_FREQUENCY' undeclared (first use in this
function)
audio_sdl.c:189: `MIX_DEFAULT_FORMAT' undeclared (first use in this
function)
audio_sdl.c:197: warning: implicit declaration of function `Mix_OpenAudio'
audio_sdl.c:204: warning: implicit declaration of function
`Mix_AllocateChannels'
audio_sdl.c:204: `MIX_CHANNELS' undeclared (first use in this function)
audio_sdl.c:209: warning: implicit declaration of function `Mix_Volume'
audio_sdl.c:209: `MIX_MAX_VOLUME' undeclared (first use in this function)
/usr/include/stdlib.h: At top level:
audio_sdl.c:37: storage size of `samples' isn't known
audio_sdl.c:37: warning: `samples' defined but not used
make[3]: *** [audio_sdl.o] Error 1
make[3]: Leaving directory `/freeciv-cvs-Oct-12/client'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/freeciv-cvs-Oct-12/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/freeciv-cvs-Oct-12'
make: *** [all] Error 2

--- (cut and past ended) ---

After 'cp /usr/include/SDL/* client' it compile without error and I can
play.

jj


[Prev in Thread] Current Thread [Next in Thread]