LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to install ALSA drivers (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-install-alsa-drivers-145461/)

gauge73 02-12-2004 07:38 PM

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?

qwijibow 02-12-2004 07:40 PM

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.

gauge73 02-12-2004 07:46 PM

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.

gauge73 02-12-2004 08:33 PM

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? :confused:

quatsch 02-12-2004 08:41 PM

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

gauge73 02-12-2004 09:25 PM

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? :(

gauge73 02-12-2004 09:28 PM

Nevermind, it was a bad download... just didn't notice the file size at first. Re-downloading it.


All times are GMT -5. The time now is 02:23 PM.