On Fri, Aug 04, 2017 at 10:20:39AM +0000, emlyn.jose(a)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(a)wipro.com>
Cc: libguestfs(a)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_F...
> 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-PtGWKJ3pN5YUftcUxXeirgVv3aHi...
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-ZsDP6QhNjOWyGYkyhm0KnMX159eMZUIe2c...
______________________________________________________________________
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