Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] Re: (PR#8549) alsa compile error
Home

[Freeciv-Dev] Re: (PR#8549) alsa compile error

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: kaufman@xxxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#8549) alsa compile error
From: "Egor Vyscrebentsov" <evyscr@xxxxxxxxx>
Date: Tue, 27 Apr 2004 05:26:50 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8549 >

On Wed, 21 Apr 2004
Vasco Alexandre da Silva Costa <vasc@xxxxxxxxxxxxxx> wrote:

> 
> On Wed, 21 Apr 2004, Per I. Mathisen wrote:
> >
> > On Mon, 19 Apr 2004, Mike Kaufman wrote:
> > > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./include -I../common
> > > -I../common/aicore -I../intl -I./agents     -g -O2 -Wall -Wpointer-arith
> > > -Wcast-align -Wmissing-prototypes -Wmissing-declarations -MT audio_alsa.o
> > > -MD -MP -MF ".deps/audio_alsa.Tpo" \
> > > -c -o audio_alsa.o `test -f 'audio_alsa.c' || echo './'`audio_alsa.c; \
> > > then mv -f ".deps/audio_alsa.Tpo" ".deps/audio_alsa.Po"; \
> > > else rm -f ".deps/audio_alsa.Tpo"; exit 1; \
> > > fi
> > > audio_alsa.c: In function `set_hw_params':
> > > audio_alsa.c:127: warning: passing arg 3 of
> > > `snd_pcm_hw_params_set_rate_near' makes integer from pointer without a 
> > > cast
> > > audio_alsa.c:136: warning: passing arg 3 of
> > > `snd_pcm_hw_params_set_period_time_near' makes integer from pointer 
> > > without
> > > a cast
> > > audio_alsa.c:137: warning: passing arg 2 of
> > > `snd_pcm_hw_params_get_period_size' from incompatible pointer type
> > > audio_alsa.c:137: error: too many arguments to function
> > > `snd_pcm_hw_params_get_period_size'
> > > make[3]: *** [audio_alsa.o] Error 1
> >
> > No clue. What version of ALSA do you have?
> 
> It works fine here on Fedora Core 2 test 2. I guess it is some sort of
> ALSA API change.
> 
> ---
> Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa
> 

Having absolutely the same problem.

[evyscr@tkv alsa]$ rpm -q libalsa2
libalsa2-0.9.0rc7-alt1


From /usr/include/alsa/pcm.h

  int snd_pcm_hw_params_get_period_size(const snd_pcm_hw_params_t *params, 
snd_pcm_uframes_t *frames, int *dir) 
__attribute__ ((weak, alias ("__snd_pcm_hw_params_get_period_size")));
  int snd_pcm_hw_params_get_period_size_min(const snd_pcm_hw_params_t *params, 
snd_pcm_uframes_t *frames, int *dir) 
__attribute__ ((weak, alias ("__snd_pcm_hw_params_get_period_size_min")));
  int snd_pcm_hw_params_get_period_size_max(const snd_pcm_hw_params_t *params, 
snd_pcm_uframes_t *frames, int *dir) 
__attribute__ ((weak, alias ("__snd_pcm_hw_params_get_period_size_max")));

  snd_pcm_sframes_t snd_pcm_hw_params_get_period_size(const snd_pcm_hw_params_t 
*params, int *dir);
  snd_pcm_uframes_t snd_pcm_hw_params_get_period_size_min(const 
snd_pcm_hw_params_t *params, int *dir);
  snd_pcm_uframes_t snd_pcm_hw_params_get_period_size_max(const 
snd_pcm_hw_params_t *params, int *dir);

Thanks, evyscr.




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