On Tue, 2003-12-02 at 21:00, Chris Smith wrote: > I'm getting this error: > ====================================================== > Making all in aplay > make[1]: Entering directory `/usr/local/src/alsa-utils-1.0.0rc1/aplay' > if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -O2 > -fomit-frame-pointer -s -pipe -mcpu=pentium4 -march=pentium4 -mmmx -msse > -msse2 -MT aplay.o -MD -MP -MF ".deps/aplay.Tpo" \ > -c -o aplay.o `test -f 'aplay.c' || echo './'`aplay.c; \ > then mv -f ".deps/aplay.Tpo" ".deps/aplay.Po"; \ > else rm -f ".deps/aplay.Tpo"; exit 1; \ > fi > aplay.c: In function `set_params': > aplay.c:841: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes > integer from pointer without a cast > aplay.c:860: warning: passing arg 3 of > `snd_pcm_hw_params_set_period_time_near' makes integer from pointer without a > cast > aplay.c:863: warning: passing arg 3 of > `snd_pcm_hw_params_set_period_size_near' makes integer from pointer without a > cast > aplay.c:867: warning: passing arg 3 of > `snd_pcm_hw_params_set_buffer_time_near' makes integer from pointer without a > cast > aplay.c:870: warning: passing arg 3 of > `snd_pcm_hw_params_set_buffer_size_near' makes integer from pointer without a > cast > aplay.c:879: warning: passing arg 2 of `snd_pcm_hw_params_get_period_size' > from incompatible pointer type > aplay.c:879: too many arguments to function > `snd_pcm_hw_params_get_period_size' > aplay.c:880: too many arguments to function > `snd_pcm_hw_params_get_buffer_size' > aplay.c:886: too many arguments to function `snd_pcm_sw_params_get_xfer_align' > make[1]: *** [aplay.o] Error 1 > make[1]: Leaving directory `/usr/local/src/alsa-utils-1.0.0rc1/aplay' > make: *** [all-recursive] Error 1 > ======================================================= > Any ideas? > > Thanks. > > Chris
Since upgrading to the 1.0 release series, I've bben getting similar problems, but I have installed the correct library. This is what happens when I try to compile WINE's winealsa module: $ make gcc -c -I. -I. -I../../../include -I../../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o audio.o audio.c audio.c: In function `ALSA_TraceParameters': audio.c:316: too few arguments to function `snd_pcm_hw_params_get_format' audio.c:317: too few arguments to function `snd_pcm_hw_params_get_access' audio.c:372: too few arguments to function `snd_pcm_hw_params_get_channels' audio.c:372: too few arguments to function `snd_pcm_hw_params_get_channels_min' audio.c:372: too few arguments to function `snd_pcm_hw_params_get_channels_max' audio.c:373: too few arguments to function `snd_pcm_hw_params_get_buffer_size' audio.c:373: too few arguments to function `snd_pcm_hw_params_get_buffer_size_min' audio.c:373: too few arguments to function `snd_pcm_hw_params_get_buffer_size_max' audio.c:385: too few arguments to function `snd_pcm_hw_params_get_rate' audio.c:385: too few arguments to function `snd_pcm_hw_params_get_rate_min' audio.c:385: too few arguments to function `snd_pcm_hw_params_get_rate_max' audio.c:386: too few arguments to function `snd_pcm_hw_params_get_buffer_time' audio.c:386: too few arguments to function `snd_pcm_hw_params_get_buffer_time_min' audio.c:386: too few arguments to function `snd_pcm_hw_params_get_buffer_time_max' audio.c:387: too few arguments to function `snd_pcm_hw_params_get_periods' audio.c:387: too few arguments to function `snd_pcm_hw_params_get_periods_min' audio.c:387: too few arguments to function `snd_pcm_hw_params_get_periods_max' audio.c:388: too few arguments to function `snd_pcm_hw_params_get_period_size' audio.c:388: too few arguments to function `snd_pcm_hw_params_get_period_size_min' audio.c:388: too few arguments to function `snd_pcm_hw_params_get_period_size_max' audio.c:389: too few arguments to function `snd_pcm_hw_params_get_period_time' audio.c:389: too few arguments to function `snd_pcm_hw_params_get_period_time_min' audio.c:389: too few arguments to function `snd_pcm_hw_params_get_period_time_max' audio.c:390: too few arguments to function `snd_pcm_hw_params_get_tick_time' audio.c:390: too few arguments to function `snd_pcm_hw_params_get_tick_time_min'audio.c:390: too few arguments to function `snd_pcm_hw_params_get_tick_time_max'audio.c: In function `ALSA_WaveInit': audio.c:464: too few arguments to function `snd_pcm_hw_params_get_rate_min' audio.c:465: too few arguments to function `snd_pcm_hw_params_get_rate_max' audio.c:466: too few arguments to function `snd_pcm_hw_params_get_channels_min' audio.c:466: too few arguments to function `snd_pcm_hw_params_get_channels_max' audio.c:496: too few arguments to function `snd_pcm_hw_params_get_channels_min' audio.c:497: too few arguments to function `snd_pcm_hw_params_get_channels_max' audio.c:498: too few arguments to function `snd_pcm_hw_params_get_channels_min' audio.c:498: too few arguments to function `snd_pcm_hw_params_get_channels_max' audio.c: In function `wodPlayer_DSPWait': audio.c:744: too few arguments to function `snd_pcm_hw_params_get_period_time' audio.c: In function `wodOpen': audio.c:1171: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes pointer from integer without a cast audio.c:1183: warning: passing arg 3 of `snd_pcm_hw_params_set_buffer_time_near' makes pointer from integer without a cast audio.c:1184: warning: passing arg 3 of `snd_pcm_hw_params_set_period_time_near' makes pointer from integer without a cast audio.c:1188: too few arguments to function `snd_pcm_hw_params_get_period_size' audio.c:1189: too few arguments to function `snd_pcm_hw_params_get_buffer_size' audio.c: In function `DSDB_MMAPCopy': audio.c:1738: too few arguments to function `snd_pcm_hw_params_get_channels' audio.c:1739: too few arguments to function `snd_pcm_hw_params_get_format' audio.c:1740: too few arguments to function `snd_pcm_hw_params_get_period_size' audio.c: In function `DSDB_CreateMMAP': audio.c:1782: too few arguments to function `snd_pcm_hw_params_get_format' audio.c:1783: too few arguments to function `snd_pcm_hw_params_get_buffer_size' audio.c:1784: too few arguments to function `snd_pcm_hw_params_get_channels' audio.c: In function `IDsDriverBufferImpl_GetPosition': audio.c:1938: too few arguments to function `snd_pcm_hw_params_get_period_size' make: *** [audio.o] Error 1 I also get similar build problems with SDL and alsaplayer. I'm using slackware 9.1+gcc 3.2.3. Everything worked fine until I upgraded to the 1.0pre1, but the problems remained with pre3 and rc1. There is no trace of previous versions that I can find. In the case of alsaplayer, it identifies alsa as 0.5x, even though that has never even been on this system. Has there been some API change, or is this a configuration issue? I don't see anyone else having this problem, so I would assume configuration. ALthough I have never had any problem like this before and always update to the latest version of ALSA as soon as I can. Thanks -- Ioan Rogers <[EMAIL PROTECTED]> MSN: [EMAIL PROTECTED] ICQ: 30339267
signature.asc
Description: This is a digitally signed message part