Unable to compile 1.2.6 with alsa >= 1.0.0rc1

I’m not able to compile libsdl with alsa >= 1.0.0rc1

creating libaudio_dma.la
(cd .libs && rm -f libaudio_dma.la && ln -s …/libaudio_dma.la
libaudio_dma.la)
make[3]: Leaving directory
/var/tmp/portage/libsdl-1.2.6-r2/work/SDL-1.2.6/src/audio/dma' Making all in alsa make[3]: Entering directory/var/tmp/portage/libsdl-1.2.6-r2/work/SDL-1.2.6/src/audio/alsa’
/bin/sh …/…/…/libtool --mode=compile gcc -DPACKAGE=“SDL”
-DVERSION=“1.2.6” -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I.
-march=i686 -O3 -pipe -ffast-math -fomit-frame-pointer -Wall
-DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN -DOSS_SUPPORT
-DALSA_SUPPORT -DARTSC_SUPPORT -DARTSC_DYNAMIC=libartsc.so.0
-I/usr/kde/3.1/include/artsc -DNAS_SUPPORT -I/usr/X11R6/include
-DENABLE_X11 -DXTHREADS -I./include -I./src/video -DXFREE86_VM
-DXFREE86_VMGAMMA -DXFREE86_XV -DENABLE_SVGALIB -DHAVE_OPENGL
-DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS
-DPTHREAD_NO_RECURSIVE_MUTEX -I…/…/…/include -I…/…/…/include/SDL
-I…/…/…/src -I…/…/…/src/linux -I…/…/…/src/main -I…/…/…/src/audio
-I…/…/…/src/video -I…/…/…/src/video/XFree86/extensions
-I…/…/…/src/events -I…/…/…/src/joystick -I…/…/…/src/cdrom
-I…/…/…/src/thread -I…/…/…/src/timer -I…/…/…/src/endian
-I…/…/…/src/file -c SDL_alsa_audio.c
mkdir .libs
gcc -DPACKAGE=“SDL” -DVERSION=“1.2.6” -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1
-I. -I. -march=i686 -O3 -pipe -ffast-math -fomit-frame-pointer -Wall
-DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN -DOSS_SUPPORT
-DALSA_SUPPORT -DARTSC_SUPPORT -DARTSC_DYNAMIC=libartsc.so.0
-I/usr/kde/3.1/include/artsc -DNAS_SUPPORT -I/usr/X11R6/include -DENABLE_X11
-DXTHREADS -I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA
-DXFREE86_XV -DENABLE_SVGALIB -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT
-DSDL_USE_PTHREADS -DPTHREAD_NO_RECURSIVE_MUTEX -I…/…/…/include
-I…/…/…/include/SDL -I…/…/…/src -I…/…/…/src/linux
-I…/…/…/src/main -I…/…/…/src/audio -I…/…/…/src/video
-I…/…/…/src/video/XFree86/extensions -I…/…/…/src/events
-I…/…/…/src/joystick -I…/…/…/src/cdrom -I…/…/…/src/thread
-I…/…/…/src/timer -I…/…/…/src/endian -I…/…/…/src/file -c
SDL_alsa_audio.c -fPIC -DPIC -o .libs/SDL_alsa_audio.lo
SDL_alsa_audio.c: In function ALSA_OpenAudio': SDL_alsa_audio.c:272: too few arguments to functionsnd_pcm_hw_params_get_channels’
SDL_alsa_audio.c:282: warning: passing arg 3 of
snd_pcm_hw_params_set_rate_near' makes pointer from integer without a cast SDL_alsa_audio.c:292: warning: passing arg 3 ofsnd_pcm_hw_params_set_period_size_near’ makes pointer from integer without
a cast
SDL_alsa_audio.c:294: warning: passing arg 3 of
snd_pcm_hw_params_set_periods_near' makes pointer from integer without a cast make[3]: *** [SDL_alsa_audio.lo] Error 1 make[3]: Leaving directory/var/tmp/portage/libsdl-1.2.6-r2/work/SDL-1.2.6/src/audio/alsa’
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
/var/tmp/portage/libsdl-1.2.6-r2/work/SDL-1.2.6/src/audio' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/var/tmp/portage/libsdl-1.2.6-r2/work/SDL-1.2.6/src’
make: *** [all-recursive] Error 1

Martin Holzer
sVrmARTY-/irc.freenode.net

Bug-Wrangler, Gentoo Linux

Quoth Martin Holzer , on Wed 03 Dec 2003:

I’m not able to compile libsdl with alsa >= 1.0.0rc1

[pile of text cut]

SDL_alsa_audio.c:272: too few arguments to function
snd_pcm_hw_params_get_channels' SDL_alsa_audio.c:282: warning: passing arg 3 ofsnd_pcm_hw_params_set_rate_near’ makes pointer from integer without a cast
SDL_alsa_audio.c:292: warning: passing arg 3 of
snd_pcm_hw_params_set_period_size_near' makes pointer from integer without a cast SDL_alsa_audio.c:294: warning: passing arg 3 ofsnd_pcm_hw_params_set_periods_near’ makes pointer from integer without a
cast

From the NOTES in alsa-lib-1.0.0rc2:

>From the binary compatibility view, there is no change.  For compilation,
1.0 ALSA applications do not need any change.  The older applications
must use this include sequence:

#define ALSA_PCM_OLD_HW_PARAMS_API
#define ALSA_PCM_NEW_HW_PARAMS_API
#include <alsa/asoundlib.h>

… which seems as though it might be the problem.

—> Drake Wilson
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031207/e23e962a/attachment.pgp