[Libguestfs] libguestfs binaries missing when built from source code

emlyn.jose at wipro.com emlyn.jose at wipro.com
Thu Aug 10 04:49:22 UTC 2017


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 at redhat.com>
Cc: libguestfs at 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 at redhat.com]
Sent: Friday, August 4, 2017 3:55 PM
To: Emlyn Jose (GIS) <emlyn.jose at wipro.com>
Cc: libguestfs at 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 at 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 at redhat.com]
> Sent: Tuesday, August 1, 2017 8:42 PM
> To: Emlyn Jose (GIS) <emlyn.jose at wipro.com>
> Cc: libguestfs at 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 at wipro.com<mailto:emlyn.jose at 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




More information about the Libguestfs mailing list