[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] Fixes from the patch queue of the Debian package

The problem is:

top_srcdir=$(pwd)/..; top_builddir=$(pwd)/..; export ARCHFLAGS="-arch $(uname -m)"; mkdir -p ./ext/guestfs; cd ./ext/guestfs; ruby /home/rjones/d/libguestfs/ruby/ext/guestfs/extconf.rb --with-_guestfs-include=$top_srcdir/src:$top_builddir --with-_guestfs-lib=$top_builddir/src/.libs
checking for guestfs.h... yes
checking for guestfs_create() in -lguestfs... yes
checking for rb_hash_lookup()... no                <---- note
checking for rb_define_alloc_func()... no          <---- note
checking for rb_alloc_func_t... yes
creating extconf.h
creating Makefile

This appears to be caused by the relative placement of the have_func()
calls and setting CFLAGS.  I moved the CFLAGS setting afterwards and
it magically fixed itself and now works:


Note I also added back the #include <config.h>.  Although that header
no longer contains HAVE_* definitions related to Ruby, it does contain
a few things like _GNU_SOURCE which we might need, and in any case
including it doesn't seem to break anything.



Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]