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