Problems with linking lvm statically with musl

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

 



Hello,

I am facing some problems with linking LVM2.2.02.177 statically with musl, using Alpine Linux as a sysroot/chroot.

I needed to apply two patches:
- https://git.alpinelinux.org/cgit/aports/tree/main/lvm2/fix-stdio-usage.patch?h=3.7-stable - https://git.alpinelinux.org/cgit/aports/tree/main/lvm2/mallinfo.patch?h=3.7-stable

It would be nice if you guys could upsptream it.

I've noticed that I am unable to link tools/dmsetup, as with LDFLAGs='-static' CFLAGS='-static' it's unable to find libdevmapper.a. It passes multiple -L directories, one of them is ../libdm, however, the libdevmapper is under ../libdm/ioctl directory, adding another -L or symlinking libdevmapper.a -> ioctl/libdevmapper.a does the trick

Is the ioctl location intentional or it's like that by bug?

-- Piotr.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux