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@xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.
At 12:27 PM 3/3/01 -0800, you wrote:>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.I think the alsa plugin is for an older or newer version of alsa than what you have. The configure test I think just looks for the presence of alsa, not for the specific version it needs. You should be able to disable the alsa plugin with an appropriate argument to configure. Michael --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Maybe Matching Threads
- libao - patch for ALSA (0.5.x) plugin
- [kcarnold@xiph.org: [xiph-cvs] cvs commit: vorbis/vorbis-tools/libao ao_alsa.c ao_oss.c audio_out.c audio_out.h]
- libao compilation difficulty
- libao patch: Minor clean up / Byte-order proposal
- libao problem (Re: [alsa-devel] No dmix/dsnoop on Intel ICH4/5 by default?)