Re: PKG_CHECK_EXISTS (was: Re: [Libvir] libvirt on OS X Leopard 10.5.1)

2008-01-22 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I got it to build on my Mac (somewhat more correctly this time), but it still fails to connect to the daemon on the other side (see report below). How I did it: 1. Build on Linux 2. Run 'make dist' 3. Copy tarball over to Mac 4. Re-configure

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 That was it, thanks! - -- - -a On Jan 22, 2008, at 6:33 AM, Jim Meyering wrote: xsltproc -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) iD8DBQFHleMJTg8lceyAqqQRAoLkAJ9/gyb2fUaw2D/sKqwk9LNz943wiQCg5hEy gqeX9aMkbMUUO8jJ7mNIYvk=

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Jim Meyering
Schley Andrew Kutz [EMAIL PROTECTED] wrote: I was missing pkg-config. But the 'make dist' now fails: make[3]: Entering directory `/usr/local/src/libvirt/docs/examples/ python' make[3]: Leaving directory `/usr/local/src/libvirt/docs/examples/python' make[2]: Leaving directory

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Richard W.M. Jones
Attached is as far as I got over the weekend. As you can see the main problems (apart from the lack of hyper which is a showstopper) are: * Minor header tweaks * PKG_CHECK_EXISTS macro doesn't exist and has to be commented out everywhere. This is despite the fact that I have pkg-config

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Jim Meyering
Richard W.M. Jones [EMAIL PROTECTED] wrote: Attached is as far as I got over the weekend. As you can see the main problems (apart from the lack of hyper which is a showstopper) are: * Minor header tweaks ... Index: src/sexpr.c

PKG_CHECK_EXISTS (was: Re: [Libvir] libvirt on OS X Leopard 10.5.1)

2008-01-22 Thread Richard W.M. Jones
Richard W.M. Jones wrote: * PKG_CHECK_EXISTS macro doesn't exist and has to be commented out everywhere. This is despite the fact that I have pkg-config from Macports installed. Looking into this in a bit more detail -- Macports installs everything under /opt/local and there is a pkg.m4

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim, I am posting this to the list because, well, of what I am posting. Mail to you is bouncing. - -- - -a On Jan 22, 2008, at 6:53 AM, Jim Meyering wrote: Richard W.M. Jones [EMAIL PROTECTED] wrote: ... There are two alternatives I can

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Daniel Veillard
On Tue, Jan 22, 2008 at 12:02:49AM +, Daniel P. Berrange wrote: On Mon, Jan 21, 2008 at 05:58:06PM -0600, Schley Andrew Kutz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fails the same way on Linux (Ubuntu 7.10 Gutsy Gibbon - Server - x86_64): ./configure: line

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Daniel Veillard
On Mon, Jan 21, 2008 at 11:39:35PM +, Daniel P. Berrange wrote: I would point you at the snapshot tar.gz here, but it appears to be not updated since September http://libvirt.org/downloads.html ./configure: line 35987: syntax error near unexpected token `libxml-2.0,LIBXML_FOUND=yes'

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Daniel Veillard
On Tue, Jan 22, 2008 at 08:00:34AM -0500, Daniel Veillard wrote: On Mon, Jan 21, 2008 at 11:39:35PM +, Daniel P. Berrange wrote: I would point you at the snapshot tar.gz here, but it appears to be not updated since September http://libvirt.org/downloads.html ./configure: line

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Jim Meyering
Daniel Veillard [EMAIL PROTECTED] wrote: On Tue, Jan 22, 2008 at 08:00:34AM -0500, Daniel Veillard wrote: On Mon, Jan 21, 2008 at 11:39:35PM +, Daniel P. Berrange wrote: I would point you at the snapshot tar.gz here, but it appears to be not updated since September

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Daniel P. Berrange
On Tue, Jan 22, 2008 at 08:27:58AM -0500, Daniel Veillard wrote: On Tue, Jan 22, 2008 at 08:00:34AM -0500, Daniel Veillard wrote: On Mon, Jan 21, 2008 at 11:39:35PM +, Daniel P. Berrange wrote: I would point you at the snapshot tar.gz here, but it appears to be not updated since

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Richard W.M. Jones
Jim Meyering wrote: However, I confess I don't know enough about the alternatives you mention (below) to say if it's worth pursuing. Another, less appealing, is to look at some of the modern XDR library replacements. Uli suggested one, but I've lost the link at the moment... Of course that

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Daniel P. Berrange
On Tue, Jan 22, 2008 at 09:10:07AM -0500, Daniel Veillard wrote: On Tue, Jan 22, 2008 at 02:38:27PM +0100, Jim Meyering wrote: Daniel Veillard [EMAIL PROTECTED] wrote: Upgrading pkg-config on the box this goes further but then gets stuck at: configure: error: conditional

Re: PKG_CHECK_EXISTS (was: Re: [Libvir] libvirt on OS X Leopard 10.5.1)

2008-01-22 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'd like to figure out why the exception is getting thrown. I built it from HEAD, and I still cannot connect. Do we still think this ties back to the XDR problems? - -- - -a On Jan 22, 2008, at 6:56 AM, Schley Andrew Kutz wrote: -BEGIN

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Daniel P. Berrange
On Tue, Jan 22, 2008 at 04:44:39PM +0100, Jim Meyering wrote: Daniel Veillard [EMAIL PROTECTED] wrote: On Tue, Jan 22, 2008 at 02:38:27PM +0100, Jim Meyering wrote: Daniel Veillard [EMAIL PROTECTED] wrote: On Tue, Jan 22, 2008 at 08:00:34AM -0500, Daniel Veillard wrote: On Mon, Jan

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Jim Meyering
Daniel Veillard [EMAIL PROTECTED] wrote: On Tue, Jan 22, 2008 at 02:38:27PM +0100, Jim Meyering wrote: Daniel Veillard [EMAIL PROTECTED] wrote: On Tue, Jan 22, 2008 at 08:00:34AM -0500, Daniel Veillard wrote: On Mon, Jan 21, 2008 at 11:39:35PM +, Daniel P. Berrange wrote: I would

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-22 Thread Jim Meyering
Daniel P. Berrange [EMAIL PROTECTED] wrote: But if you omit the --without-depends (or remove the with-depends stuff altogether), my patch is still required to solve the problem. No it isn't - it works fine without it when i fix the other bits. Oh, I see, now. The conditionally AC_DEFINE'd

[Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I spent the weekend attempting to get libvirt working on OS X Leopard 10.5.1. I was able to get it to compile, but not connect to libvirtd running on either my KVM or Xen servers. Here are the instructions for getting it to compile: 1.

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ah, I knew hyper was 64-bit, but it has no definition on OS X. I thought that long on OS X 10.5.1 was 64 bits in width -- my mistake. There wre two bugs in the remoteAuthenticate method in libvirt 0.4.0 which can cause crashes. I'd recommend

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, the autogen.sh fails right off the bat. To get it working you have to edit it so that it checks the ld version with a '-V' instead of '--version' (OS X specific). Once you do that and run: ./autogen.sh --without-xen --without-qemu it

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Daniel P. Berrange
On Mon, Jan 21, 2008 at 05:32:33PM -0600, Schley Andrew Kutz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, the autogen.sh fails right off the bat. To get it working you have to edit it so that it checks the ld version with a '-V' instead of '--version' (OS X specific). Once

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Daniel P. Berrange
On Mon, Jan 21, 2008 at 05:27:33PM -0600, Schley Andrew Kutz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ah, I knew hyper was 64-bit, but it has no definition on OS X. I thought that long on OS X 10.5.1 was 64 bits in width -- my mistake. XDR is a language for defining portable

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here is all the mentions of xdr_hyper in /usr/include on my box: [EMAIL PROTECTED]:libvirt-HEAD-20080121$ grep -R xdr_hyper /usr/include /usr/include/nfs/nfsm_subs.h: txdr_hyper(__tmp64, (NMC)-nmc_ptr); \ /usr/include/nfs/nfsm_subs.h:

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Daniel P. Berrange
On Mon, Jan 21, 2008 at 04:50:29PM -0600, Schley Andrew Kutz wrote: 5. Edit '/usr/include/net/if.h' and add the following include: #include net/if_var.h #include sys/types.h // // EDIT: akutz // #include sys/socket.h This is curious - I'm puzzelled why libvirt source uses

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fails the same way on Linux (Ubuntu 7.10 Gutsy Gibbon - Server - x86_64): ./configure: line 35963: syntax error near unexpected token `libxml-2.0,LIBXML_FOUND=yes' ./configure: line 35963: ` PKG_CHECK_EXISTS(libxml-2.0,LIBXML_FOUND=yes)'

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Daniel P. Berrange
On Mon, Jan 21, 2008 at 05:52:06PM -0600, Schley Andrew Kutz wrote: I've attached the compile failure I get. Ok, so your header files suggest Mac OS *does* have xdr_hyper, and this failure is a link time failure: Undefined symbols: _xdr_quad_t, referenced from:

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Daniel P. Berrange
On Mon, Jan 21, 2008 at 05:58:06PM -0600, Schley Andrew Kutz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fails the same way on Linux (Ubuntu 7.10 Gutsy Gibbon - Server - x86_64): ./configure: line 35963: syntax error near unexpected token `libxml-2.0,LIBXML_FOUND=yes'

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Daniel P. Berrange
On Tue, Jan 22, 2008 at 12:01:10AM +, Daniel P. Berrange wrote: On Mon, Jan 21, 2008 at 05:52:06PM -0600, Schley Andrew Kutz wrote: I've attached the compile failure I get. Ok, so your header files suggest Mac OS *does* have xdr_hyper, and this failure is a link time failure:

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Not so much. I added the two headers from http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/xdr.3.html to remote_protocol.x and the gen fails: [EMAIL PROTECTED]:libvirt-0.4.0$ make -C qemud remote_protocol.c rm -f

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I was missing pkg-config. But the 'make dist' now fails: make[3]: Entering directory `/usr/local/src/libvirt/docs/examples/ python' make[3]: Leaving directory `/usr/local/src/libvirt/docs/examples/python' make[2]: Leaving directory

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED]:qemud$ make remote_protocol.c rm -f remote_protocol.c rpcgen -c -o remote_protocol.c remote_protocol.x unsigned hyper cpu_time; ^^^ remote_protocol.x, line 144: expected ';' make: *** [remote_protocol.c]

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Daniel P. Berrange
On Mon, Jan 21, 2008 at 06:18:26PM -0600, Schley Andrew Kutz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED]:qemud$ make remote_protocol.c rm -f remote_protocol.c rpcgen -c -o remote_protocol.c remote_protocol.x unsigned hyper cpu_time;

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Schley Andrew Kutz
Not it. When I changed all instances of hyper to long earlier it worked. The hyper is not getting parses. That said, I'll still try your suggestion when I'm back in front of my keyboard. -- -a On Jan 21, 2008, at 6:32 PM, Daniel P. Berrange [EMAIL PROTECTED] wrote: On Mon, Jan 21, 2008

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Verified that camelCase does not help. - -- - -a On Jan 21, 2008, at 6:46 PM, Schley Andrew Kutz wrote: Not it. When I changed all instances of hyper to long earlier it worked. The hyper is not getting parses. That said, I'll still try your

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Daniel P. Berrange
On Mon, Jan 21, 2008 at 07:27:58PM -0600, Schley Andrew Kutz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nevermind, I missed the date. Although, I do wonder if rpcgen on OS X supports 'hyper'? I am doing some digging to find out if it does. The Apple docs definitely suggest their

Re: [Libvir] libvirt on OS X Leopard 10.5.1

2008-01-21 Thread Schley Andrew Kutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'll try the latter. However, from an earlier e-mail I pointed out that I cannot get the 'make dist' to work on Linux. It moans about a missing help file: cp: cannot stat `./libvirt.devhelp': No such file or directory make[2]: *** [distdir]