I have an old Yamaha sound card, which uses the ymfpci module.
I am running a slackware 10 system, upgraded via swaret to -current; but I am using several programs compiled by hand.
The kernel is a vanilla 2.6.10, with its sound support turned off.
The system boots OK.
After building & installing the kernel, I built alsa-driver with support for my card. After installing alsa-driver, I proceeded to compile alsa-lib, but then I got this error:
Code:
In file included from /usr/include/linux/errno.h:4,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from ../../include/local.h:34,
from control_local.h:22,
from cards.c:35:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
cards.c: In function `snd_card_next':
cards.c:81: error: `EINVAL' undeclared (first use in this function)
cards.c:81: error: (Each undeclared identifier is reported only once
cards.c:81: error: for each function it appears in.)
cards.c: In function `snd_card_get_index':
cards.c:109: error: `EINVAL' undeclared (first use in this function)
cards.c:132: error: `ENODEV' undeclared (first use in this function)
cards.c: In function `snd_card_get_name':
cards.c:148: error: `EINVAL' undeclared (first use in this function)
cards.c:158: error: `ENOMEM' undeclared (first use in this function)
cards.c: In function `snd_card_get_longname':
cards.c:175: error: `EINVAL' undeclared (first use in this function)
cards.c:185: error: `ENOMEM' undeclared (first use in this function)
make[2]: *** [cards.lo] Error 1
make[2]: Leaving directory `/home/erik/programi_src/alsa/alsa-lib-1.0.8/src/control'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/erik/programi_src/alsa/alsa-lib-1.0.8/src'
make: *** [all-recursive] Error 1
After that, I symlinked /usr/include/asm to /usr/include/asm-generic, and re-run ./configure make for alsa-lib; only to get this error:
Code:
cards.c: In function `snd_card_next':
cards.c:81: error: `EINVAL' undeclared (first use in this function)
cards.c:81: error: (Each undeclared identifier is reported only once
cards.c:81: error: for each function it appears in.)
cards.c: In function `snd_card_get_index':
cards.c:109: error: `EINVAL' undeclared (first use in this function)
cards.c:132: error: `ENODEV' undeclared (first use in this function)
cards.c: In function `snd_card_get_name':
cards.c:148: error: `EINVAL' undeclared (first use in this function)
cards.c:158: error: `ENOMEM' undeclared (first use in this function)
cards.c: In function `snd_card_get_longname':
cards.c:175: error: `EINVAL' undeclared (first use in this function)
cards.c:185: error: `ENOMEM' undeclared (first use in this function)
make[2]: *** [cards.lo] Error 1
make[2]: Leaving directory `/home/erik/programi_src/alsa/alsa-lib-1.0.8/src/control'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/erik/programi_src/alsa/alsa-lib-1.0.8/src'
make: *** [all-recursive] Error 1
I am at a loss as to what to try next...
somebody please help me, because I think that if I listen to another hour of local radio-stations, I will smash the radio to bits