[linux-lvm] Problems compiling device-mapper 1.00.08 on RedHat 7.2 with linux-2.4.22

Donald Murray P.Eng. donald.murray at pason.com
Mon Mar 8 12:42:01 UTC 2004


Is anyone running LVM2 on RedHat 7.2?

I'm trying to build LVM2 support for a RedHat 7.2 box. We use a 2.4.22 kernel 
from kernel.org. We only want LVM so we can do snapshot-based backups of a MySQL 
database. 

Following the instructions in the device-mapper 1.00.08 INSTALL, I've successfully
completed the following steps:
    ./configure --with-kernel-dir=/home/dmurray/kernel/linux-2.4.22
    make apply-patches
    make menuconfig 
    (LVM, Device-mapper, Mirror (RAID-1) support all compiled into the kernel)
    make dep && make bzImage && make modules

So far, so good.

When I tried to build the libdevmapper.so library, it failed on an undeclared
DM_LIST_VERSIONS:

dmurray at dmdev:/home/dmurray/kernel/device-mapper.1.00.08> make
make -C include
make[1]: Entering directory `/home/dmurray/kernel/device-mapper.1.00.08/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/dmurray/kernel/device-mapper.1.00.08/include'
make -C man
make[1]: Entering directory `/home/dmurray/kernel/device-mapper.1.00.08/man'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/dmurray/kernel/device-mapper.1.00.08/man'
make -C lib
make[1]: Entering directory
`/home/dmurray/kernel/device-mapper.1.00.08/lib' gcc -c -Iioctl
-I. -I../include -I/home/dmurray/kernel/linux-2.4.22/include
-DHAVE_GETOPTLONG -fPIC -Wall -Wundef -Wshadow -Wcast-align
-Wwrite-strings -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -Winline -O2 ioctl/libdevmapper.c -o
ioctl/libdevmapper.o
ioctl/libdevmapper.c:84: `DM_LIST_VERSIONS' undeclared here (not in a function)
ioctl/libdevmapper.c:84: initializer element is not constant
ioctl/libdevmapper.c:84: (near initialization for `_cmd_data_v4[16].cmd')
make[1]: *** [ioctl/libdevmapper.o] Error 1
make[1]: Leaving directory `/home/dmurray/kernel/device-mapper.1.00.08/lib'
make: *** [lib] Error 2
dmurray at dmdev:/home/dmurray/kernel/device-mapper.1.00.08>

Any suggestions? Should we stick with LVM1 instead on RedHat 7.2?



 ------------------------------------------ 
 Donald Murray, P.Eng.
 Senior Software Engineer
 Pason Systems Corp.
 Direct: (403) 301-3473




More information about the linux-lvm mailing list