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