Re: [Libguestfs] libguestfs binaries missing when built from source code

2017-09-01 Thread Richard W.M. Jones
I have nothing to add to my original message:

  https://www.redhat.com/archives/libguestfs/2017-August/msg00140.html

Please read it and the linked documentation carefully.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.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

___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs


Re: [Libguestfs] libguestfs binaries missing when built from source code

2017-08-30 Thread Richard W.M. Jones
On Wed, Aug 30, 2017 at 01:50:25AM +, emlyn.j...@wipro.com wrote:
> Hi,

> We installed it from the source code.

Most likely you've run ‘make install’ at some point and now have
multiple copies installed all over the place, which is why binaries
and libraries are linked to the wrong versions.

I suggest started from scratch (reinstalling your operating system),
and NOT running ’make install’ at any point.  You can use the ‘./run’
script to run things from the build directory.

More on this topic here:

  http://libguestfs.org/guestfs-building.1.html#installing

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.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

___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] libguestfs binaries missing when built from source code

2017-08-17 Thread Pino Toscano
On Thursday, 17 August 2017 12:54:19 CEST emlyn.j...@wipro.com wrote:
> 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

No, it looks like the version of libguestfs (the shared library) and the
tools are not in sync.  Did you install it from sources, or from
self-built packages?

-- 
Pino Toscano

signature.asc
Description: This is a digitally signed message part.
___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] libguestfs binaries missing when built from source code

2017-08-10 Thread Richard W.M. Jones
On Thu, Aug 10, 2017 at 04:49:22AM +, emlyn.j...@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
(http://libguestfs.org/guestfs-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: http://rwmj.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

___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs


Re: [Libguestfs] libguestfs binaries missing when built from source code

2017-08-04 Thread Richard W.M. Jones
On Fri, Aug 04, 2017 at 10:20:39AM +, emlyn.j...@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:rjo...@redhat.com]
> Sent: Tuesday, August 1, 2017 8:42 PM
> To: Emlyn Jose (GIS) 
> 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 +, 
> emlyn.j...@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_FY4QCY=?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%2Fguestfs-hacking.1.html%23source-code-subdirectories
> 
> > 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_BY3FJnHRelAaCP

Re: [Libguestfs] libguestfs binaries missing when built from source code

2017-08-01 Thread Richard W.M. Jones

On Tue, Aug 01, 2017 at 12:55:21PM +, emlyn.j...@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.

http://libguestfs.org/guestfs-hacking.1.html#source-code-subdirectories

> 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: http://rwmj.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.
http://libguestfs.org/virt-v2v

___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] libguestfs binaries missing when built from source code

2017-07-25 Thread Richard W.M. Jones

On Tue, Jul 25, 2017 at 01:20:15PM +, emlyn.j...@wipro.com wrote:
> Hello,
> 
> This is regarding the binary missing from libguestfs built from the source 
> code(v 1.30.3).
> Here there are some binaries missing when compared to the libguestfs rpm 
> installed from the rhel6-server repo.
> Below are the list of binaries
> >From the os rpm libguestfs-tools-c-1.20.11-2.el6.x86_64:
> 
> >From  the one built from source code(v 1.30.3) is :

It's very unclear.  What exact steps are you using to build libguestfs?
Please also read: http://libguestfs.org/guestfs-building.1.html

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/

___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs