[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] building LVM2 with a 2.6 kernel



  (i posted on this to the LVM mailing list already, and someone emailed
me, suggesting it might be appropriate for this list instead, so my
apologies if you're on both lists and have to read this twice.)

  i want to add LVM2 support to my redhat FC1 system running a 
2.6.0-test11 kernel. as i read it, the 2.6 kernel already has DM built in, 
and i've configured it to add that support.  because of that, as i 
understand it, there is now no need for me to install DM separately -- 
it's already there, right?

  given that, i downloaded LVM2, and did

  $ ./configure
  $ make

and got

...

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


  have i misconfigured something?  should device mapper built into
the 2.6 kernel be sufficient to simply configure and make LVM2?
where is that libdevmapper.h file supposed to be if i haven't 
explicitly added DM myself?

rday




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]