I'm a Linux newbie.
I have an Athlon 1GHz and an ABIT KT7A RAID
motherboard.and a Sonic Vortex 2 soundcard I'm using
Mandrake 8.0.
Whenever I follow the install instructions I get the
following error messages:
_________________
make install
cc -D__KERNEL__ -DMODULE -DAU8830 -mpentium -O6
-fomit-frame-pointer -Wall -pipe
-I/usr/src/RPM/SOURCES -c -o au_audio.o au_audio.c
In file included from au_vortex.h:55,
from au_audio.c:49:
/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
headers from an appropriate kernel-source
make: *** [au_audio.o] Error 1
_________________
should I make any changes in the makefile ?
I had the same problem when I tried to install it in
Mandrake 7.2.
Can someone please help me?
My email is linux@dougnac.com
Best Regards
Jorge
Logged In: NO
Should be fixed by changing INCLUDEDIRS in the Makefile to
point to the right place - e.g. /lib/modules/$(shell uname
-r)/build/include
This could also be dealt with by just changing the
INCLUDEDIRS line to be INCLUDEDIRS ?= ..., and then having
text in the README about what values you might want to set
it to.
Peter Desnoyers
Logged In: NO
Hi,
I can confirm the problem Jorge faces. It seems to be
problem with Kernel Versions 2.4.3 & up. I got the same
problem while trying to install on the following systems:
RedHat 7.0 with kernel 2.4.3 & 2.4.4 (2.2.x and 2.4.0 work
fine)
RedHat 7.1 with 2.4.3(default) & 2.4.4
Mandrake 8.0
I didn't try with earlier versions of Mandrake or other
distros. Redhat 6.2 with kernel 2.2.x works fine too.
Amit
Logged In: NO
Make sure you have the kernel sources installed, and check the
Makefile for INCLUDEDIRS (on my RedHat 7.1 it points to
/usr/src/linux, which I changed to /usr/src/linux-2.4) and make
sure it points to the kernel source, not the system headers
(which it will use as a fallback).
After that, I don't know how to build under Mandrake; I finally
managed to build it under RedHat 7.1 after several attempts, one
of which was forgetting to clean up the kernel object files (make
mrproper) when rebuilding. Good luck...
Logged In: NO
Ensure you have the kernel source installed and not just
the headers.
Also, if you're using RedHat 7.1, you'll have to go to the
/usr/src directory and to the following:
$ln -s linux-2.4.2 linux
That should do it. You want to be using the include files
in the kernel source directory always for modules, which
is what the message was saying.
I didn't realise this until I decided to investigate why
it wasn't using the kernel headers. That's when I realised
that the kernel source code was not installed on my system.
It's works now. Try that.