[vorbis] libao: alsa plugin won't compile

Murphy tsuga at infoserve.net
Sat Mar 3 12:27:16 PST 2001



Hey'

Can't seem to compile libao.  I'm using Slackware-7.1-current-ish,
linux-2.4.2, gcc-2.95.2, and alsa-9.0-beta2.  This is the first time I've
tried to compile libao so I don't know if the problem is related to
alsa-9.0 changes.  

Alsa headers seem to be there:

/usr/include/linux> ls -l as*.h
-rw-r--r--   1 root  root  35994 Mar  3 10:57 asequencer.h
-rw-r--r--   1 root  root  31982 Mar  3 10:57 asound.h
-rw-r--r--   1 root  root  10435 Mar  3 10:57 asoundef.h

from config.cache:

ac_cv_lib_asound_snd_pcm_open=${ac_cv_lib_asound_snd_pcm_open=yes}

The compilation error:

gcc -DPACKAGE=\"libao\" -DVERSION=\"0.6.0\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4
-DSIZEOF_LONG=4 -DHAVE_SYS_SOUNDCARD_H=1 -I. -I. -I../../..
-I../../../include -O20 -ffast-math -D_REENTRANT -fsigned-char
-DAO_PLUGIN_PATH=\"/usr/lib/ao\" -c ao_alsa.c  -fPIC -DPIC -o ao_alsa.lo
ao_alsa.c: In function `plugin_open':
ao_alsa.c:86: `snd_pcm_channel_params_t' undeclared (first use in this
function)
ao_alsa.c:86: (Each undeclared identifier is reported only once
ao_alsa.c:86: for each function it appears in.)
ao_alsa.c:86: parse error before `param'
ao_alsa.c:89: `param' undeclared (first use in this function)
ao_alsa.c:91: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this
function)
ao_alsa.c:92: `SND_PCM_MODE_BLOCK' undeclared (first use in this function)
ao_alsa.c:97: `SND_PCM_SFMT_S8' undeclared (first use in this function)
ao_alsa.c:100: `SND_PCM_SFMT_S16_BE' undeclared (first use in this
function)
ao_alsa.c:100: `SND_PCM_SFMT_S16_LE' undeclared (first use in this
function)
ao_alsa.c:121: `SND_PCM_START_FULL' undeclared (first use in this function)
ao_alsa.c:123: `SND_PCM_STOP_STOP' undeclared (first use in this function)
ao_alsa.c:133: `SND_PCM_OPEN_PLAYBACK' undeclared (first use in this
function)
ao_alsa.c:133: `SND_PCM_OPEN_NONBLOCK' undeclared (first use in this
function)
ao_alsa.c:133: warning: passing arg 2 of `snd_pcm_open' makes pointer from
integer without a cast
ao_alsa.c: In function `ao_alsa_write_buffer':
ao_alsa.c:165: `snd_pcm_channel_status_t' undeclared (first use in this
function)
ao_alsa.c:165: parse error before `status'
ao_alsa.c:171: `status' undeclared (first use in this function)
ao_alsa.c:178: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this
function)
ao_alsa.c: In function `plugin_get_latency':
ao_alsa.c:218: `snd_pcm_channel_status_t' undeclared (first use in this
function)
ao_alsa.c:218: parse error before `status'
ao_alsa.c:219: `status' undeclared (first use in this function)
make[3]: *** [ao_alsa.lo] Error 1
make[3]: Leaving directory `/usr/src/libao-0.6.0/src/plugins/alsa'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/libao-0.6.0/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/libao-0.6.0/src'
make: *** [all-recursive] Error 1


-- 
Murphy

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis mailing list