[CF List] Error compiling client

Olle Viksten olle at viksten.com
Tue Jul 9 01:57:10 CDT 2002


When I try to compile the 1.3.0 client I get the follwing message, can someone 
tell me what's wrong?:

making all in sound-src...
make[1]: Entering directory 
`/data1/bygg/crossfire/crossfire-client-1.3.0/sound-src'
/usr/bin/perl -p -e 
s#/usr/local/lib/sounds#/usr/local/share/crossfire-client/sounds# sounds.dist 
>
     
      sounds
     
     /usr/bin/perl ../utils/deftoheader.pl sounds soundsdef.h def_sounds
199 lines processed
gcc -g -O2 -DALSA_SOUND -Wall   -I. -I.. -I../common -I. -c cfsndserv.c
In file included from cfsndserv.c:87:
/usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, 
use <alsa/asoundlib.h> instead.
cfsndserv.c: In function `init_audio':
cfsndserv.c:283: `snd_pcm_channel_params_t' undeclared (first use in this 
function)
cfsndserv.c:283: (Each undeclared identifier is reported only once
cfsndserv.c:283: for each function it appears in.)
cfsndserv.c:283: parse error before `params'
cfsndserv.c:285: `SND_PCM_OPEN_PLAYBACK' undeclared (first use in this 
function)
cfsndserv.c:285: warning: passing arg 2 of `snd_pcm_open' makes pointer from 
integer without a cast
cfsndserv.c:290: `params' undeclared (first use in this function)
cfsndserv.c:290: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this 
function)
cfsndserv.c:291: `SND_PCM_MODE_BLOCK' undeclared (first use in this function)
cfsndserv.c:294: `SND_PCM_SFMT_S8' undeclared (first use in this function)
cfsndserv.c:294: `SND_PCM_SFMT_U8' undeclared (first use in this function)
cfsndserv.c:296: `SND_PCM_SFMT_S16_LE' undeclared (first use in this function)
cfsndserv.c:296: `SND_PCM_SFMT_U16_LE' undeclared (first use in this function)
cfsndserv.c:304: warning: implicit declaration of function 
`snd_pcm_channel_params'
cfsndserv.c:318: warning: unreachable code at beginning of switch statement
cfsndserv.c:342: warning: implicit declaration of function 
`snd_pcm_file_descriptor'
cfsndserv.c:343: warning: implicit declaration of function 
`snd_pcm_nonblock_mode'
cfsndserv.c: In function `audio_play':
cfsndserv.c:350: warning: implicit declaration of function `snd_pcm_write'
make[1]: *** [cfsndserv.o] Error 1
make[1]: Leaving directory 
`/data1/bygg/crossfire/crossfire-client-1.3.0/sound-src'
make: *** [all] Error 2


    
    


More information about the crossfire mailing list