[libvirt] [PATCH] check device-mapper when building without storage mpath
Eric Blake
eblake at redhat.com
Fri Feb 18 18:43:36 UTC 2011
On 02/18/2011 01:21 AM, Osier Yang wrote:
> 于 2011年02月18日 11:00, Wen Congyang 写道:
>> When I build libvirt without libvirtd, I receive the following errors:
>> GEN virsh.1
>> CCLD virsh
>> ../src/.libs/libvirt.so: undefined reference to `dm_is_dm_major'
>> collect2: ld returned 1 exit status
>> make[3]: *** [virsh] Error 1
> Thanks for the fix, actually It can be reproduced simply by:
> % ./autogen.sh --with-storage-mpath=no
> % make
>
> As src/util/util.c invokes "dm_is_dm_major".
It's also reproducible with a mingw build:
CC libvirt_util_la-util.lo
../../src/util/util.c:48:26: fatal error: libdevmapper.h: No such file
or directory
compilation terminated.
I agree with danpb's approach that virIsDevMapperDevice should be a
no-op for other platforms, so I'll be coming up with something along
those lines soon.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110218/63cdd68c/attachment-0001.sig>
More information about the libvir-list
mailing list