Problem compiling LVM on 2.2.19
Hi, list:
This is my first post, but I didn't see nothing regarding this issue at the list digests, so I send here:
ENVIRONMENT:
Red Hat 6.2
Kernel 2.2.19 (stock, directly downloaded from linuxkernel.org) LVM 1.0.1-rc3
I applied the LVM included patch for raw-io: linux-2.2.18-rawio.patch (as suggested for 2.2.19 somewhere else)
command I used to patch was patch -s -p1 < linux-2.2.18-rawio.patch It seemed to apply cleanly.
Then I run ./configure from base directory for LVM 1.0.1-rc3, and seemed to run properly (LVM 1.0.1-rc2 had an error on some keywork substitution)
Then I run make from the PATCHES directory, and there appeared the "lvm-1.0.1-rc3-2.2.19-LVM-Nav01.patch", which I applied to linux sources the same way than the previous one.
I configured then the kernel, marking LVM support as a module (support for /proc filesystem was already added to the kernel; the same goes with linnear support).
Then I run:
make dep
make clean
make bzImage
This seemed to go all well and good
Then, when make modules, the compilation stops. This seems to be the relevant part:
lvm.c: In function `lvm_do_lv_create':
lvm.c:2192: structure has no member named `de'lvm.c: In function `lvm_do_lv_remove':
lvm.c:2277: structure has no member named `de'lvm.c: At top level:
lvm.c:326: warning: __update_hardsectsize' declared static' but never defined
lvm.c:1891: warning: `__update_hardblocksize' defined but not used make[2]: *** [lvm.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.2.19/drivers/block' make[1]: *** [_modsubdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.19/drivers'
make: *** [_mod_drivers] Error 2
That line 2192, is this one:
lvm_gendisk.part[MINOR(lv_ptr->lv_dev)].de = lvm_fs_create_lv(vg_ptr, lv_ptr);
So, it seems, lvm_gendisk.part structure array lacks of that member "de" Any hints? Is this a known bug?
TIA
Signature · 5 lines
SALUD, Jes�s *** [email protected] ***
Hi again:
Quoted 3 lines · Jesus Manuel NAVARRO LOPEZ
Hi, list:
[...]
Quoted 17 lines
Then, when
make modules, the compilation stops. This seems to be the relevant part:
lvm.c: In function `lvm_do_lv_create':
lvm.c:2192: structure has no member named `de'lvm.c: In function `lvm_do_lv_remove':
lvm.c:2277: structure has no member named `de'lvm.c: At top level:
lvm.c:326: warning:__update_hardsectsize' declaredstatic' but never defined
lvm.c:1891: warning: `__update_hardblocksize' defined but not used make[2]: *** [lvm.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.2.19/drivers/block' make[1]: *** [_modsubdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.19/drivers'
make: *** [_mod_drivers] Error 2
...Still exactly same problem with lvm-1.0.1-rc4
Signature · 5 lines
SALUD, Jes�s *** [email protected] ***