[Libguestfs] some compile errors

Zhi Yong Wu zwu.kernel at gmail.com
Tue Oct 28 15:36:15 UTC 2014

Can you let me know how those functions are populated? or where they are from?

It is not from a regular libguestfs version, i cut down some
directories based on my requirement.

autogen.sh  build-aux     daemon     gnulib
libtool-kill-dependency_libs.sh  maint.mk     README  subdir-rules.mk
bootstrap   configure.ac  generator   m4
Makefile.am  src

On Tue, Oct 28, 2014 at 11:29 PM, Richard W.M. Jones <rjones at redhat.com> wrote:
> On Tue, Oct 28, 2014 at 11:22:47PM +0800, Zhi Yong Wu wrote:
>> HI, Richard
>> Can you know what is missing when the following issue took place?
>> #gcc mount-local.c -o mount-local -lguestfs
>> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libguestfs.so:
>> undefined reference to `guestfs__internal_test_rconstoptstring'
>> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libguestfs.so:
>> undefined reference to `guestfs__internal_test_rstringlist'
> [... and many more ...]
> The command should work.
> However what version of libguestfs?  What distro?  Did you compile it
> yourself or get it from some package?  GCC 4.1.2 dates from 2007, so
> I'm guessing that you are trying this on something very old.
> Rich.
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-p2v converts physical machines to virtual machines.  Boot with a
> live CD or over the network (PXE) and turn machines into KVM guests.
> http://libguestfs.org/virt-v2v


Zhi Yong Wu

More information about the Libguestfs mailing list