LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2004, 07:38 PM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Trying to install ALSA drivers


I'm following a howto trying to install the ALSA drivers and utilities. I was able to install the libraries without a problem, but I'm hung up on the driver portion.

I bunzip2'd and untar'd the driver file and then I ran the following command:

./configure --with-oss=yes

I got an error that said this...

checking for kernel version... The file /lib/modules/2.4.20-8/build/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).

So, I looked around and found version.h in /usr/include/linux, so I ran this command instead:

./configure --with-oss=yes --with-kernel=/usr

The configure script finished without any apparent errors. However, when I tried to run make, I get all KINDS of errors. Here are the first few of probably a couple hundred lines of output from make...

make[1]: Entering directory `/alsa/alsa-driver-0.9.8/support'
make[1]: Nothing to be done for `first_rule'.
make[1]: Leaving directory `/alsa/alsa-driver-0.9.8/support'
make[1]: Entering directory `/alsa/alsa-driver-0.9.8/acore'
gcc -D__KERNEL__ -DMODULE=1 -I/alsa/alsa-driver-0.9.8/include -I/usr/include -O2 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -DEXPORT_SYMTAB -c hwdep.c
In file included from /usr/include/linux/module.h:20,
from /alsa/alsa-driver-0.9.8/include/adriver.h:51,
from /alsa/alsa-driver-0.9.8/include/sound/driver.h:42,
from hwdep.c:22:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.


I have no idea about any of this stuff. Could anyone make some suggestions?
 
Old 02-12-2004, 07:40 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
sounds to me like you dont have your kernel source code installed.
ALSO, the version.h does not apear in the kernel tree until after you have compiled the kernel.

either install your kernel sources via rpm.

or download a kernel
www.kernel.org
then compile it, make sure u enable alsa in the kernel configureation.
 
Old 02-12-2004, 07:46 PM   #3
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Thanks. Where would I find the sources for my kernel? I am running RH9.0, and I looked for kernel-related packages and saw kernel-2.4.20-8. I assume this is the actual kernel binary and not source.
 
Old 02-12-2004, 08:33 PM   #4
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Okay, I found the source rpm, I think. I went to redhat's website and I found a file called kernel-2.4.20-8.src.rpm. However, when I tried to install it using the follwing command:

rpm -i kernel-2.4.20-8.src.rpm

I got the following error:

warning: kernel-2.4.20-8.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e

What should I do now?
 
Old 02-12-2004, 08:41 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
actually, you probably want an rpm called kernel-source. Look for the right version; it's got to match the kernel version you are running. and then install it. Everything will be in the right place.
You can find rpms at
http://www.rpmfind.net
 
Old 02-12-2004, 09:25 PM   #6
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
I found kernel-source-2.4.20-8.i386.rpm and tried to install it and got the following error (this is getting really exasperating):

error: kernel-source-2.4.20-8.i386.rpm: headerRead failed: hdr blob(1480916): BAD, read returned 97333
error: kernel-source-2.4.20-8.i386.rpm cannot be installed

What now?
 
Old 02-12-2004, 09:28 PM   #7
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Nevermind, it was a bad download... just didn't notice the file size at first. Re-downloading it.
 
  


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 sound drivers don't install swamysk Linux - Newbie 1 11-20-2004 12:01 PM
pb install 'alsa drivers rpms' under Fedora roskoo Fedora 12 01-04-2004 08:00 PM
Can't install alsa drivers Jiggy Linux - Software 12 12-27-2003 08:47 AM
Install ALSA drivers with fedora core 1 wlchapman13 Fedora 2 11-11-2003 08:45 PM
trying to install alsa sound drivers nakedjohn Linux - Newbie 17 07-11-2003 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:14 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration