[Libvir] Libvirt windows compilation errors

Hi, 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@ericom.com<mailto:Gabriel.Kaufmann@ericom.com> Ericom Software Tel (Dir): +972 2 591 1700 Ext 754 Tel (Main): +972 2 591 1700 http://www.ericom.com Access Done Right Empower Enterprise-Wide Access to Microsoft(r) Terminal Server, Virtual Desktops and Legacy Applications

Hello Gabriel, Really don't use Cygwin. Try compiling libvirt from CVS using MinGW + MSys. No patches required! https://www.redhat.com/archives/libvir-list/2008-January/msg00285.html https://www.redhat.com/archives/libvir-list/2008-January/msg00017.html 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
participants (2)
-
Gabriel Kaufmann
-
Richard W.M. Jones