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(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 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/LLuCVR5AtuWHONgYvylpSI5rBvmm8Jk2842Ysg...).
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-LdYYC5wVJ1dQ...
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