[DRBD-user] Compilation error with drbd-0.7_pre8 and Linux 2.4 (SLES 8.0 SP3 and i386 SMP)

Michael Heim Michael.Heim at gmx.com
Wed Jun 23 23:47:27 CEST 2004


Hi all,

i have tried to compile drbd 0.7-pre8 (from CVS today) under SLES 8.0 (SuSE 
Linux Enterprise Server) with SP3 (kernel 2.4.21), but i have become several 
errors. Here the modifications to compile without errors:

1) Add "drbd_dev *mdev = drbd_conf -1;" in drbd/drbd_compat_wrappers.h 
directly after the definition of the signature of 
"drbd_generic_make_request(int rw, struct buffer_head *bh)" (from 
Benoit.Ropartz at alcatel.fr)

2) Add "drbd_bitmap.o" to the line "drbd-objs := " in drbd/Makefile-2.4, 
because drbd_bitmap.o has to be linked to drbd.o (unresolved symbols)

3) Add "#include <linux/slab.h>" to drbd/drbd_int.h (definition of struct 
kmem_cache_s)

4) Add "#define ALIGN(x,s) (((x) + (s-1)) ~(s-1))" to drbd/drbd_bitmap.c (from 
Lars Ellenberg)

After this "modprobe drbd" has worked!-) Now i can test the PRE8.

So long
Michael



More information about the drbd-user mailing list