[DRBD-user] compile failure with 2.6.8-rc1-mm1

Lars Ellenberg Lars.Ellenberg at linbit.com
Sat Jul 24 20:54:34 CEST 2004

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


/ 2004-07-24 19:29:58 +0200
\ Luc de Louw:
> >>with 2.6.8-rc1 drbd runns fine.
> >>
> >>With 2.6.8-rc1-mm1 the system runns stable, but I was unable to compile 
> >>drbd-0.7.0

> >>/usr/local/drbd-0.7.0/drbd/drbd_main.c:1591: error: conflicting types 
> >>for `kcalloc'
> >>include/linux/slab.h:100: error: previous declaration of `kcalloc'

> If understood right it should look like that?
> 
> #if 0
> void * kcalloc(size_t size, int type)
> {
>         void *addr;
>         addr = kmalloc(size, type);
>         if (addr)
>                 memset(addr, 0, size);
>         return addr;
> }
> #endif
> 
> 
> 
> I had anther error:
> /usr/local/drbd-0.7.0/drbd/drbd_main.c:1674: error: too few arguments to 
> function `kcalloc'
> 
> I just commented out the line, and build was finishing with the 
> following result:
> 
> FATAL: Error inserting drbd 
> (/lib/modules/2.6.8-rc1-mm1/kernel/drivers/block/drbd.ko): Cannot 
> allocate memory

please get a new svn checkout, I just removed our version of 'kcalloc',
which should have been named something like kzalloc, anyways...

	Lars Ellenberg

-- 
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list