[ENBD] Problems compiling 2.4.26a on RH6.2 kernel 2.2.19

Nelson Vieira enbd@lists.community.tummy.com
Fri, 11 Jan 2002 11:12:37 -0600


I'm having some problems compiling 2.4.26a on a RH6.2 box with kernel
2.2.19.

I had no problems compiling on a RH7.2 with kernel 2.4.9.

Here's the error I get:

gcc -O2 -Wall -D_LARGEFILE64_SOURCE -D__KERNEL__ -DMODULE -DDEBUG=0 -I/home/
neno/nbd-2.4.26a/linux/include -I/usr/src/linux/include  -c -o nbd.o
/home/neno/nbd-2.4.26a/linux/drivers/block/nbd.c
/home/neno/nbd-2.4.26a/linux/drivers/block/nbd.c:227: warning: `module_init'
redefined
/usr/src/linux/include/linux/init.h:117: warning: this is the location of
the previous definition
/home/neno/nbd-2.4.26a/linux/drivers/block/nbd.c:228: warning: `module_exit'
redefined
/usr/src/linux/include/linux/init.h:121: warning: this is the location of
the previous definition
/home/neno/nbd-2.4.26a/linux/drivers/block/nbd.c:259: warning: static
declaration for `mark_buffer_protected' follows non-static
/home/neno/nbd-2.4.26a/linux/drivers/block/nbd.c:4811: parse error before
`nbd_cleanup'
/home/neno/nbd-2.4.26a/linux/drivers/block/nbd.c:4812: warning: return-type
defaults to `int'
/home/neno/nbd-2.4.26a/linux/drivers/block/nbd.c: In function `nbd_cleanup':
/home/neno/nbd-2.4.26a/linux/drivers/block/nbd.c:4902: warning: control
reaches end of non-void function
/home/neno/nbd-2.4.26a/linux/drivers/block/nbd.c: In function
`cleanup_module':
/home/neno/nbd-2.4.26a/linux/drivers/block/nbd.c:4905: warning: control
reaches end of non-void function
make[1]: *** [nbd.o] Error 1
make[1]: Leaving directory `/tmp'
make: *** [module] Error 2

Any ideas?

Thanks.