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

Re: [Libvir] libvirt on OS X Leopard 10.5.1



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here is all the mentions of xdr_hyper in /usr/include on my box:

[0]akutz amends: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:		fxdr_hyper(__tmpptr, &(LVAL)); \
/usr/include/nfs/xdr_subs.h:#define	fxdr_hyper(f, t) { \
/usr/include/nfs/xdr_subs.h:#define	txdr_hyper(f, t) { \
/usr/include/rpc/xdr.h:extern bool_t	xdr_hyper(XDR *, quad_t *);

I tried including xdr.h in the remote_control.x file but that did not work. I am not familiar with the XDR language, so please pardon my ignorance. Thank you again for your help.

- --
- -a


On Jan 21, 2008, at 5:46 PM, Daniel P. Berrange wrote:

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 binary data formats. In the
impl of XDR, a 'long' is encoded as a 32-bit integrate, regardless of
what the C 'long' data type is. Furthermore, 'long' is actually deprecated
because its pointless having 'long' and 'int' being the same.

I'd still like to know what the compile failure you get is. If Mac OS
is merely missing the definition of the 'xdr_hyper' function, it is
quite possibly we could write a compatability function to make it work
correctly.

Regards,
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/ ~danberr/ -=| |=- Projects: http://freshmeat.net/ ~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHlS9qTg8lceyAqqQRAhtLAJ9GLXBv0dZBr03I0S5vbOCMSILZKQCg4y+K
RquebScbWTVpahKIlYmye38=
=3dvP
-----END PGP SIGNATURE-----


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