Cant compile SDL in slack10 failing in compile

Im not a programmer, no have a clue what to be looking for if anyone can
help pls do it would be greately appreciated, Im hoping to start playing
NWN under linux here is the compile error.

gcc -DPACKAGE=“SDL” -DVERSION=“1.2.5” -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DUSE_ASMBLIT -I./hermes -I…/…/…/src/hermes
-DOSS_SUPPORT -DALSA_SUPPORT -DARTSC_SUPPORT -I/opt/kde/include/artsc
-pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-DESD_SUPPORT -I/usr/X11R6/include -DENABLE_X11 -I./include
-I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE
-DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -Isrc/video -DENABLE_DGA
-DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT
-DSDL_USE_PTHREADS -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: error: 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/root/SDL-1.2.5/src/audio/alsa’
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /root/SDL-1.2.5/src/audio' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/root/SDL-1.2.5/src’
make: *** [all-recursive] Error 1

if anyone has a clue what needs to be done, or code changes to fix this.
TYVM ahead of time.

sycholic wrote:

Im not a programmer, no have a clue what to be looking for if anyone
can help pls do it would be greately appreciated, Im hoping to start
playing NWN under linux here is the compile error.

gcc -DPACKAGE=“SDL” -DVERSION=“1.2.5” -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DUSE_ASMBLIT -I./hermes -I…/…/…/src/hermes
-DOSS_SUPPORT -DALSA_SUPPORT -DARTSC_SUPPORT -I/opt/kde/include/artsc
-pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-DESD_SUPPORT -I/usr/X11R6/include -DENABLE_X11 -I./include
-I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE
-DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -Isrc/video
-DENABLE_DGA -DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS
-D_REENTRANT -DSDL_USE_PTHREADS -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: error: 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/root/SDL-1.2.5/src/audio/alsa’
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /root/SDL-1.2.5/src/audio' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/root/SDL-1.2.5/src’
make: *** [all-recursive] Error 1

if anyone has a clue what needs to be done, or code changes to fix
this. TYVM ahead of time.

Update to latest SDL (1.2.8) where this is fixed.

Stephane