[Libvir] Libvirt on windows

Gabriel Kaufmann Gabriel.Kaufmann at ericom.com
Thu Jan 24 13:18:53 UTC 2008


Thank for you reply.

I'm using the libvirt-0.4.0.tar.gz from http://libvirt.org/sources/ and didn't take the sources from CVS
Maybe that is my problem.

I'll try using the sources from CVS.

Which patches do I have to run on the CVS sources?

By the way, in libvirt-0.4.0.tar.gz directory src there's a getaddrinfo.h file.


-----Original Message-----
From: Richard W.M. Jones [mailto:rjones at redhat.com]
Sent: Thursday, January 24, 2008 2:59 PM
To: Gabriel Kaufmann; 'libvir-list at redhat.com'
Subject: Re: [Libvir] Libvirt on windows

There's a couple of odd things about this.


In file included from ../gnulib/lib/sys/stat.h:28,
                  from remote_internal.c:36:
../gnulib/lib/sys/stat.h: In function 'rpl_mkdir':
../gnulib/lib/sys/stat.h:272: warning: unused parameter 'mode'
In file included from remote_internal.c:61:
getaddrinfo.h:38:19: error: netdb.h: No such file or directory
In file included from remote_internal.c:61:
getaddrinfo.h: At top level:
getaddrinfo.h:199: error: redefinition of 'struct addrinfo'
getaddrinfo.h:214: error: conflicting types for 'gai_strerrorA'
error: previous definition of 'gai_strerrorA' was here

According to ./configure, <netdb.h> header file wasn't found, as
expected, but the Gnulib implementation of getaddrinfo shouldn't be
trying to include it in this case.  In Gnulib's getaddrinfo.h we have:

# include <netdb.h>

But I think you're including some other <getaddrinfo.h> from somewhere else.

My version of MinGW doesn't have any file called getaddrinfo.h (which is
why we're using the one from Gnulib in the first place), so I suspect
either you're using some later version of MinGW or else you've got MinGW
& Cygwin files mixed up, or you've got some other implementation of
getaddrinfo installed.


../qemud/remote_protocol.h:509: error: expected specifier-qualifier-list
before 'u_int64_t'

In this file from CVS, line 509 is:

typedef struct remote_domain_get_max_vcpus_args

and I don't see how this line can provoke the error.  You'll need to use
the versions of qemud/remote_protocol.[ch] from CVS, along with
PortableXDR (see yesterday's posting) or my hacked up xdr-4.0-mingw5


Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903

More information about the libvir-list mailing list