* [linux-lvm] compile lvm2 with --enable-lvmlockd-sanlock on Ubuntu 1710, configure failed. For help, thanks
@ 2018-03-30 8:33 Guozhonghua
2018-04-02 2:16 ` Gang He
0 siblings, 1 reply; 3+ messages in thread
From: Guozhonghua @ 2018-03-30 8:33 UTC (permalink / raw)
To: linux-lvm
Hi,
I want to have a test of lvmlockd, while try to compile the lvm2, which version is LVM2.2.02.177, or 2.2.02.168.
With the configure:
./configure --enable-cmirrord --enable-debug --disable-devmapper --enable-lvmetad --enable-lvmpolld --enable-lvmlockd-sanlock --enable-dmeventd --enable-udev_sync --enable-cmdlib
But failed as below with configure error check:
checking for LOCKD_SANLOCK... no
configure: error: bailing out
The environment is Ubuntu 1710.
And I had install the sanlock as below:
root@u610:~/LVM2.2.02.177# dpkg -l |grep sanlock
ii libsanlock-client1 3.3.0-2.1 amd64 Shared storage lock manager (client library)
ii libsanlock-dev 3.3.0-2.1 amd64 Shared storage lock manager (development files)
ii libsanlock1 3.3.0-2.1 amd64 Shared storage lock manager (shared library)
ii libvirt-sanlock 3.6.0-1ubuntu5 amd64 Sanlock plugin for virtlockd
ii python-sanlock 3.3.0-2.1 amd64 Python bindings to shared storage lock manager
ii sanlock 3.3.0-2.1 amd64 Shared storage lock manager
Is there something wrong with it?
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] compile lvm2 with --enable-lvmlockd-sanlock on Ubuntu 1710, configure failed. For help, thanks
2018-03-30 8:33 [linux-lvm] compile lvm2 with --enable-lvmlockd-sanlock on Ubuntu 1710, configure failed. For help, thanks Guozhonghua
@ 2018-04-02 2:16 ` Gang He
0 siblings, 0 replies; 3+ messages in thread
From: Gang He @ 2018-04-02 2:16 UTC (permalink / raw)
To: linux-lvm
I can compile the code smoothly on openSUSE Tumbleweed, but I am not sure if my configuration is the same with yours.
tb0307-nd3:/usr/src/packages/BUILD/LVM2.2.02.177 # rpm -qa | grep -i san
sane-backends-1.0.27-3.3.x86_64
noto-sans-fonts-20170919-2.1.noarch
adobe-sourcesanspro-fonts-2.020-1.8.noarch
hplip-sane-3.17.9-2.2.x86_64
sanlock-devel-3.6.0-1.2.x86_64
libtsan0-gcc8-8.0.1+r257983-1.1.x86_64
libubsan0-7.3.1+r258025-1.3.x86_64
sane-backends-autoconfig-1.0.27-3.3.x86_64
libsanlock1-3.6.0-1.2.x86_64
ruby2.5-rubygem-rails-html-sanitizer-1.0.3-1.8.x86_64
libasan4-7.3.1+r258025-1.3.x86_64
liblsan0-gcc8-8.0.1+r257983-1.1.x86_64
sanlock-3.6.0-1.2.x86_64
Thanks
Gang
>>>
> Hi,
>
> I want to have a test of lvmlockd, while try to compile the lvm2, which
> version is LVM2.2.02.177, or 2.2.02.168.
>
> With the configure:
> ./configure --enable-cmirrord --enable-debug --disable-devmapper --enable-lvmetad
> --enable-lvmpolld --enable-lvmlockd-sanlock --enable-dmeventd --enable-udev_sync
> --enable-cmdlib
>
> But failed as below with configure error check:
>
> checking for LOCKD_SANLOCK... no
> configure: error: bailing out
>
> The environment is Ubuntu 1710.
>
> And I had install the sanlock as below:
> root@u610:~/LVM2.2.02.177# dpkg -l |grep sanlock
> ii libsanlock-client1 3.3.0-2.1
> amd64 Shared storage lock manager (client library)
> ii libsanlock-dev 3.3.0-2.1
> amd64 Shared storage lock manager (development files)
> ii libsanlock1 3.3.0-2.1
> amd64 Shared storage lock manager (shared library)
> ii libvirt-sanlock 3.6.0-1ubuntu5
> amd64 Sanlock plugin for virtlockd
> ii python-sanlock 3.3.0-2.1
> amd64 Python bindings to shared storage lock manager
> ii sanlock 3.3.0-2.1
> amd64 Shared storage lock manager
>
> Is there something wrong with it?
>
> Thanks
>
> _______________________________________________
> 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] compile lvm2 with --enable-lvmlockd-sanlock on Ubuntu 1710, configure failed. For help, thanks
@ 2018-04-04 7:40 Guozhonghua
0 siblings, 0 replies; 3+ messages in thread
From: Guozhonghua @ 2018-04-04 7:40 UTC (permalink / raw)
To: linux-lvm
Hi, All
I add one file as below, so compiled it successfully.
root@u610:/usr/lib/x86_64-linux-gnu/pkgconfig# cat libsanlock_client.pc
prefix=/usr
exec_prefix=/usr
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include
Name: libsanlock_client
Version: 3.3.0-2.1
Description: libsanlock_client
Requires: corosync
Cflags: -I${includedir}
While compile the code, I found one bug in the file, so there is one patch about.
+ int lv_info_with_seg_status(struct cmd_context *cmd,
+ const struct lv_segment *lv_seg,
+ struct lv_with_info_and_seg_status *status,
+ int with_open_count, int with_read_ahead)
- int lv_info_with_seg_status(struct cmd_context *cmd, const struct logical_volume *lv,
- const struct lv_segment *lv_seg, int use_layer,
- struct lv_with_info_and_seg_status *status,
- int with_open_count, int with_read_ahead)
{
return 0;
}
Thanks.
Guozhonghua.
> -----�ʼ�ԭ��-----
> ������: guozhonghua (Cloud)
> ����ʱ��: 2018��3��30�� 16:34
> �ռ���: 'linux-lvm@redhat.com'
> ����: compile lvm2 with --enable-lvmlockd-sanlock on Ubuntu 1710, configure
> failed. For help, thanks
>
>
> Hi,
>
> I want to have a test of lvmlockd, while try to compile the lvm2, which version is
> LVM2.2.02.177, or 2.2.02.168.
>
> With the configure:
> ./configure --enable-cmirrord --enable-debug --disable-devmapper
> --enable-lvmetad --enable-lvmpolld --enable-lvmlockd-sanlock --enable-dmeventd
> --enable-udev_sync --enable-cmdlib
>
> But failed as below with configure error check:
>
> checking for LOCKD_SANLOCK... no
> configure: error: bailing out
>
> The environment is Ubuntu 1710.
>
> And I had install the sanlock as below:
> root@u610:~/LVM2.2.02.177# dpkg -l |grep sanlock
> ii libsanlock-client1 3.3.0-2.1
> amd64 Shared storage lock manager (client library)
> ii libsanlock-dev 3.3.0-2.1
> amd64 Shared storage lock manager (development files)
> ii libsanlock1 3.3.0-2.1
> amd64 Shared storage lock manager (shared library)
> ii libvirt-sanlock 3.6.0-1ubuntu5
> amd64 Sanlock plugin for virtlockd
> ii python-sanlock 3.3.0-2.1
> amd64 Python bindings to shared storage lock manager
> ii sanlock 3.3.0-2.1
> amd64 Shared storage lock manager
>
> Is there something wrong with it?
>
> Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-04 7:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-30 8:33 [linux-lvm] compile lvm2 with --enable-lvmlockd-sanlock on Ubuntu 1710, configure failed. For help, thanks Guozhonghua
2018-04-02 2:16 ` Gang He
2018-04-04 7:40 Guozhonghua
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).