[Libvir] Libvirt windows compilation errors

Gabriel Kaufmann Gabriel.Kaufmann at ericom.com
Tue Jan 22 06:07:39 UTC 2008


I downloaded libvirt-0.4.0 sources and patched it with libvirt-windows-20071129-2.patch.
I followed all the instructions from http://libvirt.org/windows.html  and experienced some compilation problems which
Caused me to make the following changes.

1-      For some reason Cygwin does not configure correctly the winsock2 usage, so after running the configure
I had to go to the config.h file and manually comment out the HAVE_WINSOCK2 macro declaration.

2-      On file src/remote_internal.c :
1- Rename gnutls_cipher_algorithm_t  to gnutls_cipher_algorithm

2- Add #include <sys/un.h>

3-      On file qemud/qemud.c :

4-      Remove include  : #include "getaddrinfo.h"
(It was conflicting the include from ../src/getaddrinfo.h )

5-      On file src/remote.c :
1- Rename gnutls_cipher_algorithm_t  to gnutls_cipher_algorithm
2- Add #include "../src/getaddrinfo.h"

6-      On tests folder added -lintl flag  to the LIBS variable

Best Regards,

Gabriel Kaufmann
Software Engineer
Gabriel.Kaufmann at ericom.com<mailto:Gabriel.Kaufmann at ericom.com>

Ericom Software
Tel (Dir): +972 2 591 1700 Ext 754
Tel (Main): +972 2 591 1700

Access Done Right
Empower Enterprise-Wide Access to Microsoft(r) Terminal Server, Virtual Desktops and Legacy Applications
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080122/2218f2fb/attachment-0001.htm>

More information about the libvir-list mailing list