lvm can't compile on 2.5.1-pre5

Jeff Chua (jeffchua@silk.corp.fedex.com)
Mon, 3 Dec 2001 11:32:50 +0800 (SGT)


Got the following error compiling the kernel (with lvm_1.0.1-rc4 patch)

make[2]: Entering directory `/v6/src/251p5/linux/drivers/md'
gcc -D__KERNEL__ -I/v6/src/251p5/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include
/v6/src/251p5/linux/include/linux/modversions.h -c -o lvm.o lvm.c
lvm.c: In function `lvm_init':
lvm.c:458: `gendisk_head' undeclared (first use in this function)
lvm.c:458: (Each undeclared identifier is reported only once
lvm.c:458: for each function it appears in.)
lvm.c:476: warning: passing arg 2 of `blk_queue_make_request_Rbb362cea'
from incompatible pointer type
lvm.c: In function `lvm_cleanup':
lvm.c:513: `gendisk_head' undeclared (first use in this function)
lvm.c:526: `hardsect_size' undeclared (first use in this function)
lvm.c: In function `lvm_user_bmap':
lvm.c:1117: structure has no member named `b_rdev'
lvm.c:1119: structure has no member named `b_rsector'
lvm.c:1125: structure has no member named `b_rdev'
lvm.c:1125: structure has no member named `b_rdev'
lvm.c:1125: structure has no member named `b_rdev'
lvm.c:1125: structure has no member named `b_rdev'
lvm.c:1126: structure has no member named `b_rsector'
lvm.c:1126: structure has no member named `b_rsector'
lvm.c:1126: structure has no member named `b_rsector'
lvm.c:1126: structure has no member named `b_rsector'
lvm.c: In function `lvm_map':
lvm.c:1195: structure has no member named `b_rdev'
lvm.c:1199: structure has no member named `b_rsector'
lvm.c:1319: structure has no member named `b_rdev'
lvm.c:1320: structure has no member named `b_rsector'
lvm.c: In function `lvm_geninit':
lvm.c:2783: `hardsect_size' undeclared (first use in this function)
lvm.c: In function `_queue_io':
lvm.c:2792: structure has no member named `b_reqnext'
lvm.c:2793: structure has no member named `b_reqnext'
lvm.c: In function `_flush_io':
lvm.c:2818: structure has no member named `b_reqnext'
lvm.c:2819: structure has no member named `b_reqnext'
lvm.c:2821: warning: passing arg 1 of `generic_make_request_R9c6b6d2d'
makes pointer from integer without a cast
lvm.c:2821: too many arguments to function `generic_make_request_R9c6b6d2d'
make[2]: *** [lvm.o] Error 1
make[2]: Leaving directory `/v6/src/251p5/linux/drivers/md'
make[1]: *** [_modsubdir_md] Error 2
make[1]: Leaving directory `/v6/src/251p5/linux/drivers'
make: *** [_mod_drivers] Error 2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/