Hello! I am trying to compile version 1.6 on Windows XP. I installed MSysGit and tried to compile. I tried standalone, latest MinGW. Same error. What am I doing wrong, that I am getting this error?
/c/temp/memcached_current/memcached-1.6.0_beta1 $ make -f win32/Makefile.mingw <- Found it on Trond blog http://trondn.blogspot.com/2010/03/building-memcached-windows.html And getting errors: programs/mcstat.c: In function 'connect_server': programs/mcstat.c:21: error: variable 'hints' has initializer but incomplete type programs/mcstat.c:21: error: unknown field 'ai_family' specified in initializer programs/mcstat.c:21: error: 'AF_UNSPEC' undeclared (first use in this function) programs/mcstat.c:21: error: (Each undeclared identifier is reported only once programs/mcstat.c:21: error: for each function it appears in.) programs/mcstat.c:21: warning: excess elements in struct initializer programs/mcstat.c:21: warning: (near initialization for 'hints') programs/mcstat.c:22: error: unknown field 'ai_protocol' specified in initializer programs/mcstat.c:22: error: 'IPPROTO_TCP' undeclared (first use in this function) programs/mcstat.c:22: warning: excess elements in struct initializer programs/mcstat.c:22: warning: (near initialization for 'hints') programs/mcstat.c:23: error: unknown field 'ai_socktype' specified in initializer programs/mcstat.c:23: error: 'SOCK_STREAM' undeclared (first use in this function) programs/mcstat.c:23: warning: excess elements in struct initializer programs/mcstat.c:23: warning: (near initialization for 'hints') programs/mcstat.c:21: error: storage size of 'hints' isn't known programs/mcstat.c:25: warning: implicit declaration of function 'getaddrinfo' programs/mcstat.c:29: warning: implicit declaration of function 'socket' programs/mcstat.c:29: error: dereferencing pointer to incomplete type programs/mcstat.c:29: error: dereferencing pointer to incomplete type programs/mcstat.c:30: error: dereferencing pointer to incomplete type programs/mcstat.c:31: warning: implicit declaration of function 'connect' programs/mcstat.c:31: error: dereferencing pointer to incomplete type programs/mcstat.c:31: error: dereferencing pointer to incomplete type programs/mcstat.c:37: warning: implicit declaration of function 'freeaddrinfo' programs/mcstat.c:21: warning: unused variable 'hints' programs/mcstat.c: In function 'retry_send': programs/mcstat.c:55: warning: implicit declaration of function 'send' programs/mcstat.c: In function 'retry_recv': programs/mcstat.c:81: warning: implicit declaration of function 'recv' programs/mcstat.c: In function 'request_stat': programs/mcstat.c:133: warning: implicit declaration of function 'htons' programs/mcstat.c:134: warning: implicit declaration of function 'htonl' programs/mcstat.c:147: warning: implicit declaration of function 'ntohs' programs/mcstat.c:148: warning: implicit declaration of function 'ntohl' make: *** [.libs/programs/mcstat.o] Error 1
