libguestfs binaries missing when built from source code
Hello, This is regarding the binary missing from libguestfs built from the source code(v 1.30.3). Here there are some binaries missing when compared to the libguestfs rpm installed from the rhel6-server repo. Below are the list of binaries
From the os rpm libguestfs-tools-c-1.20.11-2.el6.x86_64:
From the one built from source code(v 1.30.3) is :
guestfish guestfish guestmount guestmount virt-alignment-scan virt-alignment-scan virt-cat virt-cat virt-copy-in virt-copy-in virt-copy-out virt-copy-out virt-df virt-df virt-edit virt-edit virt-filesystems virt-filesystems virt-format virt-format virt-inspector2 virt-inspector virt-ls virt-ls virt-rescue virt-rescue virt-resize virt-sparsify virt-sysprep virt-tar-in virt-tar-in virt-tar-out virt-tar-out The highlighted binaries are missing from the v 1.30.3. Below is the content inside the tar file: [root@rhel6.3 SOURCES]# ls appliance-1.30.1.tar.xz gdk-pixbuf-2.21.7.tar.gz libguestfs-1.30.3 linsee.env atk-1.29.2.tar.gz glib-2.27.3.tar.gz libguestfs-1.30.3.tar.gz seehelp.content augeas-1.0.0.tar.gz gtk+-2.24.4.tar.gz libguestfs-post.env seehelp.template [root@rhel6.3 SOURCES]# cd libguestfs-1.30.3 [root@rhel6.3 libguestfs-1.30.3]# ls aclocal.m4 configure.ac gnulib Makefile.in sparsify align contrib GNUmakefile make-fs src appliance COPYING gobject mllib subdir-rules.mk AUTHORS COPYING.LIB golang ocaml sysprep autogen.sh csharp guestfs-release-notes.pod ocaml-link.sh tests bash customize guestfs-release-notes.txt p2v test-tool bindtests daemon HACKING perl tmp bootstrap df haskell php TODO BUGS dib html pick-guests.pl.in tools bugs-in-changelog.sh diff inspector po update-bugs.sh build-aux edit installcheck.sh.in po-docs v2v builder erlang java podwrapper.pl.in valgrind-suppressions cat examples libtool-kill-dependency_libs.sh python zanata-pull.sh cfg.mk fish logo README zanata.xml ChangeLog format lua rescue common-rules.mk fuse m4 resize config.h.in generator maint.mk ruby configure get-kernel Makefile.am run.in What is missing here that results in missing those binaries? Regards, Emlyn Jose The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
On Tue, Jul 25, 2017 at 01:20:15PM +0000, emlyn.jose@wipro.com wrote:
Hello,
This is regarding the binary missing from libguestfs built from the source code(v 1.30.3). Here there are some binaries missing when compared to the libguestfs rpm installed from the rhel6-server repo. Below are the list of binaries
From the os rpm libguestfs-tools-c-1.20.11-2.el6.x86_64:
From the one built from source code(v 1.30.3) is :
It's very unclear. What exact steps are you using to build libguestfs? Please also read: http://libguestfs.org/guestfs-building.1.html Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Hello Richard, I have been following that link to build libguestfs that includes virt-resize binary. But it is found that the libguetfs is split into another libguestfs-tools-c which actually provides this virt-resize binary. I would like to know at which part of the spec the virt-binary is created. I mean, what actually provides this binary? Regards, Emlyn Jose -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, July 25, 2017 7:11 PM To: Emlyn Jose (GIS) <emlyn.jose@wipro.com> Cc: libguestfs@redhat.com Subject: Re: libguestfs binaries missing when built from source code ** This mail has been sent from an external source ** On Tue, Jul 25, 2017 at 01:20:15PM +0000, emlyn.jose@wipro.com wrote:
Hello,
This is regarding the binary missing from libguestfs built from the source code(v 1.30.3). Here there are some binaries missing when compared to the libguestfs rpm installed from the rhel6-server repo. Below are the list of binaries
From the os rpm libguestfs-tools-c-1.20.11-2.el6.x86_64:
From the one built from source code(v 1.30.3) is :
It's very unclear. What exact steps are you using to build libguestfs? Please also read: https://clicktime.symantec.com/a/1/nXGvKiNusHqwQDCy_-Q6InJweRyUPu_vYX7hCzDfot8=?d=etlr5ZEpSvImBe_1oabLfBMAqd3wv5ZvK4lbpiIEAeCyC9aTVgBcj5L4TYdEzZSTHyaC55-Bxsf2YTE-kmXViqThO759lKg8AKKmwPyOBknGKu00FlIM_vxPgeOt74wSM6pj9PTfw1dhuyda9-ieeVTeAYUNQ0o0WwPq0kaBj81PqQz-A-hi4a2mEOKW3FS5oVHPbQy5tWJhL7fWP1_DYuSg-PFRcpstr6J5E_bcWg1o4Ri9eqYHFn6ATrNclkJ6LSaxxOCLqrxiUxn6C2qcNWXtjfaWvlzTeYu2CwS82FxmG2Gr8dn1WrU4bXFxCYD0aFS_YpsbbSxVZNxKIeuf-RCVdUOyv42-KrOY2FOpfgSXeJybISmaadMS1_SJ49v8Xi3Q3Mw%3D&u=http%3A%2F%2Flibguestfs.org%2Fguestfs-building.1.html Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/POPFVfPaE0OrWAsw4IH6nRnh__Aa83l-4GiHU8wn3jU=?d=etlr5ZEpSvImBe_1oabLfBMAqd3wv5ZvK4lbpiIEAeCyC9aTVgBcj5L4TYdEzZSTHyaC55-Bxsf2YTE-kmXViqThO759lKg8AKKmwPyOBknGKu00FlIM_vxPgeOt74wSM6pj9PTfw1dhuyda9-ieeVTeAYUNQ0o0WwPq0kaBj81PqQz-A-hi4a2mEOKW3FS5oVHPbQy5tWJhL7fWP1_DYuSg-PFRcpstr6J5E_bcWg1o4Ri9eqYHFn6ATrNclkJ6LSaxxOCLqrxiUxn6C2qcNWXtjfaWvlzTeYu2CwS82FxmG2Gr8dn1WrU4bXFxCYD0aFS_YpsbbSxVZNxKIeuf-RCVdUOyv42-KrOY2FOpfgSXeJybISmaadMS1_SJ49v8Xi3Q3Mw%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
On Tue, Aug 01, 2017 at 12:55:21PM +0000, emlyn.jose@wipro.com wrote:
Hello Richard,
I have been following that link to build libguestfs that includes virt-resize binary. But it is found that the libguetfs is split into another libguestfs-tools-c which actually provides this virt-resize binary.
In the Fedora packaging we put virt-resize into libguestfs-tools-c, but in the upstream sources the binary is built in the resize/ subdirectory. http://libguestfs.org/guestfs-hacking.1.html#source-code-subdirectories
I would like to know at which part of the spec the virt-binary is created. I mean, what actually provides this binary?
Running ‘make’ builds all the binaries. If you mean the binary is not being created during ‘make’, then it's likely you have some missing build dependencies, most probably the OCaml compiler. 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
Hi Richard, Thank you for the feedback! I have been following them and facing the below issue while building the same: ….. podwrapper.pl: wrote virt-v2v-test-harness.1 podwrapper.pl: wrote ../../html/virt-v2v-test-harness.1.html touch stamp-virt-v2v-test-harness.pod ocamlfind ocamlopt -g -annot -warn-error CDEFLMPSUVYZX-3 -package str,unix,libvirt -I ../../src/.libs -I ../../gnulib/lib/.libs -I ../../ocaml -I ../../mllib -I ../../v2v -c v2v_test_harness.ml -o v2v_test_harness.cmx AR libv2vth.a File "v2v_test_harness.ml", line 205, characters 14-26: Error: Unbound value D.create_xml make[2]: *** [v2v_test_harness.cmx] Error 2 make[2]: Leaving directory `/root/rpmbuild_oldlib/BUILD/libguestfs-1.30.3/v2v/test-harness' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/rpmbuild_oldlib/BUILD/libguestfs-1.30.3' make: *** [all] Error 2 I have listed the available ocaml packages installed on my server: ocaml-runtime-3.11.2-2.el6.x86_64 ocaml-findlib-devel-1.2.5-5.el6.x86_64 ocaml-fileutils-devel-0.4.0-4.1.el6.x86_64 ocaml-libvirt-0.6.1.0-6.4.el6.x86_64 ocaml-3.11.2-2.el6.x86_64 ocaml-findlib-1.2.5-5.el6.x86_64 ocaml-ounit-2.0.0-17.el6.x86_64 ocaml-fileutils-0.4.0-4.1.el6.x86_64 ocaml-camlp4-3.11.2-2.el6.x86_64 ocaml-gettext-devel-0.3.3-3.5.el6.x86_64 ocaml-libvirt-devel-0.6.1.0-6.4.el6.x86_64 ocaml-ounit-devel-2.0.0-17.el6.x86_64 ocaml-gettext-0.3.3-3.5.el6.x86_64 Is it because of an incorrect version of ocaml-libvirt? According to that guide the required ocaml-libvirt is ocaml-libvirt ≥ 0.6.1.5 and unfortunately the available version in their official page is only 0.6.1.4. Any idea what is missing here? Regards, Emlyn Jose -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, August 1, 2017 8:42 PM To: Emlyn Jose (GIS) <emlyn.jose@wipro.com> Cc: libguestfs@redhat.com Subject: Re: libguestfs binaries missing when built from source code ** This mail has been sent from an external source ** On Tue, Aug 01, 2017 at 12:55:21PM +0000, emlyn.jose@wipro.com<mailto:emlyn.jose@wipro.com> wrote:
Hello Richard,
I have been following that link to build libguestfs that includes virt-resize binary. But it is found that the libguetfs is split into another libguestfs-tools-c which actually provides this virt-resize binary.
In the Fedora packaging we put virt-resize into libguestfs-tools-c, but in the upstream sources the binary is built in the resize/ subdirectory. https://clicktime.symantec.com/a/1/fsijtMrCapRRQvvDZP8iQ_gwLM3AvPn9SQv5_FY4QCY=?d=lKUMdoBnOzd7W5F0z0mHV44ryaWe-LldfTPZ-FoEiBVrVtef1KKRar7c0R7yC-t9zz_4Ff5sxcbsgNOA-B6vguIyp1f_LIS83hfbWqfRO1XKDPyvF2X9E45lCv-O28e_E0FLtLsM-ilmz_6BvXgXLsy04g0oBIcIP_BY3FJnHRelAaCPwEG1pjW9HB85JiG6wnODQeCvIAbqwBCI7DyaTln9BbyctIGu8AMRKgFuU_sw15WHtGuqMRS3fIiWzDNEB8rj4MACFZ4iRKp4TqOJ6u-HCWfZ2ojXOn5oqWF_jxiN-aB53Dep0eBt_6Qh_nJ0WoOgTUIJKa5bkkBTv01cjp2MRem1AeefXzqxSu-S45CrmBmcYJoiVfDHVW6gPMLesMhjOA%3D%3D&u=http%3A%2F%2Flibguestfs.org%2Fguestfs-hacking.1.html%23source-code-subdirectories
I would like to know at which part of the spec the virt-binary is created. I mean, what actually provides this binary?
Running ‘make’ builds all the binaries. If you mean the binary is not being created during ‘make’, then it's likely you have some missing build dependencies, most probably the OCaml compiler. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/KDhbqwxK8-PtGWKJ3pN5YUftcUxXeirgVv3aHiLGlxI=?d=lKUMdoBnOzd7W5F0z0mHV44ryaWe-LldfTPZ-FoEiBVrVtef1KKRar7c0R7yC-t9zz_4Ff5sxcbsgNOA-B6vguIyp1f_LIS83hfbWqfRO1XKDPyvF2X9E45lCv-O28e_E0FLtLsM-ilmz_6BvXgXLsy04g0oBIcIP_BY3FJnHRelAaCPwEG1pjW9HB85JiG6wnODQeCvIAbqwBCI7DyaTln9BbyctIGu8AMRKgFuU_sw15WHtGuqMRS3fIiWzDNEB8rj4MACFZ4iRKp4TqOJ6u-HCWfZ2ojXOn5oqWF_jxiN-aB53Dep0eBt_6Qh_nJ0WoOgTUIJKa5bkkBTv01cjp2MRem1AeefXzqxSu-S45CrmBmcYJoiVfDHVW6gPMLesMhjOA%3D%3D&u=http%3A%2F%2Frwmj.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. https://clicktime.symantec.com/a/1/NVJ-ZsDP6QhNjOWyGYkyhm0KnMX159eMZUIe2cDhyCc=?d=lKUMdoBnOzd7W5F0z0mHV44ryaWe-LldfTPZ-FoEiBVrVtef1KKRar7c0R7yC-t9zz_4Ff5sxcbsgNOA-B6vguIyp1f_LIS83hfbWqfRO1XKDPyvF2X9E45lCv-O28e_E0FLtLsM-ilmz_6BvXgXLsy04g0oBIcIP_BY3FJnHRelAaCPwEG1pjW9HB85JiG6wnODQeCvIAbqwBCI7DyaTln9BbyctIGu8AMRKgFuU_sw15WHtGuqMRS3fIiWzDNEB8rj4MACFZ4iRKp4TqOJ6u-HCWfZ2ojXOn5oqWF_jxiN-aB53Dep0eBt_6Qh_nJ0WoOgTUIJKa5bkkBTv01cjp2MRem1AeefXzqxSu-S45CrmBmcYJoiVfDHVW6gPMLesMhjOA%3D%3D&u=http%3A%2F%2Flibguestfs.org%2Fvirt-v2v ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
On Fri, Aug 04, 2017 at 10:20:39AM +0000, emlyn.jose@wipro.com wrote:
Hi Richard,
Thank you for the feedback! I have been following them and facing the below issue while building the same: ….. podwrapper.pl: wrote virt-v2v-test-harness.1 podwrapper.pl: wrote ../../html/virt-v2v-test-harness.1.html touch stamp-virt-v2v-test-harness.pod ocamlfind ocamlopt -g -annot -warn-error CDEFLMPSUVYZX-3 -package str,unix,libvirt -I ../../src/.libs -I ../../gnulib/lib/.libs -I ../../ocaml -I ../../mllib -I ../../v2v -c v2v_test_harness.ml -o v2v_test_harness.cmx AR libv2vth.a File "v2v_test_harness.ml", line 205, characters 14-26: Error: Unbound value D.create_xml make[2]: *** [v2v_test_harness.cmx] Error 2 make[2]: Leaving directory `/root/rpmbuild_oldlib/BUILD/libguestfs-1.30.3/v2v/test-harness' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/rpmbuild_oldlib/BUILD/libguestfs-1.30.3' make: *** [all] Error 2
I have listed the available ocaml packages installed on my server: ocaml-runtime-3.11.2-2.el6.x86_64 ocaml-findlib-devel-1.2.5-5.el6.x86_64 ocaml-fileutils-devel-0.4.0-4.1.el6.x86_64 ocaml-libvirt-0.6.1.0-6.4.el6.x86_64 ocaml-3.11.2-2.el6.x86_64 ocaml-findlib-1.2.5-5.el6.x86_64 ocaml-ounit-2.0.0-17.el6.x86_64 ocaml-fileutils-0.4.0-4.1.el6.x86_64 ocaml-camlp4-3.11.2-2.el6.x86_64 ocaml-gettext-devel-0.3.3-3.5.el6.x86_64 ocaml-libvirt-devel-0.6.1.0-6.4.el6.x86_64 ocaml-ounit-devel-2.0.0-17.el6.x86_64 ocaml-gettext-0.3.3-3.5.el6.x86_64
Is it because of an incorrect version of ocaml-libvirt?
It is. But unless you are planning to run the external virt-v2v tests -- which you cannot do because they contain proprietary Windows binaries and are therefore not generally released -- you don't need to compile the test harness. You can either uninstall ocaml-libvirt entirely (and rerun ./configure) or modify the Makefiles to not include this directory. Rich.
According to that guide the required ocaml-libvirt is ocaml-libvirt ≥ 0.6.1.5 and unfortunately the available version in their official page is only 0.6.1.4.
Any idea what is missing here?
Regards, Emlyn Jose
-----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, August 1, 2017 8:42 PM To: Emlyn Jose (GIS) <emlyn.jose@wipro.com> Cc: libguestfs@redhat.com Subject: Re: libguestfs binaries missing when built from source code
** This mail has been sent from an external source **
On Tue, Aug 01, 2017 at 12:55:21PM +0000, emlyn.jose@wipro.com<mailto:emlyn.jose@wipro.com> wrote:
Hello Richard,
I have been following that link to build libguestfs that includes virt-resize binary. But it is found that the libguetfs is split into another libguestfs-tools-c which actually provides this virt-resize binary.
In the Fedora packaging we put virt-resize into libguestfs-tools-c, but in the upstream sources the binary is built in the resize/ subdirectory.
I would like to know at which part of the spec the virt-binary is created. I mean, what actually provides this binary?
Running ‘make’ builds all the binaries.
If you mean the binary is not being created during ‘make’, then it's likely you have some missing build dependencies, most probably the OCaml compiler.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/KDhbqwxK8-PtGWKJ3pN5YUftcUxXeirgVv3aHiLGlxI=?d=lKUMdoBnOzd7W5F0z0mHV44ryaWe-LldfTPZ-FoEiBVrVtef1KKRar7c0R7yC-t9zz_4Ff5sxcbsgNOA-B6vguIyp1f_LIS83hfbWqfRO1XKDPyvF2X9E45lCv-O28e_E0FLtLsM-ilmz_6BvXgXLsy04g0oBIcIP_BY3FJnHRelAaCPwEG1pjW9HB85JiG6wnODQeCvIAbqwBCI7DyaTln9BbyctIGu8AMRKgFuU_sw15WHtGuqMRS3fIiWzDNEB8rj4MACFZ4iRKp4TqOJ6u-HCWfZ2ojXOn5oqWF_jxiN-aB53Dep0eBt_6Qh_nJ0WoOgTUIJKa5bkkBTv01cjp2MRem1AeefXzqxSu-S45CrmBmcYJoiVfDHVW6gPMLesMhjOA%3D%3D&u=http%3A%2F%2Frwmj.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. https://clicktime.symantec.com/a/1/NVJ-ZsDP6QhNjOWyGYkyhm0KnMX159eMZUIe2cDhyCc=?d=lKUMdoBnOzd7W5F0z0mHV44ryaWe-LldfTPZ-FoEiBVrVtef1KKRar7c0R7yC-t9zz_4Ff5sxcbsgNOA-B6vguIyp1f_LIS83hfbWqfRO1XKDPyvF2X9E45lCv-O28e_E0FLtLsM-ilmz_6BvXgXLsy04g0oBIcIP_BY3FJnHRelAaCPwEG1pjW9HB85JiG6wnODQeCvIAbqwBCI7DyaTln9BbyctIGu8AMRKgFuU_sw15WHtGuqMRS3fIiWzDNEB8rj4MACFZ4iRKp4TqOJ6u-HCWfZ2ojXOn5oqWF_jxiN-aB53Dep0eBt_6Qh_nJ0WoOgTUIJKa5bkkBTv01cjp2MRem1AeefXzqxSu-S45CrmBmcYJoiVfDHVW6gPMLesMhjOA%3D%3D&u=http%3A%2F%2Flibguestfs.org%2Fvirt-v2v
______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Thank you Richard for the quick response! I am trying to build this again after removing ocaml-libvirt completely. Regards, Emlyn Jose -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Friday, August 4, 2017 3:55 PM To: Emlyn Jose (GIS) <emlyn.jose@wipro.com> Cc: libguestfs@redhat.com Subject: Re: libguestfs binaries missing when built from source code ** This mail has been sent from an external source ** On Fri, Aug 04, 2017 at 10:20:39AM +0000, emlyn.jose@wipro.com wrote:
Hi Richard,
Thank you for the feedback! I have been following them and facing the below issue while building the same: ….. podwrapper.pl: wrote virt-v2v-test-harness.1 podwrapper.pl: wrote ../../html/virt-v2v-test-harness.1.html touch stamp-virt-v2v-test-harness.pod ocamlfind ocamlopt -g -annot -warn-error CDEFLMPSUVYZX-3 -package str,unix,libvirt -I ../../src/.libs -I ../../gnulib/lib/.libs -I ../../ocaml -I ../../mllib -I ../../v2v -c v2v_test_harness.ml -o v2v_test_harness.cmx AR libv2vth.a File "v2v_test_harness.ml", line 205, characters 14-26: Error: Unbound value D.create_xml make[2]: *** [v2v_test_harness.cmx] Error 2 make[2]: Leaving directory `/root/rpmbuild_oldlib/BUILD/libguestfs-1.30.3/v2v/test-harness' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/rpmbuild_oldlib/BUILD/libguestfs-1.30.3' make: *** [all] Error 2
I have listed the available ocaml packages installed on my server: ocaml-runtime-3.11.2-2.el6.x86_64 ocaml-findlib-devel-1.2.5-5.el6.x86_64 ocaml-fileutils-devel-0.4.0-4.1.el6.x86_64 ocaml-libvirt-0.6.1.0-6.4.el6.x86_64 ocaml-3.11.2-2.el6.x86_64 ocaml-findlib-1.2.5-5.el6.x86_64 ocaml-ounit-2.0.0-17.el6.x86_64 ocaml-fileutils-0.4.0-4.1.el6.x86_64 ocaml-camlp4-3.11.2-2.el6.x86_64 ocaml-gettext-devel-0.3.3-3.5.el6.x86_64 ocaml-libvirt-devel-0.6.1.0-6.4.el6.x86_64 ocaml-ounit-devel-2.0.0-17.el6.x86_64 ocaml-gettext-0.3.3-3.5.el6.x86_64
Is it because of an incorrect version of ocaml-libvirt?
It is. But unless you are planning to run the external virt-v2v tests -- which you cannot do because they contain proprietary Windows binaries and are therefore not generally released -- you don't need to compile the test harness. You can either uninstall ocaml-libvirt entirely (and rerun ./configure) or modify the Makefiles to not include this directory. Rich.
According to that guide the required ocaml-libvirt is ocaml-libvirt ≥ 0.6.1.5 and unfortunately the available version in their official page is only 0.6.1.4.
Any idea what is missing here?
Regards, Emlyn Jose
-----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, August 1, 2017 8:42 PM To: Emlyn Jose (GIS) <emlyn.jose@wipro.com> Cc: libguestfs@redhat.com Subject: Re: libguestfs binaries missing when built from source code
** This mail has been sent from an external source **
On Tue, Aug 01, 2017 at 12:55:21PM +0000, emlyn.jose@wipro.com<mailto:emlyn.jose@wipro.com> wrote:
Hello Richard,
I have been following that link to build libguestfs that includes virt-resize binary. But it is found that the libguetfs is split into another libguestfs-tools-c which actually provides this virt-resize binary.
In the Fedora packaging we put virt-resize into libguestfs-tools-c, but in the upstream sources the binary is built in the resize/ subdirectory.
https://clicktime.symantec.com/a/1/fsijtMrCapRRQvvDZP8iQ_gwLM3AvPn9SQv 5_FY4QCY=?d=lKUMdoBnOzd7W5F0z0mHV44ryaWe-LldfTPZ-FoEiBVrVtef1KKRar7c0R 7yC-t9zz_4Ff5sxcbsgNOA-B6vguIyp1f_LIS83hfbWqfRO1XKDPyvF2X9E45lCv-O28e_ E0FLtLsM-ilmz_6BvXgXLsy04g0oBIcIP_BY3FJnHRelAaCPwEG1pjW9HB85JiG6wnODQe CvIAbqwBCI7DyaTln9BbyctIGu8AMRKgFuU_sw15WHtGuqMRS3fIiWzDNEB8rj4MACFZ4i RKp4TqOJ6u-HCWfZ2ojXOn5oqWF_jxiN-aB53Dep0eBt_6Qh_nJ0WoOgTUIJKa5bkkBTv0 1cjp2MRem1AeefXzqxSu-S45CrmBmcYJoiVfDHVW6gPMLesMhjOA%3D%3D&u=http%3A%2 F%2Flibguestfs.org%2Fguestfs-hacking.1.html%23source-code-subdirectori es
I would like to know at which part of the spec the virt-binary is created. I mean, what actually provides this binary?
Running ‘make’ builds all the binaries.
If you mean the binary is not being created during ‘make’, then it's likely you have some missing build dependencies, most probably the OCaml compiler.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/KDhbqwxK8-PtGWKJ3pN5YUftcUxXeirgVv3 aHiLGlxI=?d=lKUMdoBnOzd7W5F0z0mHV44ryaWe-LldfTPZ-FoEiBVrVtef1KKRar7c0R 7yC-t9zz_4Ff5sxcbsgNOA-B6vguIyp1f_LIS83hfbWqfRO1XKDPyvF2X9E45lCv-O28e_ E0FLtLsM-ilmz_6BvXgXLsy04g0oBIcIP_BY3FJnHRelAaCPwEG1pjW9HB85JiG6wnODQe CvIAbqwBCI7DyaTln9BbyctIGu8AMRKgFuU_sw15WHtGuqMRS3fIiWzDNEB8rj4MACFZ4i RKp4TqOJ6u-HCWfZ2ojXOn5oqWF_jxiN-aB53Dep0eBt_6Qh_nJ0WoOgTUIJKa5bkkBTv0 1cjp2MRem1AeefXzqxSu-S45CrmBmcYJoiVfDHVW6gPMLesMhjOA%3D%3D&u=http%3A%2 F%2Frwmj.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. https://clicktime.symantec.com/a/1/NVJ-ZsDP6QhNjOWyGYkyhm0KnMX159eMZUI e2cDhyCc=?d=lKUMdoBnOzd7W5F0z0mHV44ryaWe-LldfTPZ-FoEiBVrVtef1KKRar7c0R 7yC-t9zz_4Ff5sxcbsgNOA-B6vguIyp1f_LIS83hfbWqfRO1XKDPyvF2X9E45lCv-O28e_ E0FLtLsM-ilmz_6BvXgXLsy04g0oBIcIP_BY3FJnHRelAaCPwEG1pjW9HB85JiG6wnODQe CvIAbqwBCI7DyaTln9BbyctIGu8AMRKgFuU_sw15WHtGuqMRS3fIiWzDNEB8rj4MACFZ4i RKp4TqOJ6u-HCWfZ2ojXOn5oqWF_jxiN-aB53Dep0eBt_6Qh_nJ0WoOgTUIJKa5bkkBTv0 1cjp2MRem1AeefXzqxSu-S45CrmBmcYJoiVfDHVW6gPMLesMhjOA%3D%3D&u=http%3A%2 F%2Flibguestfs.org%2Fvirt-v2v
______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/ytMuWU-ulTnlWsyBbTTy3IfbBxoN1hVT9TwjIRCR4rI=?d=9TAsXou5xzIsfQQ6RI-hvA2Np14lUfNJu5DoLuFkSCW459OqCrnfVNlh02cgPbZXe_0Ylz4CSVFKyUo7nFPZ78p9gn2QHSWIWhu7LU5WPjbmYFQRXAUWuCq-K3l0ne-RX2gbDT2_J3JqzU5VYg5ccne-WjcHJmRLgzAoINhRxSN4QJG6RKh_xjd4SJw7dSm3HhxbGcEyKrIvC3Hk2-1LEtVCIQry1rFHpjpKi3OxnwLk05NyTyBIJSJG1Ri8d55kJ-CvClaYa44ScVPJiskZ7EgwlBeXJ7qekxz6DFyFs85BXPZ9eRxkweS02KpgHyBBfawShLJ2Udm_uwfP2EQ9YBdiNNy1Osm-SWZUblEappqcAt_ADGn9WpoSmv2ry4Y-AtPh3no%3D&u=http%3A%2F%2Frwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Hello Richard! Ocaml solved my problem. Thank you so much :) There are many unpackaged ocaml files created outside the BUILDROOT. Will removing them harm the working of the package? error: Installed (but unpackaged) file(s) found: /usr/lib64/ocaml/guestfs/META /usr/lib64/ocaml/guestfs/guestfs.cmi /usr/lib64/ocaml/guestfs/guestfs.cmx /usr/lib64/ocaml/guestfs/guestfs.mli /usr/lib64/ocaml/guestfs/libmlguestfs.a /usr/lib64/ocaml/guestfs/mlguestfs.a /usr/lib64/ocaml/guestfs/mlguestfs.cma /usr/lib64/ocaml/guestfs/mlguestfs.cmxa /usr/lib64/ocaml/stublibs/dllmlguestfs.so /usr/lib64/ocaml/stublibs/dllmlguestfs.so.owner Regards, Emlyn Jose -----Original Message----- From: Emlyn Jose (GIS) Sent: 04 August 2017 18:33 To: Richard W.M. Jones <rjones@redhat.com> Cc: libguestfs@redhat.com Subject: RE: libguestfs binaries missing when built from source code Thank you Richard for the quick response! I am trying to build this again after removing ocaml-libvirt completely. Regards, Emlyn Jose -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Friday, August 4, 2017 3:55 PM To: Emlyn Jose (GIS) <emlyn.jose@wipro.com> Cc: libguestfs@redhat.com Subject: Re: libguestfs binaries missing when built from source code ** This mail has been sent from an external source ** On Fri, Aug 04, 2017 at 10:20:39AM +0000, emlyn.jose@wipro.com wrote:
Hi Richard,
Thank you for the feedback! I have been following them and facing the below issue while building the same: ….. podwrapper.pl: wrote virt-v2v-test-harness.1 podwrapper.pl: wrote ../../html/virt-v2v-test-harness.1.html touch stamp-virt-v2v-test-harness.pod ocamlfind ocamlopt -g -annot -warn-error CDEFLMPSUVYZX-3 -package str,unix,libvirt -I ../../src/.libs -I ../../gnulib/lib/.libs -I ../../ocaml -I ../../mllib -I ../../v2v -c v2v_test_harness.ml -o v2v_test_harness.cmx AR libv2vth.a File "v2v_test_harness.ml", line 205, characters 14-26: Error: Unbound value D.create_xml make[2]: *** [v2v_test_harness.cmx] Error 2 make[2]: Leaving directory `/root/rpmbuild_oldlib/BUILD/libguestfs-1.30.3/v2v/test-harness' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/rpmbuild_oldlib/BUILD/libguestfs-1.30.3' make: *** [all] Error 2
I have listed the available ocaml packages installed on my server: ocaml-runtime-3.11.2-2.el6.x86_64 ocaml-findlib-devel-1.2.5-5.el6.x86_64 ocaml-fileutils-devel-0.4.0-4.1.el6.x86_64 ocaml-libvirt-0.6.1.0-6.4.el6.x86_64 ocaml-3.11.2-2.el6.x86_64 ocaml-findlib-1.2.5-5.el6.x86_64 ocaml-ounit-2.0.0-17.el6.x86_64 ocaml-fileutils-0.4.0-4.1.el6.x86_64 ocaml-camlp4-3.11.2-2.el6.x86_64 ocaml-gettext-devel-0.3.3-3.5.el6.x86_64 ocaml-libvirt-devel-0.6.1.0-6.4.el6.x86_64 ocaml-ounit-devel-2.0.0-17.el6.x86_64 ocaml-gettext-0.3.3-3.5.el6.x86_64
Is it because of an incorrect version of ocaml-libvirt?
It is. But unless you are planning to run the external virt-v2v tests -- which you cannot do because they contain proprietary Windows binaries and are therefore not generally released -- you don't need to compile the test harness. You can either uninstall ocaml-libvirt entirely (and rerun ./configure) or modify the Makefiles to not include this directory. Rich.
According to that guide the required ocaml-libvirt is ocaml-libvirt ≥ 0.6.1.5 and unfortunately the available version in their official page is only 0.6.1.4.
Any idea what is missing here?
Regards, Emlyn Jose
-----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, August 1, 2017 8:42 PM To: Emlyn Jose (GIS) <emlyn.jose@wipro.com> Cc: libguestfs@redhat.com Subject: Re: libguestfs binaries missing when built from source code
** This mail has been sent from an external source **
On Tue, Aug 01, 2017 at 12:55:21PM +0000, emlyn.jose@wipro.com<mailto:emlyn.jose@wipro.com> wrote:
Hello Richard,
I have been following that link to build libguestfs that includes virt-resize binary. But it is found that the libguetfs is split into another libguestfs-tools-c which actually provides this virt-resize binary.
In the Fedora packaging we put virt-resize into libguestfs-tools-c, but in the upstream sources the binary is built in the resize/ subdirectory.
https://clicktime.symantec.com/a/1/fsijtMrCapRRQvvDZP8iQ_gwLM3AvPn9SQv 5_FY4QCY=?d=lKUMdoBnOzd7W5F0z0mHV44ryaWe-LldfTPZ-FoEiBVrVtef1KKRar7c0R 7yC-t9zz_4Ff5sxcbsgNOA-B6vguIyp1f_LIS83hfbWqfRO1XKDPyvF2X9E45lCv-O28e_ E0FLtLsM-ilmz_6BvXgXLsy04g0oBIcIP_BY3FJnHRelAaCPwEG1pjW9HB85JiG6wnODQe CvIAbqwBCI7DyaTln9BbyctIGu8AMRKgFuU_sw15WHtGuqMRS3fIiWzDNEB8rj4MACFZ4i RKp4TqOJ6u-HCWfZ2ojXOn5oqWF_jxiN-aB53Dep0eBt_6Qh_nJ0WoOgTUIJKa5bkkBTv0 1cjp2MRem1AeefXzqxSu-S45CrmBmcYJoiVfDHVW6gPMLesMhjOA%3D%3D&u=http%3A%2 F%2Flibguestfs.org%2Fguestfs-hacking.1.html%23source-code-subdirectori es
I would like to know at which part of the spec the virt-binary is created. I mean, what actually provides this binary?
Running ‘make’ builds all the binaries.
If you mean the binary is not being created during ‘make’, then it's likely you have some missing build dependencies, most probably the OCaml compiler.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/KDhbqwxK8-PtGWKJ3pN5YUftcUxXeirgVv3 aHiLGlxI=?d=lKUMdoBnOzd7W5F0z0mHV44ryaWe-LldfTPZ-FoEiBVrVtef1KKRar7c0R 7yC-t9zz_4Ff5sxcbsgNOA-B6vguIyp1f_LIS83hfbWqfRO1XKDPyvF2X9E45lCv-O28e_ E0FLtLsM-ilmz_6BvXgXLsy04g0oBIcIP_BY3FJnHRelAaCPwEG1pjW9HB85JiG6wnODQe CvIAbqwBCI7DyaTln9BbyctIGu8AMRKgFuU_sw15WHtGuqMRS3fIiWzDNEB8rj4MACFZ4i RKp4TqOJ6u-HCWfZ2ojXOn5oqWF_jxiN-aB53Dep0eBt_6Qh_nJ0WoOgTUIJKa5bkkBTv0 1cjp2MRem1AeefXzqxSu-S45CrmBmcYJoiVfDHVW6gPMLesMhjOA%3D%3D&u=http%3A%2 F%2Frwmj.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. https://clicktime.symantec.com/a/1/NVJ-ZsDP6QhNjOWyGYkyhm0KnMX159eMZUI e2cDhyCc=?d=lKUMdoBnOzd7W5F0z0mHV44ryaWe-LldfTPZ-FoEiBVrVtef1KKRar7c0R 7yC-t9zz_4Ff5sxcbsgNOA-B6vguIyp1f_LIS83hfbWqfRO1XKDPyvF2X9E45lCv-O28e_ E0FLtLsM-ilmz_6BvXgXLsy04g0oBIcIP_BY3FJnHRelAaCPwEG1pjW9HB85JiG6wnODQe CvIAbqwBCI7DyaTln9BbyctIGu8AMRKgFuU_sw15WHtGuqMRS3fIiWzDNEB8rj4MACFZ4i RKp4TqOJ6u-HCWfZ2ojXOn5oqWF_jxiN-aB53Dep0eBt_6Qh_nJ0WoOgTUIJKa5bkkBTv0 1cjp2MRem1AeefXzqxSu-S45CrmBmcYJoiVfDHVW6gPMLesMhjOA%3D%3D&u=http%3A%2 F%2Flibguestfs.org%2Fvirt-v2v
______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/ytMuWU-ulTnlWsyBbTTy3IfbBxoN1hVT9TwjIRCR4rI=?d=9TAsXou5xzIsfQQ6RI-hvA2Np14lUfNJu5DoLuFkSCW459OqCrnfVNlh02cgPbZXe_0Ylz4CSVFKyUo7nFPZ78p9gn2QHSWIWhu7LU5WPjbmYFQRXAUWuCq-K3l0ne-RX2gbDT2_J3JqzU5VYg5ccne-WjcHJmRLgzAoINhRxSN4QJG6RKh_xjd4SJw7dSm3HhxbGcEyKrIvC3Hk2-1LEtVCIQry1rFHpjpKi3OxnwLk05NyTyBIJSJG1Ri8d55kJ-CvClaYa44ScVPJiskZ7EgwlBeXJ7qekxz6DFyFs85BXPZ9eRxkweS02KpgHyBBfawShLJ2Udm_uwfP2EQ9YBdiNNy1Osm-SWZUblEappqcAt_ADGn9WpoSmv2ry4Y-AtPh3no%3D&u=http%3A%2F%2Frwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
On Thu, Aug 10, 2017 at 04:49:22AM +0000, emlyn.jose@wipro.com wrote:
Hello Richard!
Ocaml solved my problem. Thank you so much :)
There are many unpackaged ocaml files created outside the BUILDROOT. Will removing them harm the working of the package?
error: Installed (but unpackaged) file(s) found: /usr/lib64/ocaml/guestfs/META /usr/lib64/ocaml/guestfs/guestfs.cmi /usr/lib64/ocaml/guestfs/guestfs.cmx /usr/lib64/ocaml/guestfs/guestfs.mli /usr/lib64/ocaml/guestfs/libmlguestfs.a /usr/lib64/ocaml/guestfs/mlguestfs.a /usr/lib64/ocaml/guestfs/mlguestfs.cma /usr/lib64/ocaml/guestfs/mlguestfs.cmxa /usr/lib64/ocaml/stublibs/dllmlguestfs.so /usr/lib64/ocaml/stublibs/dllmlguestfs.so.owner
Those particular files are the OCaml bindings. They are only needed if you intend to write a brand new program in OCaml using guestfs (http://libguestfs.org/guestfs-ocaml.3.html). Otherwise you can remove them without any ill effect. However I'm surprised that whatever spec file you are using doesn't find and package those files into two ocaml-libguestfs* subpackages. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Hello Richard! Another problem came up today while working on it: [INFO] >>> Resizing qcow image... [INFO] >>> Executing: cp AirFrameVirtualized-3.0.76999.qcow2 image.tmp [INFO] >>> Executing: qemu-img resize -f qcow2 AirFrameVirtualized-3.0.76999.qcow2 10G Image resized. [INFO] >>> Executing: virt-resize --expand /dev/sda1 image.tmp AirFrameVirtualized-3.0.76999.qcow2 [ 0.0] Examining image.tmp libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 libguestfs: trace: set_path "/opt/libguestfs/x86_64/1.30.3/lib/guestfs/appliance:" libguestfs: trace: set_path = 0 libguestfs: create: flags = 0, handle = 0xfa6c90 virt-resize: symbol lookup error: virt-resize: undefined symbol: guestfs_int_safe_malloc When I browsed on it, I found that it is because of the older OCaml bindings. Is it so? Is it related to ocaml? Below are the build dependencies of ocaml used while building libguestfs: ocaml x86_64 3.11.2-2.el6 rhel6-optional ocaml-findlib x86_64 1.2.5-5.el6 rhel6-optional ocaml-runtime x86_64 3.11.2-2.el6 rhel6-optional Regards, Emlyn Jose. -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: 10 August 2017 13:41 To: Emlyn Jose (GIS) <emlyn.jose@wipro.com> Cc: libguestfs@redhat.com Subject: Re: libguestfs binaries missing when built from source code ** This mail has been sent from an external source ** On Thu, Aug 10, 2017 at 04:49:22AM +0000, emlyn.jose@wipro.com<mailto:emlyn.jose@wipro.com> wrote:
Hello Richard!
Ocaml solved my problem. Thank you so much :)
There are many unpackaged ocaml files created outside the BUILDROOT. Will removing them harm the working of the package?
error: Installed (but unpackaged) file(s) found: /usr/lib64/ocaml/guestfs/META /usr/lib64/ocaml/guestfs/guestfs.cmi /usr/lib64/ocaml/guestfs/guestfs.cmx /usr/lib64/ocaml/guestfs/guestfs.mli /usr/lib64/ocaml/guestfs/libmlguestfs.a /usr/lib64/ocaml/guestfs/mlguestfs.a /usr/lib64/ocaml/guestfs/mlguestfs.cma /usr/lib64/ocaml/guestfs/mlguestfs.cmxa /usr/lib64/ocaml/stublibs/dllmlguestfs.so /usr/lib64/ocaml/stublibs/dllmlguestfs.so.owner
Those particular files are the OCaml bindings. They are only needed if you intend to write a brand new program in OCaml using guestfs (https://clicktime.symantec.com/a/1/LLuCVR5AtuWHONgYvylpSI5rBvmm8Jk2842YsgrbHBk=?d=0Hg85it0VOduhj2huLZ_4yqwG0IC1HZft_Xht0zT7qE1QRbto_bXJNtsjTe-_HG91qnxSTcXDNsMIvmCg4U8B6TIZZPkmCxZhdkv-V2HAqgAdNKsbW1ToYm_gBevDJOrAF7-cJ4V537BvZo5_SWzCYlGrVyZUg2Gc0YtEBFUxUURl6IkvYavCIEB_nC-3Djd5SHg8IZ9rcnyjVVIeWOJjxgAsR3qqlbBaXBG1Xes7IaotVasihjIDbDDJ1TryRYf94njYLryKeZI3AQjiz3Uv8cWDu1wK1wAjtP1k_T-6e1HohevLFBM907zFtw3uwVdLCaU2L5Nxw0WcDk7IFAoz4UV4seG2ahSQAxmtGQk99s5rZPz_C2ayd7GHeWjPWHFKEoH7w%3D%3D&u=http%3A%2F%2Flibguestfs.org%2Fguestfs-ocaml.3.html). Otherwise you can remove them without any ill effect. However I'm surprised that whatever spec file you are using doesn't find and package those files into two ocaml-libguestfs* subpackages. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/MvC8mXSuv2OX_3rfPcDNMWl7r-LdYYC5wVJ1dQdx2PM=?d=0Hg85it0VOduhj2huLZ_4yqwG0IC1HZft_Xht0zT7qE1QRbto_bXJNtsjTe-_HG91qnxSTcXDNsMIvmCg4U8B6TIZZPkmCxZhdkv-V2HAqgAdNKsbW1ToYm_gBevDJOrAF7-cJ4V537BvZo5_SWzCYlGrVyZUg2Gc0YtEBFUxUURl6IkvYavCIEB_nC-3Djd5SHg8IZ9rcnyjVVIeWOJjxgAsR3qqlbBaXBG1Xes7IaotVasihjIDbDDJ1TryRYf94njYLryKeZI3AQjiz3Uv8cWDu1wK1wAjtP1k_T-6e1HohevLFBM907zFtw3uwVdLCaU2L5Nxw0WcDk7IFAoz4UV4seG2ahSQAxmtGQk99s5rZPz_C2ayd7GHeWjPWHFKEoH7w%3D%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
On Thursday, 17 August 2017 12:54:19 CEST emlyn.jose@wipro.com wrote:
Hello Richard!
Another problem came up today while working on it:
[INFO] >>> Resizing qcow image... [INFO] >>> Executing: cp AirFrameVirtualized-3.0.76999.qcow2 image.tmp [INFO] >>> Executing: qemu-img resize -f qcow2 AirFrameVirtualized-3.0.76999.qcow2 10G Image resized. [INFO] >>> Executing: virt-resize --expand /dev/sda1 image.tmp AirFrameVirtualized-3.0.76999.qcow2 [ 0.0] Examining image.tmp libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 libguestfs: trace: set_path "/opt/libguestfs/x86_64/1.30.3/lib/guestfs/appliance:" libguestfs: trace: set_path = 0 libguestfs: create: flags = 0, handle = 0xfa6c90 virt-resize: symbol lookup error: virt-resize: undefined symbol: guestfs_int_safe_malloc
No, it looks like the version of libguestfs (the shared library) and the tools are not in sync. Did you install it from sources, or from self-built packages? -- Pino Toscano
Hi, We installed it from the source code. The thing is, the already available customized version for libguestfs on rhel6 was 1.30.3 and I tried to add the ocaml just for that virt-resize binary. Any idea how should I now proceed with this? Regards, Emlyn Jose -----Original Message----- From: Pino Toscano [mailto:ptoscano@redhat.com] Sent: 17 August 2017 16:50 To: libguestfs@redhat.com Cc: Emlyn Jose (GIS) <emlyn.jose@wipro.com>; Richard W.M. Jones <rjones@redhat.com> Subject: Re: [Libguestfs] libguestfs binaries missing when built from source code On Thursday, 17 August 2017 12:54:19 CEST emlyn.jose@wipro.com wrote:
Hello Richard!
Another problem came up today while working on it:
[INFO] >>> Resizing qcow image... [INFO] >>> Executing: cp AirFrameVirtualized-3.0.76999.qcow2 image.tmp [INFO] >>> Executing: qemu-img resize -f qcow2 AirFrameVirtualized-3.0.76999.qcow2 10G Image resized. [INFO] >>> Executing: virt-resize --expand /dev/sda1 image.tmp AirFrameVirtualized-3.0.76999.qcow2 [ 0.0] Examining image.tmp libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 libguestfs: trace: set_path "/opt/libguestfs/x86_64/1.30.3/lib/guestfs/appliance:" libguestfs: trace: set_path = 0 libguestfs: create: flags = 0, handle = 0xfa6c90 virt-resize: symbol lookup error: virt-resize: undefined symbol: guestfs_int_safe_malloc
No, it looks like the version of libguestfs (the shared library) and the tools are not in sync. Did you install it from sources, or from self-built packages? -- Pino Toscano The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
On Wed, Aug 30, 2017 at 01:50:25AM +0000, emlyn.jose@wipro.com wrote:
Hi,
We installed it from the source code.
Most likely you've run ‘make install’ at some point and now have multiple copies installed all over the place, which is why binaries and libraries are linked to the wrong versions. I suggest started from scratch (reinstalling your operating system), and NOT running ’make install’ at any point. You can use the ‘./run’ script to run things from the build directory. More on this topic here: http://libguestfs.org/guestfs-building.1.html#installing Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Hi, I tried the same, this is what I get: + cd ../libguestfs-1.30.3 + ./run run: warning: You used './configure --disable-appliance' so LIBGUESTFS_PATH run: warning: has not been set automatically. 0 seconds: The path exported is: export LIBGUESTFS_PATH=PREFIX/lib/guestfs/appliance:$LIBGUESTFS_PATH The libguestfs directory is as below: $ ls SOURCES/libguestfs-1.30.3 aclocal.m4 configure.ac gnulib Makefile.in sparsify align contrib GNUmakefile make-fs src appliance COPYING gobject mllib subdir-rules.mk AUTHORS COPYING.LIB golang ocaml sysprep autogen.sh csharp guestfs-release-notes.pod ocaml-link.sh tests bash customize guestfs-release-notes.txt p2v test-tool bindtests daemon HACKING perl tmp bootstrap df haskell php TODO BUGS dib html pick-guests.pl.in tools bugs-in-changelog.sh diff inspector po update-bugs.sh build-aux edit installcheck.sh.in po-docs v2v builder erlang java podwrapper.pl.in valgrind-suppressions cat examples libtool-kill-dependency_libs.sh python zanata-pull.sh cfg.mk fish logo README zanata.xml ChangeLog format lua rescue common-rules.mk fuse m4 resize config.h.in generator maint.mk ruby configure get-kernel Makefile.am run.in Regards, Emlyn Jose -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: 30 August 2017 15:08 To: Emlyn Jose (GIS) <emlyn.jose@wipro.com> Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] libguestfs binaries missing when built from source code ** This mail has been sent from an external source ** On Wed, Aug 30, 2017 at 01:50:25AM +0000, emlyn.jose@wipro.com wrote:
Hi,
We installed it from the source code.
Most likely you've run ‘make install’ at some point and now have multiple copies installed all over the place, which is why binaries and libraries are linked to the wrong versions. I suggest started from scratch (reinstalling your operating system), and NOT running ’make install’ at any point. You can use the ‘./run’ script to run things from the build directory. More on this topic here: https://clicktime.symantec.com/a/1/vwqEr7bxcPHmwBDM16aP25qf40cd13cGH0FmSmbXC2g=?d=ruYh4EExewHVioHwe6IIiYFqpwaO4SyZSlUnGDYMSR_xhDZBRH9HA4DJqux87WrdVbR8gc8WtS0i5G0fq0rUa_bb__gCkEgHFBQrT1Q83ViQBSX81uuS5mBHSPsHkMZ5NvwwVvK7yls2WPX1yV_0KAyTX9RHBh2WYVT1qmZbagxMctyrqbwJo7Jne5Bhus-C9uIzTW0cynaxTUPRJ_YpWpITDzpagmgRAU8-vC3giXs10PcbUjdtkHNN03UU1_HmKPHV7TjKP2QsYClWOt-5grR_EosLRM-lig7d2ZYrQeStYADzmFeRHLmrRl83a8hC8Z74zq-we4rzHAo8jCw0l2RA-8kVdRT9fMtwRczHdccCEOBiDpMCYb8pjsqVQZYOOh2Jx1867gOnsWyRA3nV-SM%3D&u=http%3A%2F%2Flibguestfs.org%2Fguestfs-building.1.html%23installing Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/f3mX78Uu4DllQfa2dj2CU2RA1xb4Fx0Nfg9JxzsIP-g=?d=ruYh4EExewHVioHwe6IIiYFqpwaO4SyZSlUnGDYMSR_xhDZBRH9HA4DJqux87WrdVbR8gc8WtS0i5G0fq0rUa_bb__gCkEgHFBQrT1Q83ViQBSX81uuS5mBHSPsHkMZ5NvwwVvK7yls2WPX1yV_0KAyTX9RHBh2WYVT1qmZbagxMctyrqbwJo7Jne5Bhus-C9uIzTW0cynaxTUPRJ_YpWpITDzpagmgRAU8-vC3giXs10PcbUjdtkHNN03UU1_HmKPHV7TjKP2QsYClWOt-5grR_EosLRM-lig7d2ZYrQeStYADzmFeRHLmrRl83a8hC8Z74zq-we4rzHAo8jCw0l2RA-8kVdRT9fMtwRczHdccCEOBiDpMCYb8pjsqVQZYOOh2Jx1867gOnsWyRA3nV-SM%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/dg7Nj9tCLQmtTWNcUF5IiNSwzFogbO7aiKiH_VElzmI=?d=ruYh4EExewHVioHwe6IIiYFqpwaO4SyZSlUnGDYMSR_xhDZBRH9HA4DJqux87WrdVbR8gc8WtS0i5G0fq0rUa_bb__gCkEgHFBQrT1Q83ViQBSX81uuS5mBHSPsHkMZ5NvwwVvK7yls2WPX1yV_0KAyTX9RHBh2WYVT1qmZbagxMctyrqbwJo7Jne5Bhus-C9uIzTW0cynaxTUPRJ_YpWpITDzpagmgRAU8-vC3giXs10PcbUjdtkHNN03UU1_HmKPHV7TjKP2QsYClWOt-5grR_EosLRM-lig7d2ZYrQeStYADzmFeRHLmrRl83a8hC8Z74zq-we4rzHAo8jCw0l2RA-8kVdRT9fMtwRczHdccCEOBiDpMCYb8pjsqVQZYOOh2Jx1867gOnsWyRA3nV-SM%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. https://clicktime.symantec.com/a/1/FtsAxPfjhYj9JFgwBYVQaAtSsvhdluIFWtgP-54RY0g=?d=ruYh4EExewHVioHwe6IIiYFqpwaO4SyZSlUnGDYMSR_xhDZBRH9HA4DJqux87WrdVbR8gc8WtS0i5G0fq0rUa_bb__gCkEgHFBQrT1Q83ViQBSX81uuS5mBHSPsHkMZ5NvwwVvK7yls2WPX1yV_0KAyTX9RHBh2WYVT1qmZbagxMctyrqbwJo7Jne5Bhus-C9uIzTW0cynaxTUPRJ_YpWpITDzpagmgRAU8-vC3giXs10PcbUjdtkHNN03UU1_HmKPHV7TjKP2QsYClWOt-5grR_EosLRM-lig7d2ZYrQeStYADzmFeRHLmrRl83a8hC8Z74zq-we4rzHAo8jCw0l2RA-8kVdRT9fMtwRczHdccCEOBiDpMCYb8pjsqVQZYOOh2Jx1867gOnsWyRA3nV-SM%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones%2Fvirt-top ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Hi, Any update on how to use ./run? Regards, Emlyn Jose _____________________________________________ From: Emlyn Jose (GIS) Sent: 31 August 2017 14:53 To: 'Richard W.M. Jones' <rjones@redhat.com> Cc: libguestfs@redhat.com Subject: RE: [Libguestfs] libguestfs binaries missing when built from source code Hi, I tried the same, this is what I get: + cd ../libguestfs-1.30.3 + ./run run: warning: You used './configure --disable-appliance' so LIBGUESTFS_PATH run: warning: has not been set automatically. 0 seconds: The path exported is: export LIBGUESTFS_PATH=PREFIX/lib/guestfs/appliance:$LIBGUESTFS_PATH The libguestfs directory is as below: $ ls SOURCES/libguestfs-1.30.3 aclocal.m4 configure.ac gnulib Makefile.in sparsify align contrib GNUmakefile make-fs src appliance COPYING gobject mllib subdir-rules.mk AUTHORS COPYING.LIB golang ocaml sysprep autogen.sh csharp guestfs-release-notes.pod ocaml-link.sh tests bash customize guestfs-release-notes.txt p2v test-tool bindtests daemon HACKING perl tmp bootstrap df haskell php TODO BUGS dib html pick-guests.pl.in tools bugs-in-changelog.sh diff inspector po update-bugs.sh build-aux edit installcheck.sh.in po-docs v2v builder erlang java podwrapper.pl.in valgrind-suppressions cat examples libtool-kill-dependency_libs.sh python zanata-pull.sh cfg.mk fish logo README zanata.xml ChangeLog format lua rescue common-rules.mk fuse m4 resize config.h.in generator maint.mk ruby configure get-kernel Makefile.am run.in Regards, Emlyn Jose -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: 30 August 2017 15:08 To: Emlyn Jose (GIS) <emlyn.jose@wipro.com<mailto:emlyn.jose@wipro.com>> Cc: libguestfs@redhat.com<mailto:libguestfs@redhat.com> Subject: Re: [Libguestfs] libguestfs binaries missing when built from source code ** This mail has been sent from an external source ** On Wed, Aug 30, 2017 at 01:50:25AM +0000, emlyn.jose@wipro.com<mailto:emlyn.jose@wipro.com> wrote:
Hi,
We installed it from the source code.
Most likely you've run ‘make install’ at some point and now have multiple copies installed all over the place, which is why binaries and libraries are linked to the wrong versions. I suggest started from scratch (reinstalling your operating system), and NOT running ’make install’ at any point. You can use the ‘./run’ script to run things from the build directory. More on this topic here: https://clicktime.symantec.com/a/1/vwqEr7bxcPHmwBDM16aP25qf40cd13cGH0FmSmbXC2g=?d=ruYh4EExewHVioHwe6IIiYFqpwaO4SyZSlUnGDYMSR_xhDZBRH9HA4DJqux87WrdVbR8gc8WtS0i5G0fq0rUa_bb__gCkEgHFBQrT1Q83ViQBSX81uuS5mBHSPsHkMZ5NvwwVvK7yls2WPX1yV_0KAyTX9RHBh2WYVT1qmZbagxMctyrqbwJo7Jne5Bhus-C9uIzTW0cynaxTUPRJ_YpWpITDzpagmgRAU8-vC3giXs10PcbUjdtkHNN03UU1_HmKPHV7TjKP2QsYClWOt-5grR_EosLRM-lig7d2ZYrQeStYADzmFeRHLmrRl83a8hC8Z74zq-we4rzHAo8jCw0l2RA-8kVdRT9fMtwRczHdccCEOBiDpMCYb8pjsqVQZYOOh2Jx1867gOnsWyRA3nV-SM%3D&u=http%3A%2F%2Flibguestfs.org%2Fguestfs-building.1.html%23installing Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/f3mX78Uu4DllQfa2dj2CU2RA1xb4Fx0Nfg9JxzsIP-g=?d=ruYh4EExewHVioHwe6IIiYFqpwaO4SyZSlUnGDYMSR_xhDZBRH9HA4DJqux87WrdVbR8gc8WtS0i5G0fq0rUa_bb__gCkEgHFBQrT1Q83ViQBSX81uuS5mBHSPsHkMZ5NvwwVvK7yls2WPX1yV_0KAyTX9RHBh2WYVT1qmZbagxMctyrqbwJo7Jne5Bhus-C9uIzTW0cynaxTUPRJ_YpWpITDzpagmgRAU8-vC3giXs10PcbUjdtkHNN03UU1_HmKPHV7TjKP2QsYClWOt-5grR_EosLRM-lig7d2ZYrQeStYADzmFeRHLmrRl83a8hC8Z74zq-we4rzHAo8jCw0l2RA-8kVdRT9fMtwRczHdccCEOBiDpMCYb8pjsqVQZYOOh2Jx1867gOnsWyRA3nV-SM%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/dg7Nj9tCLQmtTWNcUF5IiNSwzFogbO7aiKiH_VElzmI=?d=ruYh4EExewHVioHwe6IIiYFqpwaO4SyZSlUnGDYMSR_xhDZBRH9HA4DJqux87WrdVbR8gc8WtS0i5G0fq0rUa_bb__gCkEgHFBQrT1Q83ViQBSX81uuS5mBHSPsHkMZ5NvwwVvK7yls2WPX1yV_0KAyTX9RHBh2WYVT1qmZbagxMctyrqbwJo7Jne5Bhus-C9uIzTW0cynaxTUPRJ_YpWpITDzpagmgRAU8-vC3giXs10PcbUjdtkHNN03UU1_HmKPHV7TjKP2QsYClWOt-5grR_EosLRM-lig7d2ZYrQeStYADzmFeRHLmrRl83a8hC8Z74zq-we4rzHAo8jCw0l2RA-8kVdRT9fMtwRczHdccCEOBiDpMCYb8pjsqVQZYOOh2Jx1867gOnsWyRA3nV-SM%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. https://clicktime.symantec.com/a/1/FtsAxPfjhYj9JFgwBYVQaAtSsvhdluIFWtgP-54RY0g=?d=ruYh4EExewHVioHwe6IIiYFqpwaO4SyZSlUnGDYMSR_xhDZBRH9HA4DJqux87WrdVbR8gc8WtS0i5G0fq0rUa_bb__gCkEgHFBQrT1Q83ViQBSX81uuS5mBHSPsHkMZ5NvwwVvK7yls2WPX1yV_0KAyTX9RHBh2WYVT1qmZbagxMctyrqbwJo7Jne5Bhus-C9uIzTW0cynaxTUPRJ_YpWpITDzpagmgRAU8-vC3giXs10PcbUjdtkHNN03UU1_HmKPHV7TjKP2QsYClWOt-5grR_EosLRM-lig7d2ZYrQeStYADzmFeRHLmrRl83a8hC8Z74zq-we4rzHAo8jCw0l2RA-8kVdRT9fMtwRczHdccCEOBiDpMCYb8pjsqVQZYOOh2Jx1867gOnsWyRA3nV-SM%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones%2Fvirt-top ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
I have nothing to add to my original message: https://www.redhat.com/archives/libguestfs/2017-August/msg00140.html Please read it and the linked documentation carefully. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
participants (3)
-
emlyn.jose@wipro.com -
Pino Toscano -
Richard W.M. Jones