Hi,
the latest configure automatic detects ALSA headers on the system. But
it seems the code requires a specific version of ALSA:
gcc -c -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts
-Wpacked -Wunused-parameter -g -O3 -Demacs -I.
-I/workarea/rpm/SOURCES/xemacs-21.5.26/src -DHAVE_CONFIG_H
-I/usr/X11R6/include /workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c
/workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c: In function
`set_volume':
/workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c:231: error: void
value not ignored as it ought to be
/workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c:254: error:
`SND_MIXER_SCHN_REAR_CENTER' undeclared (first use in this function)
/workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c:254: error: (Each
undeclared identifier is reported only once
/workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c:254: error: for each
function it appears in.)
/workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c:262: error:
`SND_MIXER_SCHN_SIDE_LEFT' undeclared (first use in this function)
/workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c:266: error:
`SND_MIXER_SCHN_SIDE_RIGHT' undeclared (first use in this function)
/workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c: In function
`reset_volume':
/workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c:298: error:
`SND_MIXER_SCHN_REAR_CENTER' undeclared (first use in this function)
/workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c:306: error:
`SND_MIXER_SCHN_SIDE_LEFT' undeclared (first use in this function)
/workarea/rpm/SOURCES/xemacs-21.5.26/src/alsaplay.c:310: error:
`SND_MIXER_SCHN_SIDE_RIGHT' undeclared (first use in this function)
make[1]: *** [alsaplay.o] Error 1
I'm trying to compile it on RHEL4u3 which has ALSA 1.0.6:
$ rpm -q alsa-lib-devel
alsa-lib-devel-1.0.6-5.RHEL4
$ fgrep SND_MIXER_SCH /usr/include/alsa/*
/usr/include/alsa/mixer.h: SND_MIXER_SCHN_UNKNOWN = -1,
/usr/include/alsa/mixer.h: SND_MIXER_SCHN_FRONT_LEFT = 0,
/usr/include/alsa/mixer.h: SND_MIXER_SCHN_FRONT_RIGHT,
/usr/include/alsa/mixer.h: SND_MIXER_SCHN_FRONT_CENTER,
/usr/include/alsa/mixer.h: SND_MIXER_SCHN_REAR_LEFT,
/usr/include/alsa/mixer.h: SND_MIXER_SCHN_REAR_RIGHT,
/usr/include/alsa/mixer.h: SND_MIXER_SCHN_WOOFER,
/usr/include/alsa/mixer.h: SND_MIXER_SCHN_LAST = 31,
/usr/include/alsa/mixer.h: SND_MIXER_SCHN_MONO =
SND_MIXER_SCHN_FRONT_LEFT
I guess the ALSA autoconfig check needs to check for a minimum version.
Regards,
Stefan
---
Stefan Becker
E-Mail: Stefan.Becker(a)nokia.com