On Wed, 13 Feb 2002 01:48:45 -0800
Dave Sutter <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am trying to install alsa-driver-0.5.12a on Red Hat 7.2 and I am have
> a problem during make. My file modversions.h, which I unpacked with the
> kerbnel source tree
You must have the kernel-source .rpm package installed that corresponds to
the kernel you're running.
> that came with the distribution, is empty except for
> an error message. How do I fix this? Are there other compile
> settings I can choose that do not include the modversions.h file?
>
> Any help woudl be appreciated.
>
> Dave
>
> make[1]: Entering directory
> `/home/sutter/SoundDriver/alsa-driver-0.5.12a/kernel'
> gcc -DALSA_BUILD -D__KERNEL__ -O2 -DLINUX -Wall -Wstrict-prototypes
> -fomit-frame-pointer -pipe -I/usr/src/linux/include -I.. -DEXPORT_SYMTAB
> -c sound.c
> In file included from ../include/driver.h:66,
> from sound.c:23:
> /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.
> make[1]: *** [sound.o] Error 1
> make: *** [compile] Error 1
> make[1]: Leaving directory
> `/home/sutter/SoundDriver/alsa-driver-0.5.12a/kernel'
A recent email about ALSA and RH7.2:
------------------------------------------------------------------------
From: Roger E Critchlow Jr <[EMAIL PROTECTED]>
To: Kjetil Tjensvold <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: [Alsa-user] Alsa and RH 7.2 compiling problem
Date: Mon, 11 Feb 2002 20:50:34 -0700
=?iso-8859-1?Q?Kjetil_Tjensvold?= writes:
> Hi.
> I can compile the alsa-driver 5.0.9
> and compile alsa-lib, but when I type make install
> after ./configure of alsa-lib I get errors.
> I know that the alsa is for native linux and not for
> RedHat 7.2 so I guess it can not find all folders
> where they should be. I use the same prefix for both
> packages.
> Anybody installed alsa on RH 7.2 that can give me a hint.
Ah, let's see:
1) install the kernel-source rpm for the kernel you're running.
2) make sure that it's linked as /usr/src/linux, or tell the
alsa-driver configure where it is.
3) copy the appropriate /usr/src/linux/configs/kernel-*.config
into /usr/src/linux/.config,
one of my machines uses kernel-2.4.9-i686.config, but
the other needs kernel-2.4.9-i686-smp.config
4) make sure that /usr/src/linux/Makefile specifies the correct
EXTRAVERSION to find your /lib/modules/,
it says -21custom by default for 2.4.9-21, but it needs to
say just -21 to use the installed kernel.
That should do it, now configure alsa-driver, make, and install.
-- rec --
---------------------------------------------------------------------------
Good luck!
-Frans
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user