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

Benoit.Ropartz at alcatel.fr Benoit.Ropartz at alcatel.fr
Fri Jun 25 13:43:41 CEST 2004


I have seen in last CVS that you defined find_first_bit and find_next_bit
for X86
target ==> #if defined(CONFIG_X86) ???

Why you don't add functions for other target ??? My mine is PPC....






Michael Heim <Michael.Heim at gmx.com>@linbit.com on 25/06/2004 09:12:50

Sent by:    drbd-user-admin at linbit.com


To:    Philipp Reisner <philipp.reisner at linbit.com>
cc:    drbd-user at linbit.com
Subject:    Re: [DRBD-user] Compilation error with drbd-0.7_pre8 and Linux
       2.4 (SLES 8.0 SP3 and i386 SMP)


Hi Philipp,

here the file with the diffs.

So long
Michael

On Thursday 24 June 2004 10:33, Philipp Reisner wrote:
> 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

(See attached file: drbd-mod.patch)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: drbd-mod.patch
Type: application/octet-stream
Size: 2479 bytes
Desc: not available
Url : http://lists.linbit.com/pipermail/drbd-user/attachments/20040625/952ee2ab/attachment.obj 


More information about the drbd-user mailing list