followup on FC1, 2.6 kernel and LVM2

Robert P. J. Day rpjday at mindspring.com
Tue Dec 2 13:28:31 UTC 2003


  just so others can take a crack at what i'm playing with, based on what
i read at www.sistina.com, there is no need for me to download and build
the "device-mapper" software since it's already included in the 2.6 kernel
under "RAID and LVM".  if you're running 2.6, feel free to do a quick configure
and build it in yourself.

  having done that, however, the next step would seem to be downloading
the latest LVM2 tarball from ftp://ftp.sistina.com/pub/LVM2/tools.  if i do that,
unpack, and run "configure" and "make", the make aborts with:
...
make[1]: Entering directory `/home/rpjday/SW/lvm/LVM2.2.00.08/lib'
gcc -c -I. -I../include -DLVM1_INTERNAL -DDEVMAPPER_SUPPORT -DO_DIRECT_SUPPORT -DHAVE_LIBDL -DHAVE_GETOPTLONG -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -O2 activate/activate.c -o activate/activate.o
gcc -c -I. -I../include -DLVM1_INTERNAL -DDEVMAPPER_SUPPORT -DO_DIRECT_SUPPORT -DHAVE_LIBDL -DHAVE_GETOPTLONG -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -O2 cache/lvmcache.c -o cache/lvmcache.o
In file included from activate/activate.c:9:
activate/activate.h:13:28: libdevmapper.h: No such file or directory
activate/activate.c: In function `library_version':
activate/activate.c:119: warning: implicit declaration of function `dm_get_library_version'
activate/activate.c: In function `driver_version':
activate/activate.c:133: warning: implicit declaration of function `dm_task_create'
activate/activate.c:133: error: `DM_DEVICE_VERSION' undeclared (first use in this function)
activate/activate.c:133: error: (Each undeclared identifier is reported only once
activate/activate.c:133: error: for each function it appears in.)
activate/activate.c:133: warning: assignment makes pointer from integer without a cast
activate/activate.c:138: warning: implicit declaration of function `dm_task_run'
activate/activate.c:141: warning: implicit declaration of function `dm_task_get_driver_version'
activate/activate.c:147: warning: implicit declaration of function `dm_task_destroy'
activate/activate.c: In function `_lv_info':
activate/activate.c:160: error: storage size of `dminfo' isn't known
activate/activate.c:160: warning: unused variable `dminfo'
make[1]: *** [activate/activate.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/rpjday/SW/lvm/LVM2.2.00.08/lib'
make: *** [lib] Error 2


  i didn't have time to dig into it any further this morning, so if anyone can
point out what i almost certainly screwed up, well, that would be just ducky.

rday








More information about the users mailing list