______________________________________________________________
> Od: "Pierre Labastie via blfs-support" 
> <[email protected]>
> Komu: [email protected]
> Datum: 08.02.2021 13:40
> Předmět: Re: [blfs-support] Can't compile libblockdev-2.25 without devmapper
>
On Mon, 2021-02-08 at 11:42 +0100, Filip Bartmann via blfs-support
 wrote:
 > Hello,
 > I'm trying to compile libblockdev-2.25 but it fails on dependency
 > devmapper which isn't in requirements and I don't find it in book.
 > The compilation ends:
 >  
 > make[1]: Entering directory '/build/libblockdev-2.25/tools'
 > gcc -DPACKAGE_NAME=\"libblockdev\" -DPACKAGE_TARNAME=\"libblockdev\"
 > -DPACKAGE_VERSION=\"2.25\" -DPACKAGE_STRING=\"libblockdev\ 2.25\" -
 > DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\" -
 > DPACKAGE=\"libblockdev\" -DVERSION=\"2.25\" -DNDEBUG=1 -
 > DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -
 > DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
 > DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
 > DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -
 > DHAVE_DLFCN_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -
 > DHAVE_SYS_FCNTL_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_LINUX_RANDOM_H=1 -
 > DHAVE_GLOB_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_MATH_H=1 -
 > DWITH_BD_BCACHE=/\*\*/ -DWITH_BD_ESCROW=/\*\*/ -DWITH_BD_BTRFS=/\*\*/
 > -DWITH_BD_LOOP=/\*\*/ -DWITH_BD_MDRAID=/\*\*/ -DWITH_BD_SWAP=/\*\*/ -
 > DWITH_BD_KBD=/\*\*/ -DWITH_BD_PART=/\*\*/ -DWITH_BD_FS=/\*\*/ -
 > DWITH_BD_VDO=/\*\*/ -DLIBMOUNT_NEW_ERR_API=1 -I.  -I./../include/  -
 > I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -
 > I/usr/include/bytesize -Wall -Wextra -Werror -std=gnu99 -MT
 > lvm_cache_stats-lvm-cache-stats.o -MD -MP -MF .deps/lvm_cache_stats-
 > lvm-cache-stats.Tpo -c -o lvm_cache_stats-lvm-cache-stats.o `test -f
 > 'lvm-cache-stats.c' || echo './'`lvm-cache-stats.c
 > In file included from lvm-cache-stats.c:7:
 > ./../include/blockdev/lvm.h:3:10: fatal error: libdevmapper.h: No
 > such file or directory
 >     3 | #include <libdevmapper.h>
 >       |          ^~~~~~~~~~~~~~~~
 > compilation terminated.
 > make[1]: *** [Makefile:509: lvm_cache_stats-lvm-cache-stats.o] Error
 > 1
 > make[1]: Leaving directory '/build/libblockdev-2.25/tools'
 > make: *** [Makefile:508: all-recursive] Error 1
 >  
 > I try to disable features which can trigger devmapper by this
 > configure:
 >  ./configure --prefix=/usr                 --
 > sysconfdir=/etc             --with-python3                --without-
 > gtk-doc             --without-nvdimm              --without-dm --
 > without-crypto  --without-dmraid --without-lvm --without-mpath --
 > without-lvm_dbus
 > but without sucess.
 >  
 > Thanks,
 > Filip Bartmann
 
 About book dependencies:
 libdevmapper is in the LVM2 package. And LVM2 is in the chain of
 required dependencies:
 libblockdev requires cryptsetup requires LVM2...
 
 Now, for disabling libdevmapper, you could try disabling the tools with
 --without-tools.
 
 Pierre
 
 
 
Hello,
thanks, but there 
http://www.linuxfromscratch.org/blfs/view/systemd/general/libblockdev.html
is cryptsetup not mentioned.
 
Filip Bartmann
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to