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@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list