I did a re-install, and then updated my kernel to 2.4.18-18smp. I installed the kernal source from the cd's, which is 2.4.18-14. It still has 2.4.9-9 in <linux/module.h>. I tried to include instead /usr/src/linux2.4/include/linux/version.h, but it includes <linux/version.h> so I get two problems. It thinks I am including kernel headers in a user program, and I get the error message about wrong versions.
I have never run into this before, as the kernel headers from a CD always matched the installed kernel.
Dale
On Tuesday, November 26, 2002, at 08:12 AM, Michael Schwendt wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 26 Nov 2002 07:28:36 -0800, Dale Satterfield wrote:I just did a workstation install of RH-8. While going through the device drivers book, I tried to test the compilation/l;oading of a module. I get an error message on loading of "Running 2.4.18-14. Your module was compiled for 2.4.9-9". 2.4.9-9 is the value in /usr/include/linux/version.h. How come it doesn't match the kernel that was installed? I did the install from the RH CD's. Can I just edit the version file?No. Compile the module against the kernel headers which you find in the "kernel-source" binary rpm. When installed, you find the kernel headers in /usr/src/linux-2.4/include. Don't use the "kernel-headers" package and neither the "glibc-kernheaders" package when compiling kernel modules. - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE945160iMVcrivHFQRAs8kAJ0YbcxxchR321G7WOPMwOZRlj8nTwCdFVQ0 1cXHG1mEye70kQPpHOVDOnw= =1+Mh -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list