Re: [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
On Sun, Mar 25, 2012 at 11:06:55AM +0100, Richard W.M. Jones wrote:
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.
It builds OK for me here, which is not to say that it's not a bug (it certainly looks like one) just that I cannot reproduce it. If the symbol exported from the library? On my F16 machine, the symbol is added correctly to the export script: $ grep for_each src/libguestfs.syms guestfs___for_each_disk; and exported correctly from the library: $ nm -D src/.libs/libguestfs.so | grep for_each 00000000000704b0 T guestfs___for_each_disk You could also try looking at the link command: make -C df V=1 Rich. PS. I do see another, completely unrelated bug: make[3]: Leaving directory `/home/rich/d/libguestfs-1.17.21/generator' rake build rake aborted! no such file to load -- rdoc/task (See full trace by running task with --trace) which appears to caused by fd7a5a8bbdc69b9d2a92f6d05ac555334d0516bf. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
________________________________ From: Richard W.M. Jones <rjones@redhat.com> To: THO HUYNH <feeliwood@yahoo.com> Cc: libguestfs@redhat.com Sent: Sunday, 25 March 2012, 17:35 Subject: Re: [Libguestfs] trouble compiling libguestfs 1.17.21 On Sun, Mar 25, 2012 at 11:06:55AM +0100, Richard W.M. Jones wrote:
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.
It builds OK for me here, which is not to say that it's not a bug (it certainly looks like one) just that I cannot reproduce it. If the symbol exported from the library? On my F16 machine, the symbol is added correctly to the export script: $ grep for_each src/libguestfs.syms guestfs___for_each_disk; and exported correctly from the library: $ nm -D src/.libs/libguestfs.so | grep for_each 00000000000704b0 T guestfs___for_each_disk You could also try looking at the link command: make -C df V=1 Rich. PS. I do see another, completely unrelated bug: make[3]: Leaving directory `/home/rich/d/libguestfs-1.17.21/generator' rake build rake aborted! no such file to load -- rdoc/task (See full trace by running task with --trace) which appears to caused by fd7a5a8bbdc69b9d2a92f6d05ac555334d0516bf. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
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 [root@Fedora16 libguestfs-1.17.21]# make -C df V=1 make: Entering directory `/home/feeliwood/Downloads/libguestfs-1.17.21/df' make -C ../src libguestfs.la make[1]: Entering directory `/home/feeliwood/Downloads/libguestfs-1.17.21/src' make -C ../generator stamp-generator make[2]: Entering directory `/home/feeliwood/Downloads/libguestfs-1.17.21/generator' make[2]: `stamp-generator' is up to date. make[2]: Leaving directory `/home/feeliwood/Downloads/libguestfs-1.17.21/generator' make[1]: Leaving directory `/home/feeliwood/Downloads/libguestfs-1.17.21/src' bash ../libtool-kill-dependency_libs.sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -std=gnu99 -DGUESTFS_WARN_DEPRECATED=1 -I../src -I../src -I../fish -I./../gnulib/lib -I../gnulib/lib -DLOCALEBASEDIR=\""/usr/local/share/locale"\" -g -O2 -o virt-df virt_df-config.o virt_df-inspect.o virt_df-keys.o virt_df-options.o virt_df-virt.o virt_df-domains.o virt_df-df.o virt_df-main.o virt_df-output.o ../src/libguestfs.la ../gnulib/lib/libgnu.la -lvirt -ldl -lm libtool: link: gcc -std=gnu99 -std=gnu99 -DGUESTFS_WARN_DEPRECATED=1 -I../src -I../src -I../fish -I./../gnulib/lib -I../gnulib/lib -DLOCALEBASEDIR=\"/usr /local/share/locale\" -g -O2 -o .libs/virt-df virt_df-config.o virt_df-inspect.o virt_df-keys.o virt_df-options.o virt_df-virt.o virt_df-domains.o virt_df-df.o virt_df-main.o virt_df-output.o ../src/.libs/libguestfs.so ../gnulib/lib/.libs/libgnu.a -lvirt -ldl -lm -Wl,-rpath -Wl,/usr/local/lib 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: *** [virt-df] Error 1 make: Leaving directory `/home/feeliwood/Downloads/libguestfs-1.17.21/df' ________________________________ From: Richard W.M. Jones <rjones@redhat.com> To: THO HUYNH <feeliwood@yahoo.com> Cc: libguestfs@redhat.com Sent: Sunday, 25 March 2012, 17:35 Subject: Re: [Libguestfs] trouble compiling libguestfs 1.17.21 On Sun, Mar 25, 2012 at 11:06:55AM +0100, Richard W.M. Jones wrote:
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.
It builds OK for me here, which is not to say that it's not a bug (it certainly looks like one) just that I cannot reproduce it. If the symbol exported from the library? On my F16 machine, the symbol is added correctly to the export script: $ grep for_each src/libguestfs.syms guestfs___for_each_disk; and exported correctly from the library: $ nm -D src/.libs/libguestfs.so | grep for_each 00000000000704b0 T guestfs___for_each_disk You could also try looking at the link command: make -C df V=1 Rich. PS. I do see another, completely unrelated bug: make[3]: Leaving directory `/home/rich/d/libguestfs-1.17.21/generator' rake build rake aborted! no such file to load -- rdoc/task (See full trace by running task with --trace) which appears to caused by fd7a5a8bbdc69b9d2a92f6d05ac555334d0516bf. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
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/f1d10672c7da94f8983b3b5d434e... 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
I built ok, but it seemed that I couldn`t install the virt-tools correctly. Maybe I`ll use the virt-tools without needing to install, using the "run" script in the top directory. But what big differences between stable branch and development branch ? Is there any chance that I can get troubles for using development branch instead of stable branch? ________________________________ 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/f1d10672c7da94f8983b3b5d434e... 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
On Mon, Mar 26, 2012 at 12:45:14AM -0700, THO HUYNH wrote:
I built ok, but it seemed that I couldn`t install the virt-tools correctly.
What was the error?
Maybe I`ll use the virt-tools without needing to install, using the "run" script in the top directory. But what big differences between stable branch and development branch ? Is there any chance that I can get troubles for using development branch instead of stable branch?
The stable branch was forked from the development branch about two months ago, and it only gets bug fixes. The development branch gets new features as well. However there is really no problem using the development branch -- I use it all the time, and it works just fine. 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
It was not an error. Here are 3 commands I used : ./configure --prefix='/home/feeliwood/test/' make make install But I couldn`t find the copy_over program anywhere inside path /home/feeliwood/test/ ________________________________ 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, 14:56 Subject: Re: [Libguestfs] trouble compiling libguestfs 1.17.21 On Mon, Mar 26, 2012 at 12:45:14AM -0700, THO HUYNH wrote:
I built ok, but it seemed that I couldn`t install the virt-tools correctly.
What was the error?
Maybe I`ll use the virt-tools without needing to install, using the "run" script in the top directory. But what big differences between stable branch and development branch ? Is there any chance that I can get troubles for using development branch instead of stable branch?
The stable branch was forked from the development branch about two months ago, and it only gets bug fixes. The development branch gets new features as well. However there is really no problem using the development branch -- I use it all the time, and it works just fine. 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
On Mon, Mar 26, 2012 at 08:58:41AM -0700, THO HUYNH wrote:
It was not an error. Here are 3 commands I used :
./configure --prefix='/home/feeliwood/test/' make make install
But I couldn`t find the copy_over program anywhere inside path /home/feeliwood/test/
The example programs don't get installed by 'make install', but you can run them from the build directory, eg. ./run examples/copy_over [...] 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
participants (2)
-
Richard W.M. Jones -
THO HUYNH