[ENBD] 2.4.31 compile problems

Peter T. Breuer enbd@lists.community.tummy.com
Thu, 13 Feb 2003 18:39:02 +0100 (MET)


"A month of sundays ago [Alberto Barcel_n] wrote:"
> 	Hello, I have redhat 6.2 with kernel 2.2.20.
> 
> 	I compile 2.4.30 without problems, but I can't compile 2.4.31 (I need to
> test the raid support)

Well, that's OK, I haven't compiled it against 2.2.20 either. I think
you need a 2.4 kernel!

But if it's easy to fix I'll fix it later Now I have to run.

> 
> gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
> OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall  -O2 -D__KERNEL__ -DMODULE -DDEBUG=0 -D
> CONFIG_ENBD=m -I/install/cluster/nbd-2.4.31/linux/include -I/usr/src/linux/i
> nclude  -c -o enbd.o /install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c
> /install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c: In function
> `nbd_kernel_thread_aux':
> /install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:1177: warning:
> implicit declaration of function `reparent_to_init'

Yes, well, don't then.

> /install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c: In function
> `nbd_bread':
> /install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:4109: `BH_Mapped'
> undeclared (first use in this function)

Harder. What happened to it?

> `resync_block':
> /install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:4151: warning:
> implicit declaration of function `put_bh'

Oh, that's a definite 2.4 ism.


I really don't think this is going to fly in 2.2.20.

Peter