Re: [linux-lvm] Problems encountered in compiling lvm packages using the musl Toolchain

Zdenek Kabelac <[email protected]>
Newsgroups dev.linux.lists.linux-lvm
Message-ID <[email protected]>
Dne 26. 07. 23 v 4:02 程智星 napsal(a):
> hi,friend:
> 
> I encountered the following problems when compiling lvm packages using the 
> musl Toolchain:
> 
> Question 1 :
> 
> | vgimportdevices.c: In function 'vgimportdevices':
> | vgimportdevices.c:148:30: error: 'LOCK_EX' undeclared (first use in this 
> function); did you mean 'LOCKED'?
> |   148 |  if (!lock_devices_file(cmd, LOCK_EX)) {
> |       |                              ^~~~~~~
> |       |                              LOCKED
> | vgimportdevices.c:148:30: note: each undeclared identifier is reported only 
> once for each function it appears in
> 
> About LOCK_EX definition is in file.h, I can compile this package by adding 
> this Header file in vgimportdevices.c:
> 
> #include <sys/file.h>
> 
> Could you add this Header file to our source code to fix this problem or do 
> you have a better solution?
> 
> 
> Looking forward to your reply!
> 

Hi

Commit a1a1439215f56335a06ae5ac6ca73b5e0d734760 has been added upstream Feb 7.
So please make sure you are compiling latest upstream.

Note: recently the git HEAD has been moved to https://gitlab.com/lvmteam/lvm2
although sourceware git mirror should also work.

Regards

Zdenek

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.