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

Philipp Reisner philipp.reisner at linbit.com
Thu Jun 24 10:33:55 CEST 2004


On Wednesday 23 June 2004 23:47, Michael Heim wrote:
> 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.
>

Could you please post a diff -u ? 
(diff -ur drbd-unmidified-dir drbd-modified-dir to be exact)
This would make it easier for me... 

Thanks.

-philipp
-- 
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :



More information about the drbd-user mailing list