LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem compiling alsa-lib 1.0.8 (https://www.linuxquestions.org/questions/linux-software-2/problem-compiling-alsa-lib-1-0-8-a-282417/)

red_erik 01-26-2005 06:15 AM

problem compiling alsa-lib 1.0.8
 
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 :)

BorisMcHack 01-31-2005 01:43 PM

Quote:

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
I sympathise with you, but the best thing to do is to smash your radio to bits. It's the way forward. Local radio is like the screams of the dead in the rotting stench that is hell, clotting up the airwaves around the world.

I call to you all now: DEATH TO LOCAL RADIO! DEATH TO LOCAL RADIO! DEATH TO LOCAL RADIO! DEATH TO LOCAL RADIO! Join me, and we can make a difference. :( :eek: :confused: :D :( :mad:

Um, I thought the 2.6 kernels have the ALSA drivers built in, you need to enable it in the kernel I believe. ?


All times are GMT -5. The time now is 04:48 AM.