[OpenAFS] openafs kernel module on Fedora Core 6 [Load Failure]

Anirbid Banerjee anirbid.banerjee@gmail.com
Tue, 23 Jan 2007 15:24:46 +0530


Hi,



I have installed Fedora Core 6.0 (2.6.18-1.2798.fc6 #1 SMP i686 i686
i386 GNU/Linux) on my system. I installed the kernel source from
kernel-devel-2.6.18-1.2798.fc6.i686.rpm.I tried getting an appropriate
AFS client for this system. Unfortunately I could not find any, so I
started building one myself.

Except for commenting out a few of these lines #include <linux/config.h>
in the openafs-1.4.2 source tree, (I learnt that
/include/linux/config.h is officially removed from source trees higher
than 2.6.18) I didnt make any significant changes. The package builds
fine alongwith the kernel module, but I cannot modprobe the module
into the kernel.

This is what it says:
$ modprobe libafs

FATAL: Error inserting libafs
(/lib/modules/2.6.18-1.2798.fc6/kernel/fs/openafs/libafs.ko): Invalid
module format

$dmesg | tail -1
libafs: version magic '2.6.18-1.2798.fc6 SMP mod_unload 686 REGPARM
4KSTACKS gcc-4.1' should be '2.6.18-1.2798.fc6 SMP mod_unload 586
REGPARM 4KSTACKS gcc-4.1'

I am not getting any idea how to tackle this problem. Please suggest.

~$u8h