RE: [FEDORA-LIST]: followup on FC1, 2.6 kernel and LVM2

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

 



Hi,

I had the same problem as you. But I fix it. When you compile LVM2, you
must have the library "libdevmapper.h" install on your system. This
library comes from "device-mapper" package, so you must install this
package before compile LVM2. I just do a ./configure, make into
device-mapper folder without patching the kernel. I also compile the
kernel 2.6 with device mapper support (not as a module).

Hope this will help you.

Regards,
Yanick Quirion

> -----Original Message-----
> From: Robert P. J. Day [mailto:rpjday@xxxxxxxxxxxxxx]
> Sent: 2 December, 2003 08:29
> To: fedora-list@xxxxxxxxxx
> Subject: [FEDORA-LIST]: followup on FC1, 2.6 kernel and LVM2
> 
>   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
> 
> 
> 
> 
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux