[ENBD] 2.4.31 compile problems

Alberto Barcelón enbd@lists.community.tummy.com
Thu, 13 Feb 2003 17:41:20 +0100


	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)

	This is the error:

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'
/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)
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:4109: (Each
undeclared identifier is reported only once
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:4109: for each
function it appears in.)
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:4111: warning:
implicit declaration of function `get_bh'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c: In function
`resync_block':
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:4151: warning:
implicit declaration of function `put_bh'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c: In function
`resync_make_request':
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5174: structure has
no member named `hard_nr_sectors'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5175: structure has
no member named `hard_sector'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c: In function
`__local_wait_on_request_timeout':
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5303: parse error
before `static'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5295: warning: unused
variable `lo'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5291: warning: unused
variable `err'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c: At top level:
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5315: parse error
before `if'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c: In function
`delete_req':
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5328: `lo' undeclared
(first use in this function)
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c: At top level:
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5341: warning: type
defaults to `int' in declaration of `ngroup'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5341: `lo' undeclared
here (not in a function)
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5341: warning: data
definition has no type or storage class
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5343: parse error
before `for'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5346: warning: type
defaults to `int' in declaration of `pos'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5346: conflicting
types for `pos'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5324: previous
declaration of `pos'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5346: invalid type
argument of `->'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5346: parse error
before `)'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5351: parse error
before string constant
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5351: warning: type
defaults to `int' in declaration of `printk'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5351: warning: data
definition has no type or storage class
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5351: parse error
before string constant
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5351: warning: type
defaults to `int' in declaration of `printk'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5351: warning: data
definition has no type or storage class
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5352: warning: type
defaults to `int' in declaration of `err'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5352: warning: data
definition has no type or storage class
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5354: parse error
before `goto'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5368: warning: type
defaults to `int' in declaration of `err'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5368: redefinition of
`err'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5352: `err'
previously defined here
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5368: initializer
element is not constant
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5368: warning: data
definition has no type or storage class
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5369: parse error
before `}'
/install/cluster/nbd-2.4.31/linux/drivers/block/enbd.c:5326: warning:
`delete_req' defined but not used
make[1]: *** [enbd.o] Error 1

	Any library or kernel config requeriment?

	Thanks.


--------------------------------------------
Alberto Barcelon Perales
ProRed Comunicaciones, S.L.
Cº Viejo de Godella, 8 BAJO 2-C
46025 VALENCIA
Tel: 902 153753 - 96 3173099
Fax: 96 3173130
alberto@prored.es
http://www.prored.es
--------------------------------------------