[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Kernel Headers?
- From: Jim Hayward <jimhayward earthlink net>
- To: redhat-install-list redhat com
- Subject: Re: Kernel Headers?
- Date: 01 Dec 2002 13:58:47 -0800
On Sun, 2002-12-01 at 12:29, Dale Satterfield wrote:
> I have installed Redhat 8.0 professional, which installs a 2.4.18-14
> kernel version. The file linux/module.h includes linux/version.h. This
> file says its version is 2.4.9-9. This is NOT consistent with the
> version of kernel that actually gets installed. Shouldn't it ????????
>
You are trying to build against the glibc-kernelheaders. Kernel modules
must be built against the source for the kernel version you are running.
>
> So, commenting out the include, and using a make file with KERNELDIR
> defined as /usr/src/linux-2.4, I can get the module to compile,
The correct way is to use /lib/modules/$(uname -r)/build
> but insmod says that loading the module will "taint" the kernel.
Try this and then try to build the module again. It may cure this
message.
cd /usr/src/linux-<kernelversion>
make mrproper
Copy the default Red Hat kernel config that was used to compile the
kernel you have installed. You can look in the "configs" directory of
your kernel source for a listing of the configs available.
Example, this shows I have the uni-processor althon kernel installed.
cat /var/log/rpmpkgs | grep kernel-2.4.18-18.8.0
kernel-2.4.18-18.8.0.athlon.rpm
cp configs/kernel-2.4.18-athlon.config .config
Open the toplevel Makefile in a text editor. Using the above example
this would be /usr/src/linux-2.4.18-17.8.0/Makefile
Look at the first four lines in the Makefile.
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 18
EXTRAVERSION = -18.8.0custom
Remove the word "custom" from the end of the EXTRAVERSION line.
make dep
Regards,
Jim H
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]