trouble compiling libguestfs 1.17.21
I downloaded the libguestfs-1.17.21.tar.gz tarball from www.libguestfs.org I tried to compile the package but I got this error in "make" step: virt_df-domains.o: In function `add_domain': /home/feeliwood/Downloads/libguestfs-1.17.21/df/domains.c:274: undefined reference to `guestfs___for_each_disk' collect2: ld returned 1 exit status make[2]: *** [virt-df] Error 1 make[2]: Leaving directory `/home/feeliwood/Downloads/libguestfs-1.17.21/df' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/feeliwood/Downloads/libguestfs-1.17.21' make: *** [all] Error 2 Here is the result of "./configure" step : This is how we have configured the optional components for you today: Daemon .............................. yes Appliance ........................... yes QEMU ................................ /usr/bin/qemu-kvm OCaml bindings ...................... no Perl bindings ....................... no Python bindings ..................... yes Ruby bindings ....................... no Java bindings ....................... no Haskell bindings .................... no PHP bindings ........................ yes Erlang bindings ..................... yes guestfish and C virt tools .......... yes Perl virt tools ..................... yes virt-resize ......................... no FUSE filesystem ..................... no gobject bindings .................... no gobject introspection ............... no I attached configure.txt and makefile.txt which show log of"./configure" and " make" process in case you need more info. Do you have any hints? Thanks.
On Sat, Mar 24, 2012 at 09:12:08PM -0700, THO HUYNH wrote:
I downloaded the libguestfs-1.17.21.tar.gz tarball from www.libguestfs.org I tried to compile the package but I got this error in "make" step:
virt_df-domains.o: In function `add_domain': /home/feeliwood/Downloads/libguestfs-1.17.21/df/domains.c:274: undefined reference to `guestfs___for_each_disk' [...] Do you have any hints?
This looks like a bug actually. I've not seen it happen here however. virt-df is the only program that requires this symbol, so if you like you can just bypass that subdirectory and continue the build. Edit 'Makefile.am' and change: # virt-tools in C. - SUBDIRS += align cat df edit format inspector rescue + SUBDIRS += align cat edit format inspector rescue Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
BTW, is this Fedora or RHEL, and what precise version? Do you have another version of libguestfs installed already when you're trying to build? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
participants (2)
-
Richard W.M. Jones -
THO HUYNH