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

Luc de Louw luc at delouw.ch
Sat Jul 24 19:29:58 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.

Lars Ellenberg wrote:
> / 2004-07-23 19:19:22 +0200
> \ Luc de Louw:
>>Hi all,
>>with the vanilla kernel 2.6.x (2.6.8-rc2 not yet tried) I have the 
>>problem with my r8169 NIC which cause the server to crash on load.
>>with 2.6.8-rc1 drbd runns fine.
>>With 2.6.8-rc1-mm1 the system runns stable, but I was unable to compile 
>>Any ideas?
>>/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'
> enclose the definition of void * kcalloc in drbd_main.c line 1591 with
> #if 0
> #endif

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;

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



More information about the drbd-user mailing list