From: Sigurd S. <sig...@nt...> - 2013-01-14 15:00:42
|
Thank you for quick response. I’ve updated to latest again, but now get the following error: make[3]: Entering directory `/d/Develop/liblo/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -I.. -DWIN32 -D_WIN32_WINNT=0x501 -O0 -g -Wall -Werror -MT liblo_la-address.lo -MD -MP -MF .deps/liblo_la-address.Tpo -c -o liblo_la-address.lo `test -f 'address.c' || echo './'`address.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -I.. -DWIN32 -D_WIN32_WINNT=0x501 -O0 -g -Wall -Werror -MT liblo_la-address.lo -MD -MP -MF .deps/liblo_la-address.Tpo -c address.c -DDLL_EXPORT -DPIC -o .libs/liblo_la-address.o address.c: In function 'lo_address_set_flags': address.c:401:20: error: passing argument 4 of 'setsockopt' from incompatible pointer type [-Werror] d:\develop\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsock2.h:551:32: note: expected 'const char *' but argument is of type 'int *' address.c: In function 'lo_inaddr_find_iface': address.c:569:13: error: passing argument 1 of 'lstrcmpW' from incompatible pointer type [-Werror] d:\develop\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winbase.h:1929:23: note: expected 'LPCWSTR' but argument is of type 'const char *' cc1.exe: all warnings being treated as errors make[3]: *** [liblo_la-address.lo] Error 1 make[3]: Leaving directory `/d/Develop/liblo/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/d/Develop/liblo/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/d/Develop/liblo' make: *** [all] Error 2 From: Stephen Sinclair [mailto:rad...@gm...] Sent: Monday, January 14, 2013 3:39 PM To: liblo development list Subject: Re: [liblo] Changes in November cause MinGW problems On Mon, Jan 14, 2013 at 9:23 AM, Sigurd Saue <sig...@nt...<mailto:sig...@nt...>> wrote: Hi, I tried to build liblo from the latest GIT, but it failed due to "netinet/tcp.h" not found (in address.c). I build on Windows 7 using MinGW, and the sys/netinet files are not present there. This dependency was introduced into liblo 2012-09-03. When I reverted to an earlier commit, liblo built fine. Is there a way to remove this dependency on Windows again (e.g. by checking WIN32)? Hello, Yes, I just pushed a patch to fix this as well as add a couple of missing functions to the .def file. I compiled with MingW without errors, let me know how it goes. Steve |