On Wed, Oct 7, 2015 at 3:14 PM, Frediano Ziglio <fziglio@xxxxxxxxxx> wrote: >> >> Otherwise the following errors can be faced: >> src/vscclient-vscclient.o: In function `send_msg': >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:122: undefined >> reference to `_imp__htonl@4' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:124: undefined >> reference to `_imp__htonl@4' >> src/vscclient-vscclient.o: In function `on_host_init': >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:260: undefined >> reference to `_imp__ntohl@4' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:273: undefined >> reference to `_imp__ntohl@4' >> src/vscclient-vscclient.o: In function `do_socket_read': >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:332: undefined >> reference to `_imp__ntohl@4' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:333: undefined >> reference to `_imp__ntohl@4' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:334: undefined >> reference to `_imp__ntohl@4' >> src/vscclient-vscclient.o: In function `connect_to_qemu': >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:615: undefined >> reference to `_imp__socket@12' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:628: undefined >> reference to `_imp__getaddrinfo@16' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:636: undefined >> reference to `_imp__connect@12' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:645: undefined >> reference to `_imp__freeaddrinfo@4' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:650: undefined >> reference to `_imp__freeaddrinfo@4' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:652: undefined >> reference to `_imp__closesocket@4' >> src/vscclient-vscclient.o: In function `main': >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:676: undefined >> reference to `_imp__WSAStartup@8' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:677: undefined >> reference to `_imp__WSAGetLastError@0' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:778: undefined >> reference to `_imp__htonl@4' >> /home/ffidenci/src/upstream/libcacard/src/vscclient.c:791: undefined >> reference to `_imp__closesocket@4' >> collect2: error: ld returned 1 exit status >> Makefile:656: recipe for target 'vscclient.exe' failed >> make[2]: *** [vscclient.exe] Error 1 >> make[2]: Leaving directory '/home/ffidenci/src/upstream/libcacard' >> Makefile:774: recipe for target 'all-recursive' failed >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory '/home/ffidenci/src/upstream/libcacard' >> Makefile:495: recipe for target 'all' failed >> make: *** [all] Error 2 >> --- >> Makefile.am | 4 ++++ >> src/vscclient.c | 1 + >> 2 files changed, 5 insertions(+) >> >> diff --git a/Makefile.am b/Makefile.am >> index eea8daa..bbe8e2e 100644 >> --- a/Makefile.am >> +++ b/Makefile.am >> @@ -40,6 +40,10 @@ libcacard_la_LDFLAGS = \ >> $(WARN_LDFLAGS) >> $(NULL) >> >> +#if OS_WIN32 >> +libcacard_la_LIBADD += -lws2_32 >> +#endif >> + >> pkgconfigdir = $(libdir)/pkgconfig >> pkgconfig_DATA = libcacard.pc >> >> diff --git a/src/vscclient.c b/src/vscclient.c >> index 24015ef..fea5aea 100644 >> --- a/src/vscclient.c >> +++ b/src/vscclient.c >> @@ -21,6 +21,7 @@ >> #define closesocket(x) close(x) >> #else >> #include <ws2tcpip.h> >> +#include <winsock2.h> >> #include <getopt.h> >> #endif >> > > I don't remember why but is better to include ws2tcpip.h after winsock2.h Okay, locally fixed, thanks! _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel