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