LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2005, 06:15 AM   #1
red_erik
LQ Newbie
 
Registered: Dec 2004
Location: Rijeka, Croatia
Distribution: slackware-current
Posts: 10

Rep: Reputation: 0
Question 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
 
Old 01-31-2005, 01:43 PM   #2
BorisMcHack
Member
 
Registered: May 2004
Location: uk
Distribution: debian sarge
Posts: 65

Rep: Reputation: 15
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.

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
alsa-utils conflicts with alsa-lib sloik2000 Linux - Software 0 07-09-2005 08:50 AM
Alsa-lib on SuSE 9.1 prof fireedo SUSE / openSUSE 2 03-05-2005 11:00 AM
compilation error with alsa-lib package prem0 Red Hat 2 12-09-2004 03:40 PM
Problems installing alsa-lib from CVS!! patkalolo Linux - Software 2 07-08-2004 09:08 PM
ALSA problem after compiling kernel. the_rydster Slackware 8 03-04-2004 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration