From: Richard W.M. Jones <rjones@redhat.com>
To: THO HUYNH <feeliwood@yahoo.com>
Cc: "libguestfs@redhat.com" <libguestfs@redhat.com>
Sent: Monday, 26 March 2012, 1:38
Subject: Re: [Libguestfs] trouble compiling libguestfs 1.17.21
On Sun, Mar 25, 2012 at 07:20:16AM -0700, THO HUYNH wrote:
> here is the two results I got from three commands:
>
> $ grep for_each src/libguestfs.syms
>
> guestfs___for_each_disk;
>
>
> $ nm -D src/.libs/libguestfs.so | grep for_each
> no result returned
This is the problem.
I understand the bug too: it's because you don't have the
libxml2-devel package installed. From your configure output:
checking for PCRE... yes
checking for magic_file in
-lmagic... no
checking for LIBVIRT... yes
checking for LIBXML2... no <-----
checking for LIBCONFIG... no
checking for HIVEX... yes
checking for FUSE... no
It should be possible to build libguestfs without libxml2, so I have
pushed the following patch which should fix the problem:
https://github.com/libguestfs/libguestfs/commit/f1d10672c7da94f8983b3b5d434e64b127da1242Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjonesvirt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top