PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem mit alsa bei der SDL-Compilierung!



-Hendrik-
19.08.02, 22:35
Moin,

ich compilier mir hier gerade SDL 1.2.4 und bin leider auf ein Problem gestoßen.
./configure läuft noch ohne probs durch, aber nach dem make && make install bekomm ich diese Fehlermeldungen:


In file included from SDL_alsa_audio.h:27,
from SDL_alsa_audio.c:42:
/usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead.
SDL_alsa_audio.c:69: parse error before `*'
SDL_alsa_audio.c: In function `init_pcm_cparams':
SDL_alsa_audio.c:71: `snd_pcm_channel_params_t' undeclared (first use in this function)
SDL_alsa_audio.c:71: (Each undeclared identifier is reported only once
SDL_alsa_audio.c:71: for each function it appears in.)
SDL_alsa_audio.c:71: `cparams' undeclared (first use in this function)
SDL_alsa_audio.c:73: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
SDL_alsa_audio.c:74: `SND_PCM_MODE_BLOCK' undeclared (first use in this function)
SDL_alsa_audio.c:76: `SND_PCM_STOP_STOP' undeclared (first use in this function)
SDL_alsa_audio.c:77: `SND_PCM_SFMT_S16_LE' undeclared (first use in this function)
SDL_alsa_audio.c: In function `Audio_Available':
SDL_alsa_audio.c:98: `snd_pcm_channel_params_t' undeclared (first use in this function)
SDL_alsa_audio.c:98: parse error before `cparams'
SDL_alsa_audio.c:106: `cparams' undeclared (first use in this function)
SDL_alsa_audio.c:108: `SND_PCM_OPEN_PLAYBACK' undeclared (first use in this function)
SDL_alsa_audio.c:108: `SND_PCM_OPEN_NONBLOCK' undeclared (first use in this function)
SDL_alsa_audio.c:108: warning: passing arg 2 of `snd_pcm_open' makes pointer from integer without a cast
SDL_alsa_audio.c:111: warning: implicit declaration of function `snd_pcm_plugin_params'
SDL_alsa_audio.c: At top level:
SDL_alsa_audio.c:246: parse error before `cstatus'
SDL_alsa_audio.c:246: warning: type defaults to `int' in declaration of `cstatus'
SDL_alsa_audio.c:246: warning: data definition has no type or storage class
SDL_alsa_audio.c: In function `PCM_PlayAudio':
SDL_alsa_audio.c:254: warning: implicit declaration of function `snd_pcm_plugin_write'
SDL_alsa_audio.c:269: warning: implicit declaration of function `snd_pcm_plugin_status'
SDL_alsa_audio.c:274: request for member `status' in something not a structure or union
SDL_alsa_audio.c:274: `SND_PCM_STATUS_UNDERRUN' undeclared (first use in this function)
SDL_alsa_audio.c:275: request for member `status' in something not a structure or union
SDL_alsa_audio.c:275: `SND_PCM_STATUS_READY' undeclared (first use in this function)
SDL_alsa_audio.c:280: warning: implicit declaration of function `snd_pcm_plugin_prepare'
SDL_alsa_audio.c:280: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
SDL_alsa_audio.c: In function `PCM_CloseAudio':
SDL_alsa_audio.c:317: warning: implicit declaration of function `snd_pcm_plugin_flush'
SDL_alsa_audio.c:317: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
SDL_alsa_audio.c: In function `PCM_OpenAudio':
SDL_alsa_audio.c:334: `snd_pcm_channel_params_t' undeclared (first use in this function)
SDL_alsa_audio.c:334: parse error before `cparams'
SDL_alsa_audio.c:335: `snd_pcm_channel_setup_t' undeclared (first use in this function)
SDL_alsa_audio.c:341: `cparams' undeclared (first use in this function)
SDL_alsa_audio.c:348: `SND_PCM_OPEN_PLAYBACK' undeclared (first use in this function)
SDL_alsa_audio.c:348: `SND_PCM_OPEN_NONBLOCK' undeclared (first use in this function)
SDL_alsa_audio.c:348: warning: passing arg 2 of `snd_pcm_open' makes pointer from integer without a cast
SDL_alsa_audio.c:376: `SND_PCM_SFMT_U8' undeclared (first use in this function)
SDL_alsa_audio.c:380: `SND_PCM_SFMT_S8' undeclared (first use in this function)
SDL_alsa_audio.c:384: `SND_PCM_SFMT_S16_LE' undeclared (first use in this function)
SDL_alsa_audio.c:388: `SND_PCM_SFMT_S16_BE' undeclared (first use in this function)
SDL_alsa_audio.c:392: `SND_PCM_SFMT_U16_LE' undeclared (first use in this function)
SDL_alsa_audio.c:396: `SND_PCM_SFMT_U16_BE' undeclared (first use in this function)
SDL_alsa_audio.c:433: `csetup' undeclared (first use in this function)
SDL_alsa_audio.c:434: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
SDL_alsa_audio.c:435: warning: implicit declaration of function `snd_pcm_plugin_setup'
SDL_alsa_audio.c:490: warning: implicit declaration of function `snd_pcm_file_descriptor'
SDL_alsa_audio.c:501: warning: implicit declaration of function `snd_pcm_playback_go'
make[3]: *** [SDL_alsa_audio.lo] Fehler 1
make[3]: Verlassen des Verzeichnisses Verzeichnis »/home/hendrik/Desktop/SDL-1.2.4/src/audio/alsa«
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis »/home/hendrik/Desktop/SDL-1.2.4/src/audio«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis »/home/hendrik/Desktop/SDL-1.2.4/src«
make: *** [all-recursive] Fehler 1
linux:/home/hendrik/Desktop/SDL-1.2.4 # In file included from SDL_alsa_audio.h:27,
bash: In: command not found
linux:/home/hendrik/Desktop/SDL-1.2.4 # from SDL_alsa_audio.c:42:
bash: from: command not found
linux:/home/hendrik/Desktop/SDL-1.2.4 # /usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead.
bash: /usr/include/sys/asoundlib.h:1:: Datei oder Verzeichnis nicht gefunden
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:69: parse error before `*'
> SDL_alsa_audio.c: In function `init_pcm_cparams':
> SDL_alsa_audio.c:71: `snd_pcm_channel_params_t' undeclared (first use in this function)
bash: syntax error near unexpected token `(f'
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:71: (Each undeclared identifier is reported only once
bash: syntax error near unexpected token `(Each'
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:71: for each function it appears in.)
bash: syntax error near unexpected token `in.)'
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:71: `cparams' undeclared (first use in this function)
> SDL_alsa_audio.c:73: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
> SDL_alsa_audio.c:74: `SND_PCM_MODE_BLOCK' undeclared (first use in this function)
bash: syntax error near unexpected token `(f'
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:76: `SND_PCM_STOP_STOP' undeclared (first use in this function)
> SDL_alsa_audio.c:77: `SND_PCM_SFMT_S16_LE' undeclared (first use in this function)
> SDL_alsa_audio.c: In function `Audio_Available':
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: SDL_alsa_audio.c:76:: command not found
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:98: `snd_pcm_channel_params_t' undeclared (first use in this function)
> SDL_alsa_audio.c:98: parse error before `cparams'
> SDL_alsa_audio.c:106: `cparams' undeclared (first use in this function)
bash: syntax error near unexpected token `(f'
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:108: `SND_PCM_OPEN_PLAYBACK' undeclared (first use in this function)
> SDL_alsa_audio.c:108: `SND_PCM_OPEN_NONBLOCK' undeclared (first use in this function)
> SDL_alsa_audio.c:108: warning: passing arg 2 of `snd_pcm_open' makes pointer from integer without a cast
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: SDL_alsa_audio.c:108:: command not found
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:111: warning: implicit declaration of function `snd_pcm_plugin_params'
> SDL_alsa_audio.c: At top level:
> SDL_alsa_audio.c:246: parse error before `cstatus'
> SDL_alsa_audio.c:246: warning: type defaults to `int' in declaration of `cstatus'
> SDL_alsa_audio.c:246: warning: data definition has no type or storage class
> SDL_alsa_audio.c: In function `PCM_PlayAudio':
> SDL_alsa_audio.c:254: warning: implicit declaration of function `snd_pcm_plugin_write'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 4: syntax error: unexpected end of file
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 4: syntax error: unexpected end of file
bash: SDL_alsa_audio.c:111:: command not found
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:269: warning: implicit declaration of function `snd_pcm_plugin_status'
> SDL_alsa_audio.c:274: request for member `status' in something not a structure or union
> SDL_alsa_audio.c:274: `SND_PCM_STATUS_UNDERRUN' undeclared (first use in this function)
bash: syntax error near unexpected token `(f'
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:275: request for member `status' in something not a structure or union
> SDL_alsa_audio.c:275: `SND_PCM_STATUS_READY' undeclared (first use in this function)
> SDL_alsa_audio.c:280: warning: implicit declaration of function `snd_pcm_plugin_prepare'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: SDL_alsa_audio.c:275:: command not found
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:280: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
> SDL_alsa_audio.c: In function `PCM_CloseAudio':
> SDL_alsa_audio.c:317: warning: implicit declaration of function `snd_pcm_plugin_flush'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: SDL_alsa_audio.c:280:: command not found
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:317: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
> SDL_alsa_audio.c: In function `PCM_OpenAudio':
> SDL_alsa_audio.c:334: `snd_pcm_channel_params_t' undeclared (first use in this function)
bash: syntax error near unexpected token `(f'
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:334: parse error before `cparams'
> SDL_alsa_audio.c:335: `snd_pcm_channel_setup_t' undeclared (first use in this function)
> SDL_alsa_audio.c:341: `cparams' undeclared (first use in this function)
bash: syntax error near unexpected token `(f'
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:348: `SND_PCM_OPEN_PLAYBACK' undeclared (first use in this function)
> SDL_alsa_audio.c:348: `SND_PCM_OPEN_NONBLOCK' undeclared (first use in this function)
> SDL_alsa_audio.c:348: warning: passing arg 2 of `snd_pcm_open' makes pointer from integer without a cast
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: SDL_alsa_audio.c:348:: command not found
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:376: `SND_PCM_SFMT_U8' undeclared (first use in this function)
> SDL_alsa_audio.c:380: `SND_PCM_SFMT_S8' undeclared (first use in this function)
> SDL_alsa_audio.c:384: `SND_PCM_SFMT_S16_LE' undeclared (first use in this function)
bash: syntax error near unexpected token `(f'
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:388: `SND_PCM_SFMT_S16_BE' undeclared (first use in this function)
> SDL_alsa_audio.c:392: `SND_PCM_SFMT_U16_LE' undeclared (first use in this function)
> SDL_alsa_audio.c:396: `SND_PCM_SFMT_U16_BE' undeclared (first use in this function)
bash: syntax error near unexpected token `(f'
linux:/home/hendrik/Desktop/SDL-1.2.4 # SDL_alsa_audio.c:433: `csetup' undeclared (first use in this function)
> SDL_alsa_audio.c:434: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
> SDL_alsa_audio.c:435: warning: implicit declaration of function `snd_pcm_plugin_setup'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: SDL_alsa_audio.c:433:: command not found


Als ziemlicher Linux-Newbie weiss ich leider nicht, wie ich eine Lösung dafür finden könnte. Wäre also nett, wenn mir jemand helfen würde! Danke! :)

Zaphod-B
19.08.02, 23:03
Moin,
sieht fast so aus, als ob dir das passende devel Paket fehlt, wahrscheinlich findest du es unter den Namen alsa-devel*.rpm.
Es wäre gut wenn du erwähnen würdest welche Distribution du verwendest,das würde es echt erleichtern dir zu helfen.



Greetings Zaphod-B

-Hendrik-
20.08.02, 11:44
Oja, tut mir leid: Natürlch SuSe 8.0 für mich als Neuling!

ich probier das mal mit dem devel, danke schonmal... :)



Hm...also alsa und alsa-devel sind bereits installiert. (in der Version 0.9.0_cvs20020320-12)

Zaphod-B
20.08.02, 19:27
Moin,
jetzt fällt mir leider auch nichts ein.
Bist du sicher das auf den CDs kein passendes Paket ist?
Bei 7.3 war es noch auf der 4. CD im Verzeichnis /d3,wie auch die anderen SDL Pakete.



Greetings Zaphod-B

-Hendrik-
20.08.02, 21:10
hi,

ich hab noch irgendwo ein src-rpm gefunden...damit hab ichs installiert bekommen, der mplayer liess sich damit auch installieren! :)

Trotzdem danke für deine Mühe! :)