[Libvir] Libvirt on windows

Richard W.M. Jones rjones at redhat.com
Thu Jan 24 12:58:32 UTC 2008


There's a couple of odd things about this.

Firstly:

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'
c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/ws2tcpip.h:309: 
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:

#ifdef HAVE_NETDB_H
# include <netdb.h>
#endif

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.

Secondly:

../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 
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 
library.

Rich.

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080124/b9efcc19/attachment-0001.bin>


More information about the libvir-list mailing list