Alsa compilation error

James Courtier-Dutton James at superbug.demon.co.uk
Thu May 13 09:39:42 CDT 2004


Francois Gouget wrote:
> 
> revision 1.42
> date: 2004/05/05 22:03:48;  author: julliard;  state: Exp;  lines: +143 -67
> James Courtier-Dutton <James at superbug.demon.co.uk>
> Updated to the new alsa api.
> 
> This patch causes a compilation error on my build machine:
> alsa-headers 0.9+0beta12-3
> 
> 
> gcc -c -I. -I. -I../../../include -I../../../include  -D__WINESRC__
> -D_REENTRANT -fPIC -Wall -pipe -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:398: too many arguments to function `snd_pcm_hw_params_get_access'
> audio.c:399: too many arguments to function `snd_pcm_hw_params_get_format'
> audio.c:448: too many arguments to function `snd_pcm_hw_params_get_channels'
> audio.c:452: too many arguments to function `snd_pcm_hw_params_get_channels_min'
> audio.c:453: too many arguments to function `snd_pcm_hw_params_get_channels_max'
> audio.c:462: too many arguments to function `snd_pcm_hw_params_get_buffer_size'
> audio.c:466: too many arguments to function `snd_pcm_hw_params_get_buffer_size_min'
> ....
> 
> It looks like it removed compatibility macros. Why?
> 

You have to use a version of alsa that came out after 19th June 2002
I.E. 0.9.0rc2 or above.
The version of alsa you are using came out in 26th Feb 2002

Just upgrade your alsa version to a NON-BETA version.

Cheers
James




More information about the wine-devel mailing list