[DRBD-user] 0.7.20 doesn't build on Fedora's new 2.6.18 kernel

Lars Ellenberg Lars.Ellenberg at linbit.com
Sat Oct 21 20:41:24 CEST 2006

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

/ 2006-10-21 08:46:56 -0700
\ Ben:
> ....and, after I comment out the documentation part of the install, it doesn't run so well either. 
> /var/log/messages tells me:
> Oct 21 08:50:07 johnny kernel: overflow in relocation type 10 val ffffffff881dac40
> Oct 21 08:50:07 johnny kernel: `drbd' likely not compiled with -mcmodel=kernel
> Oct 21 08:50:07 johnny modprobe: FATAL: Error inserting drbd 
> (/lib/modules/2.6.18-1.2200.fc5xen0/kernel/drivers/block/drbd.ko): Invalid module format

is that so.
well, it should not be necessary, since we call the kernel top level
make file, which should know best what compiler flags it needs to
compile a kernel module...

do "make clean" and "make V=1" , and find out whether it actually uses
that flag. if it is not, try adding it to the drbd makefile.
add to drbd/Makefile-2.6
CFLAGS += -mcmodel=kernel

iirc someone had a similar problem before on some
redhat 2.6.9-whatever x86_64 ...
funny redhat problem? general x86_64 module loader problem?
maybe only affects out-of-tree modules?
maybe something completely different?

: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :
please use the "List-Reply" function of your email client.

More information about the drbd-user mailing list