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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20120324/7c8a001b/attachment.htm> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: make.txt URL: <http://listman.redhat.com/archives/libguestfs/attachments/20120324/7c8a001b/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: configure.txt URL: <http://listman.redhat.com/archives/libguestfs/attachments/20120324/7c8a001b/attachment-0001.txt>
Richard W.M. Jones
2012-Mar-25 08:37 UTC
[Libguestfs] trouble compiling libguestfs 1.17.21
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
Richard W.M. Jones
2012-Mar-25 09:53 UTC
[Libguestfs] trouble compiling libguestfs 1.17.21
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
Richard W.M. Jones
2012-Mar-25 10:06 UTC
[Libguestfs] trouble compiling libguestfs 1.17.21
On Sun, Mar 25, 2012 at 02:57:50AM -0700, THO HUYNH wrote:> yes I`m using Fedora 16 with libguestfs version 1.16.5 already installed.I have a similar system so I'll try a build from the tarball now. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-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