Skip to content

Instantly share code, notes, and snippets.

@Choonster
Created August 9, 2016 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Choonster/bc8519949215cbdafb34d9a5b2056ac0 to your computer and use it in GitHub Desktop.
Save Choonster/bc8519949215cbdafb34d9a5b2056ac0 to your computer and use it in GitHub Desktop.
libuv 1.x compilation errors - MSYS2 MinGW64 on Windows 10 - https://github.com/libuv/libuv/issues/982
CC src/win/libuv_la-async.lo
In file included from src/win/internal.h:29:0,
from src/win/async.c:25:
src/win/winapi.h:4148:21: warning: ISO C90 doesn’t support unnamed structs/unions [-Wpedantic]
} DUMMYUNIONNAME;
^
src/win/winapi.h:4154:5: error: unknown type name ‘NTSTATUS’
NTSTATUS Status;
^
src/win/winapi.h:4156:19: warning: ISO C90 doesn’t support unnamed structs/unions [-Wpedantic]
} DUMMYUNIONNAME;
^
src/win/winapi.h:4516:16: error: unknown type name ‘NTSTATUS’
(NTSTATUS Status);
^
src/win/winapi.h:4518:25: error: expected declaration specifiers or ‘...’ before ‘*’ token
typedef NTSTATUS (NTAPI *sNtDeviceIoControlFile)
^
src/win/winapi.h:4530:25: error: expected declaration specifiers or ‘...’ before ‘*’ token
typedef NTSTATUS (NTAPI *sNtQueryInformationFile)
^
src/win/winapi.h:4537:25: error: expected declaration specifiers or ‘...’ before ‘*’ token
typedef NTSTATUS (NTAPI *sNtSetInformationFile)
^
src/win/winapi.h:4544:25: error: expected declaration specifiers or ‘...’ before ‘*’ token
typedef NTSTATUS (NTAPI *sNtQueryVolumeInformationFile)
^
src/win/winapi.h:4551:25: error: expected declaration specifiers or ‘...’ before ‘*’ token
typedef NTSTATUS (NTAPI *sNtQuerySystemInformation)
^
src/win/winapi.h:4557:25: error: expected declaration specifiers or ‘...’ before ‘*’ token
typedef NTSTATUS (NTAPI *sNtQueryDirectoryFile)
^
src/win/winapi.h:4688:8: error: unknown type name ‘sRtlNtStatusToDosError’
extern sRtlNtStatusToDosError pRtlNtStatusToDosError;
^
src/win/winapi.h:4689:8: error: unknown type name ‘sNtDeviceIoControlFile’
extern sNtDeviceIoControlFile pNtDeviceIoControlFile;
^
src/win/winapi.h:4690:8: error: unknown type name ‘sNtQueryInformationFile’
extern sNtQueryInformationFile pNtQueryInformationFile;
^
src/win/winapi.h:4691:8: error: unknown type name ‘sNtSetInformationFile’
extern sNtSetInformationFile pNtSetInformationFile;
^
src/win/winapi.h:4692:8: error: unknown type name ‘sNtQueryVolumeInformationFile’
extern sNtQueryVolumeInformationFile pNtQueryVolumeInformationFile;
^
src/win/winapi.h:4693:8: error: unknown type name ‘sNtQueryDirectoryFile’
extern sNtQueryDirectoryFile pNtQueryDirectoryFile;
^
src/win/winapi.h:4694:8: error: unknown type name ‘sNtQuerySystemInformation’
extern sNtQuerySystemInformation pNtQuerySystemInformation;
^
In file included from /usr/include/w32api/winsock2.h:56:0,
from src/win/winsock.h:25,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/psdk_inc/_fd_types.h:100:2: warning: #warning "fd_set and associated macros have been defined in sys/types. This can cause runtime problems with W32 sockets" [-Wcpp]
#warning "fd_set and associated macros have been defined in sys/types. \
^
In file included from /usr/include/w32api/winsock2.h:57:0,
from src/win/winsock.h:25,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/psdk_inc/_ip_types.h:25:8: error: redefinition of ‘struct hostent’
struct hostent {
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:79:8: note: originally defined here
struct hostent {
^
In file included from /usr/include/w32api/winsock2.h:57:0,
from src/win/winsock.h:25,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/psdk_inc/_ip_types.h:33:8: error: redefinition of ‘struct netent’
struct netent {
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:93:8: note: originally defined here
struct netent {
^
In file included from /usr/include/w32api/winsock2.h:57:0,
from src/win/winsock.h:25,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/psdk_inc/_ip_types.h:40:8: error: redefinition of ‘struct servent’
struct servent {
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:46:10: note: originally defined here
struct servent *getservbyname (const char *__name, const char *__proto);
^
In file included from /usr/include/w32api/winsock2.h:57:0,
from src/win/winsock.h:25,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/psdk_inc/_ip_types.h:52:8: error: redefinition of ‘struct protoent’
struct protoent {
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:107:8: note: originally defined here
struct protoent
^
In file included from /usr/include/w32api/winsock2.h:57:0,
from src/win/winsock.h:25,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/psdk_inc/_ip_types.h:63:8: error: redefinition of ‘struct linger’
struct linger {
^
In file included from /usr/include/sys/socket.h:13:0,
from ./include/uv-unix.h:30,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/socket.h:57:8: note: originally defined here
struct linger {
^
In file included from /usr/include/w32api/winsock2.h:57:0,
from src/win/winsock.h:25,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/psdk_inc/_ip_types.h:70:8: error: redefinition of ‘struct sockaddr’
struct sockaddr {
^
In file included from /usr/include/sys/socket.h:13:0,
from ./include/uv-unix.h:30,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/socket.h:27:8: note: originally defined here
struct sockaddr {
^
In file included from /usr/include/w32api/winsock2.h:57:0,
from src/win/winsock.h:25,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/psdk_inc/_ip_types.h:75:8: error: redefinition of ‘struct sockaddr_in’
struct sockaddr_in {
^
In file included from /usr/include/netinet/in.h:12:0,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/in.h:196:8: note: originally defined here
struct sockaddr_in
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:260:10: error: redefinition of ‘struct sockaddr_storage’
struct sockaddr_storage {
^
In file included from /usr/include/sys/socket.h:13:0,
from ./include/uv-unix.h:30,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/socket.h:39:8: note: originally defined here
struct sockaddr_storage {
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:973:37: error: conflicting types for ‘accept’
WINSOCK_API_LINKAGE SOCKET WSAAPI accept(SOCKET s,struct sockaddr *addr,int *addrlen);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:22:7: note: previous declaration of ‘accept’ was here
int accept (int, struct sockaddr *__peer, socklen_t *);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:974:34: error: conflicting types for ‘bind’
WINSOCK_API_LINKAGE int WSAAPI bind(SOCKET s,const struct sockaddr *name,int namelen);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:24:7: note: previous declaration of ‘bind’ was here
int bind (int, const struct sockaddr *__my_addr, socklen_t __addrlen);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:976:34: error: conflicting types for ‘connect’
WINSOCK_API_LINKAGE int WSAAPI connect(SOCKET s,const struct sockaddr *name,int namelen);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:25:7: note: previous declaration of ‘connect’ was here
int connect (int, const struct sockaddr *, socklen_t);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:978:34: error: conflicting types for ‘getpeername’
WINSOCK_API_LINKAGE int WSAAPI getpeername(SOCKET s,struct sockaddr *name,int *namelen);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:26:7: note: previous declaration of ‘getpeername’ was here
int getpeername (int, struct sockaddr *__peer, socklen_t *);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:979:34: error: conflicting types for ‘getsockname’
WINSOCK_API_LINKAGE int WSAAPI getsockname(SOCKET s,struct sockaddr *name,int *namelen);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:27:7: note: previous declaration of ‘getsockname’ was here
int getsockname (int, struct sockaddr *__addr, socklen_t *);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:980:34: error: conflicting types for ‘getsockopt’
WINSOCK_API_LINKAGE int WSAAPI getsockopt(SOCKET s,int level,int optname,char *optval,int *optlen);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:39:7: note: previous declaration of ‘getsockopt’ was here
int getsockopt (int __s, int __level, int __optname, void *__optval,
^
In file included from /usr/include/cygwin/in.h:263:0,
from /usr/include/netinet/in.h:12,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/w32api/winsock2.h:982:37: error: expected declaration specifiers or ‘...’ before ‘(’ token
WINSOCK_API_LINKAGE u_long WSAAPI htonl(u_long hostlong);
^
/usr/include/w32api/winsock2.h:982:37: error: expected ‘)’ before ‘?’ token
WINSOCK_API_LINKAGE u_long WSAAPI htonl(u_long hostlong);
^
/usr/include/w32api/winsock2.h:983:38: error: expected declaration specifiers or ‘...’ before ‘(’ token
WINSOCK_API_LINKAGE u_short WSAAPI htons(u_short hostshort);
^
/usr/include/w32api/winsock2.h:983:38: error: expected ‘)’ before ‘?’ token
WINSOCK_API_LINKAGE u_short WSAAPI htons(u_short hostshort);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:987:34: error: conflicting types for ‘listen’
WINSOCK_API_LINKAGE int WSAAPI listen(SOCKET s,int backlog);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:28:7: note: previous declaration of ‘listen’ was here
int listen (int, int __n);
^
In file included from /usr/include/cygwin/in.h:263:0,
from /usr/include/netinet/in.h:12,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/w32api/winsock2.h:989:37: error: expected declaration specifiers or ‘...’ before ‘(’ token
WINSOCK_API_LINKAGE u_long WSAAPI ntohl(u_long netlong);
^
/usr/include/w32api/winsock2.h:989:37: error: expected ‘)’ before ‘?’ token
WINSOCK_API_LINKAGE u_long WSAAPI ntohl(u_long netlong);
^
/usr/include/w32api/winsock2.h:990:38: error: expected declaration specifiers or ‘...’ before ‘(’ token
WINSOCK_API_LINKAGE u_short WSAAPI ntohs(u_short netshort);
^
/usr/include/w32api/winsock2.h:990:38: error: expected ‘)’ before ‘?’ token
WINSOCK_API_LINKAGE u_short WSAAPI ntohs(u_short netshort);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:992:34: error: conflicting types for ‘recv’
WINSOCK_API_LINKAGE int WSAAPI recv(SOCKET s,char *buf,int len,int flags);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:29:11: note: previous declaration of ‘recv’ was here
ssize_t recv (int, void *__buff, size_t __len, int __flags);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:993:34: error: conflicting types for ‘recvfrom’
WINSOCK_API_LINKAGE int WSAAPI recvfrom(SOCKET s,char *buf,int len,int flags,struct sockaddr *from,int *fromlen);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:30:11: note: previous declaration of ‘recvfrom’ was here
ssize_t recvfrom (int, void *__buff, size_t __len, int __flags,
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:995:34: error: conflicting types for ‘select’
WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
^
In file included from /usr/include/sys/types.h:68:0,
from /usr/include/stdio.h:48,
from ./include/uv.h:51,
from src/win/async.c:24:
/usr/include/sys/select.h:73:5: note: previous declaration of ‘select’ was here
int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:997:34: error: conflicting types for ‘send’
WINSOCK_API_LINKAGE int WSAAPI send(SOCKET s,const char *buf,int len,int flags);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:33:11: note: previous declaration of ‘send’ was here
ssize_t send (int, const void *__buff, size_t __len, int __flags);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:998:34: error: conflicting types for ‘sendto’
WINSOCK_API_LINKAGE int WSAAPI sendto(SOCKET s,const char *buf,int len,int flags,const struct sockaddr *to,int tolen);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:35:11: note: previous declaration of ‘sendto’ was here
ssize_t sendto (int, const void *, size_t __len, int __flags,
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:999:34: error: conflicting types for ‘setsockopt’
WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char *optval,int optlen);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:37:7: note: previous declaration of ‘setsockopt’ was here
int setsockopt (int __s, int __level, int __optname, const void *optval,
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:1000:34: error: conflicting types for ‘shutdown’
WINSOCK_API_LINKAGE int WSAAPI shutdown(SOCKET s,int how);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:41:7: note: previous declaration of ‘shutdown’ was here
int shutdown (int, int);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:1001:37: error: conflicting types for ‘socket’
WINSOCK_API_LINKAGE SOCKET WSAAPI socket(int af,int type,int protocol);
^
In file included from ./include/uv-unix.h:30:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/sys/socket.h:42:7: note: previous declaration of ‘socket’ was here
int socket (int __family, int __type, int __protocol);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:1002:46: error: conflicting types for ‘gethostbyaddr’
WINSOCK_API_LINKAGE struct hostent *WSAAPI gethostbyaddr(const char *addr,int len,int type);
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:217:17: note: previous declaration of ‘gethostbyaddr’ was here
struct hostent *gethostbyaddr (const char *, int, int);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:1003:46: error: conflicting types for ‘gethostbyname’
WINSOCK_API_LINKAGE struct hostent *WSAAPI gethostbyname(const char *name);
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:218:17: note: previous declaration of ‘gethostbyname’ was here
struct hostent *gethostbyname (const char *);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:1005:46: error: conflicting types for ‘getservbyport’
WINSOCK_API_LINKAGE struct servent *WSAAPI getservbyport(int port,const char *proto);
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:228:17: note: previous declaration of ‘getservbyport’ was here
struct servent *getservbyport (int, const char *);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:1006:46: error: conflicting types for ‘getservbyname’
WINSOCK_API_LINKAGE struct servent *WSAAPI getservbyname(const char *name,const char *proto);
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:227:17: note: previous declaration of ‘getservbyname’ was here
struct servent *getservbyname (const char *, const char *);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:1007:47: error: conflicting types for ‘getprotobynumber’
WINSOCK_API_LINKAGE struct protoent *WSAAPI getprotobynumber(int number);
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:225:18: note: previous declaration of ‘getprotobynumber’ was here
struct protoent *getprotobynumber (int);
^
In file included from src/win/winsock.h:25:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/winsock2.h:1008:47: error: conflicting types for ‘getprotobyname’
WINSOCK_API_LINKAGE struct protoent *WSAAPI getprotobyname(const char *name);
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:224:18: note: previous declaration of ‘getprotobyname’ was here
struct protoent *getprotobyname (const char *);
^
In file included from /usr/include/w32api/ws2tcpip.h:18:0,
from src/win/winsock.h:28,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2ipdef.h:23:16: error: redefinition of ‘struct ipv6_mreq’
typedef struct ipv6_mreq {
^
In file included from /usr/include/cygwin/in.h:274:0,
from /usr/include/netinet/in.h:12,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/in6.h:86:8: note: originally defined here
struct ipv6_mreq
^
In file included from /usr/include/w32api/ws2tcpip.h:18:0,
from src/win/winsock.h:28,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2ipdef.h:41:8: error: redefinition of ‘struct sockaddr_in6’
struct sockaddr_in6 {
^
In file included from /usr/include/cygwin/in.h:274:0,
from /usr/include/netinet/in.h:12,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/in6.h:110:8: note: originally defined here
struct sockaddr_in6
^
In file included from /usr/include/sys/socket.h:13:0,
from ./include/uv-unix.h:30,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/w32api/ws2ipdef.h:64:3: error: expected identifier before numeric constant
MCAST_INCLUDE = 0,
^
In file included from /usr/include/w32api/ws2tcpip.h:18:0,
from src/win/winsock.h:28,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2ipdef.h:79:16: error: redefinition of ‘struct group_filter’
typedef struct group_filter {
^
In file included from /usr/include/netinet/in.h:12:0,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/in.h:181:8: note: originally defined here
struct group_filter
^
In file included from /usr/include/w32api/ws2tcpip.h:18:0,
from src/win/winsock.h:28,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2ipdef.h:87:16: error: redefinition of ‘struct group_req’
typedef struct group_req {
^
In file included from /usr/include/netinet/in.h:12:0,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/in.h:168:8: note: originally defined here
struct group_req
^
In file included from /usr/include/w32api/ws2tcpip.h:18:0,
from src/win/winsock.h:28,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2ipdef.h:92:16: error: redefinition of ‘struct group_source_req’
typedef struct group_source_req {
^
In file included from /usr/include/netinet/in.h:12:0,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/in.h:174:8: note: originally defined here
struct group_source_req
^
In file included from /usr/include/w32api/ws2tcpip.h:19:0,
from src/win/winsock.h:28,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/psdk_inc/_ip_mreq1.h:12:8: error: redefinition of ‘struct ip_mreq’
struct ip_mreq {
^
In file included from /usr/include/netinet/in.h:12:0,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/in.h:134:8: note: originally defined here
struct ip_mreq
^
In file included from src/win/winsock.h:28:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2tcpip.h:22:8: error: redefinition of ‘struct ip_mreq_source’
struct ip_mreq_source {
^
In file included from /usr/include/netinet/in.h:12:0,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/in.h:140:8: note: originally defined here
struct ip_mreq_source
^
In file included from src/win/winsock.h:28:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2tcpip.h:28:8: error: redefinition of ‘struct ip_msfilter’
struct ip_msfilter {
^
In file included from /usr/include/netinet/in.h:12:0,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/in.h:147:8: note: originally defined here
struct ip_msfilter
^
In file included from /usr/include/cygwin/in.h:274:0,
from /usr/include/netinet/in.h:12,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/w32api/ws2tcpip.h:86:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_UNSPECIFIED(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:86:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_UNSPECIFIED(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:86:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_UNSPECIFIED(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:87:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_LOOPBACK(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:87:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_LOOPBACK(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:87:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_LOOPBACK(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:88:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_MULTICAST(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:88:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_MULTICAST(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:88:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_MULTICAST(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:89:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_LINKLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:89:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_LINKLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:89:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_LINKLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:89:5: error: expected ‘)’ before ‘==’ token
int IN6_IS_ADDR_LINKLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:90:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_SITELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:90:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_SITELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:90:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_SITELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:90:5: error: expected ‘)’ before ‘==’ token
int IN6_IS_ADDR_SITELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:91:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_V4MAPPED(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:91:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_V4MAPPED(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:91:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_V4MAPPED(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:92:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_V4COMPAT(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:92:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_V4COMPAT(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:92:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_V4COMPAT(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:93:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:93:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:93:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:93:5: error: expected ‘)’ before ‘&&’ token
int IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:94:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:94:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:94:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:94:5: error: expected ‘)’ before ‘&&’ token
int IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:95:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:95:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:95:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:95:5: error: expected ‘)’ before ‘&&’ token
int IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:96:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_MC_ORGLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:96:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_MC_ORGLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:96:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_MC_ORGLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:96:5: error: expected ‘)’ before ‘&&’ token
int IN6_IS_ADDR_MC_ORGLOCAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:97:5: error: expected identifier or ‘(’ before ‘const’
int IN6_IS_ADDR_MC_GLOBAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:97:5: error: expected ‘)’ before ‘(’ token
int IN6_IS_ADDR_MC_GLOBAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:97:5: error: expected ‘)’ before ‘[’ token
int IN6_IS_ADDR_MC_GLOBAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:97:5: error: expected ‘)’ before ‘&&’ token
int IN6_IS_ADDR_MC_GLOBAL(const struct in6_addr *);
^
/usr/include/w32api/ws2tcpip.h:105:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_UNSPECIFIED(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0) && (a->s6_words[6]==0) && (a->s6_words[7]==0)); }
^
/usr/include/w32api/ws2tcpip.h:105:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_UNSPECIFIED(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0) && (a->s6_words[6]==0) && (a->s6_words[7]==0)); }
^
/usr/include/w32api/ws2tcpip.h:105:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_UNSPECIFIED(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0) && (a->s6_words[6]==0) && (a->s6_words[7]==0)); }
^
/usr/include/w32api/ws2tcpip.h:106:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_LOOPBACK(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0) && (a->s6_words[6]==0) && (a->s6_words[7]==0x0100)); }
^
/usr/include/w32api/ws2tcpip.h:106:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_LOOPBACK(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0) && (a->s6_words[6]==0) && (a->s6_words[7]==0x0100)); }
^
/usr/include/w32api/ws2tcpip.h:106:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_LOOPBACK(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0) && (a->s6_words[6]==0) && (a->s6_words[7]==0x0100)); }
^
/usr/include/w32api/ws2tcpip.h:107:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_MULTICAST(const struct in6_addr *a) { return (a->s6_bytes[0]==0xff); }
^
/usr/include/w32api/ws2tcpip.h:107:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MULTICAST(const struct in6_addr *a) { return (a->s6_bytes[0]==0xff); }
^
/usr/include/w32api/ws2tcpip.h:107:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MULTICAST(const struct in6_addr *a) { return (a->s6_bytes[0]==0xff); }
^
/usr/include/w32api/ws2tcpip.h:108:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_LINKLOCAL(const struct in6_addr *a) { return ((a->s6_bytes[0]==0xfe) && ((a->s6_bytes[1] & 0xc0)==0x80)); }
^
/usr/include/w32api/ws2tcpip.h:108:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_LINKLOCAL(const struct in6_addr *a) { return ((a->s6_bytes[0]==0xfe) && ((a->s6_bytes[1] & 0xc0)==0x80)); }
^
/usr/include/w32api/ws2tcpip.h:108:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_LINKLOCAL(const struct in6_addr *a) { return ((a->s6_bytes[0]==0xfe) && ((a->s6_bytes[1] & 0xc0)==0x80)); }
^
/usr/include/w32api/ws2tcpip.h:108:21: error: expected ‘)’ before ‘==’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_LINKLOCAL(const struct in6_addr *a) { return ((a->s6_bytes[0]==0xfe) && ((a->s6_bytes[1] & 0xc0)==0x80)); }
^
/usr/include/w32api/ws2tcpip.h:109:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_SITELOCAL(const struct in6_addr *a) { return ((a->s6_bytes[0]==0xfe) && ((a->s6_bytes[1] & 0xc0)==0xc0)); }
^
/usr/include/w32api/ws2tcpip.h:109:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_SITELOCAL(const struct in6_addr *a) { return ((a->s6_bytes[0]==0xfe) && ((a->s6_bytes[1] & 0xc0)==0xc0)); }
^
/usr/include/w32api/ws2tcpip.h:109:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_SITELOCAL(const struct in6_addr *a) { return ((a->s6_bytes[0]==0xfe) && ((a->s6_bytes[1] & 0xc0)==0xc0)); }
^
/usr/include/w32api/ws2tcpip.h:109:21: error: expected ‘)’ before ‘==’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_SITELOCAL(const struct in6_addr *a) { return ((a->s6_bytes[0]==0xfe) && ((a->s6_bytes[1] & 0xc0)==0xc0)); }
^
/usr/include/w32api/ws2tcpip.h:110:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_V4MAPPED(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0xffff)); }
^
/usr/include/w32api/ws2tcpip.h:110:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_V4MAPPED(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0xffff)); }
^
/usr/include/w32api/ws2tcpip.h:110:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_V4MAPPED(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0xffff)); }
^
/usr/include/w32api/ws2tcpip.h:111:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_V4COMPAT(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0) && !((a->s6_words[6]==0) && (a->s6_addr[14]==0) && ((a->s6_addr[15]==0) || (a->s6_addr[15]==1)))); }
^
/usr/include/w32api/ws2tcpip.h:111:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_V4COMPAT(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0) && !((a->s6_words[6]==0) && (a->s6_addr[14]==0) && ((a->s6_addr[15]==0) || (a->s6_addr[15]==1)))); }
^
/usr/include/w32api/ws2tcpip.h:111:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_V4COMPAT(const struct in6_addr *a) { return ((a->s6_words[0]==0) && (a->s6_words[1]==0) && (a->s6_words[2]==0) && (a->s6_words[3]==0) && (a->s6_words[4]==0) && (a->s6_words[5]==0) && !((a->s6_words[6]==0) && (a->s6_addr[14]==0) && ((a->s6_addr[15]==0) || (a->s6_addr[15]==1)))); }
^
/usr/include/w32api/ws2tcpip.h:112:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==1); }
^
/usr/include/w32api/ws2tcpip.h:112:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==1); }
^
/usr/include/w32api/ws2tcpip.h:112:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==1); }
^
/usr/include/w32api/ws2tcpip.h:112:21: error: expected ‘)’ before ‘&&’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==1); }
^
/usr/include/w32api/ws2tcpip.h:113:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==2); }
^
/usr/include/w32api/ws2tcpip.h:113:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==2); }
^
/usr/include/w32api/ws2tcpip.h:113:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==2); }
^
/usr/include/w32api/ws2tcpip.h:113:21: error: expected ‘)’ before ‘&&’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==2); }
^
/usr/include/w32api/ws2tcpip.h:114:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==5); }
^
/usr/include/w32api/ws2tcpip.h:114:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==5); }
^
/usr/include/w32api/ws2tcpip.h:114:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==5); }
^
/usr/include/w32api/ws2tcpip.h:114:21: error: expected ‘)’ before ‘&&’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==5); }
^
/usr/include/w32api/ws2tcpip.h:115:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_ORGLOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==8); }
^
/usr/include/w32api/ws2tcpip.h:115:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_ORGLOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==8); }
^
/usr/include/w32api/ws2tcpip.h:115:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_ORGLOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==8); }
^
/usr/include/w32api/ws2tcpip.h:115:21: error: expected ‘)’ before ‘&&’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_ORGLOCAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==8); }
^
/usr/include/w32api/ws2tcpip.h:116:21: error: expected identifier or ‘(’ before ‘const’
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_GLOBAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==0xe); }
^
/usr/include/w32api/ws2tcpip.h:116:21: error: expected ‘)’ before ‘(’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_GLOBAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==0xe); }
^
/usr/include/w32api/ws2tcpip.h:116:21: error: expected ‘)’ before ‘[’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_GLOBAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==0xe); }
^
/usr/include/w32api/ws2tcpip.h:116:21: error: expected ‘)’ before ‘&&’ token
WS2TCPIP_INLINE int IN6_IS_ADDR_MC_GLOBAL(const struct in6_addr *a) { return IN6_IS_ADDR_MULTICAST(a) && ((a->s6_bytes[1] & 0xf)==0xe); }
^
In file included from src/win/winsock.h:28:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2tcpip.h: In function ‘IN6_SET_ADDR_UNSPECIFIED’:
/usr/include/w32api/ws2tcpip.h:119:77: error: ‘struct in6_addr’ has no member named ‘s6_bytes’
WS2TCPIP_INLINE void IN6_SET_ADDR_UNSPECIFIED(struct in6_addr *a) { memset(a->s6_bytes,0,sizeof(struct in6_addr)); }
^
/usr/include/w32api/ws2tcpip.h: In function ‘IN6_SET_ADDR_LOOPBACK’:
/usr/include/w32api/ws2tcpip.h:121:11: error: ‘struct in6_addr’ has no member named ‘s6_bytes’
memset(a->s6_bytes,0,sizeof(struct in6_addr));
^
/usr/include/w32api/ws2tcpip.h:122:4: error: ‘struct in6_addr’ has no member named ‘s6_bytes’
a->s6_bytes[15] = 1;
^
/usr/include/w32api/ws2tcpip.h: At top level:
/usr/include/w32api/ws2tcpip.h:156:16: error: redefinition of ‘struct in_pktinfo’
typedef struct in_pktinfo {
^
In file included from /usr/include/netinet/in.h:12:0,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/in.h:160:8: note: originally defined here
struct in_pktinfo
^
In file included from src/win/winsock.h:28:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2tcpip.h:157:3: error: unknown type name ‘IN_ADDR’
IN_ADDR ipi_addr;
^
/usr/include/w32api/ws2tcpip.h:163:16: error: redefinition of ‘struct in6_pktinfo’
typedef struct in6_pktinfo {
^
In file included from /usr/include/cygwin/in.h:274:0,
from /usr/include/netinet/in.h:12,
from ./include/uv-unix.h:31,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/cygwin/in6.h:100:8: note: originally defined here
struct in6_pktinfo
^
In file included from src/win/winsock.h:28:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2tcpip.h:164:3: error: unknown type name ‘IN6_ADDR’
IN6_ADDR ipi6_addr;
^
/usr/include/w32api/ws2tcpip.h:168:1: error: size of unnamed array is negative
C_ASSERT(sizeof(IN6_PKTINFO)==20);
^
/usr/include/w32api/ws2tcpip.h:182:16: error: redefinition of ‘struct addrinfo’
typedef struct addrinfo {
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:121:8: note: originally defined here
struct addrinfo {
^
In file included from src/win/winsock.h:28:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2tcpip.h:234:34: error: conflicting types for ‘getaddrinfo’
WINSOCK_API_LINKAGE int WSAAPI getaddrinfo(const char *nodename,const char *servname,const struct addrinfo *hints,struct addrinfo **res);
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:242:6: note: previous declaration of ‘getaddrinfo’ was here
int getaddrinfo (const char *, const char *,
^
In file included from src/win/winsock.h:28:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2tcpip.h:250:35: error: conflicting types for ‘freeaddrinfo’
WINSOCK_API_LINKAGE void WSAAPI freeaddrinfo(LPADDRINFO pAddrInfo);
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:240:7: note: previous declaration of ‘freeaddrinfo’ was here
void freeaddrinfo (struct addrinfo *);
^
In file included from src/win/winsock.h:28:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2tcpip.h:268:34: error: conflicting types for ‘getnameinfo’
WINSOCK_API_LINKAGE int WSAAPI getnameinfo(const struct sockaddr *sa,socklen_t salen,char *host,DWORD hostlen,char *serv,DWORD servlen,int flags);
^
In file included from ./include/uv-unix.h:34:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/netdb.h:244:6: note: previous declaration of ‘getnameinfo’ was here
int getnameinfo (const struct sockaddr *, socklen_t, char *,
^
In file included from /usr/include/w32api/ws2tcpip.h:301:0,
from src/win/winsock.h:28,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/mstcpip.h:110:43: error: unknown type name ‘IN6_ADDR’
LPSTR NTAPI RtlIpv6AddressToStringA(const IN6_ADDR *Addr, LPSTR S);
^
/usr/include/w32api/mstcpip.h:111:44: error: unknown type name ‘IN6_ADDR’
LPWSTR NTAPI RtlIpv6AddressToStringW(const IN6_ADDR *Addr, LPWSTR S);
^
/usr/include/w32api/mstcpip.h:113:44: error: unknown type name ‘IN6_ADDR’
LONG NTAPI RtlIpv6AddressToStringExA(const IN6_ADDR *Address, ULONG ScopeId, USHORT Port, LPSTR AddressString, PULONG AddressStringLength);
^
In file included from /usr/include/w32api/ws2tcpip.h:301:0,
from src/win/winsock.h:28,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/mstcpip.h:114:44: error: unknown type name ‘IN6_ADDR’
LONG NTAPI RtlIpv6AddressToStringExW(const IN6_ADDR *Address, ULONG ScopeId, USHORT Port, LPWSTR AddressString, PULONG AddressStringLength);
^
/usr/include/w32api/mstcpip.h:117:43: error: unknown type name ‘IN_ADDR’
LPSTR NTAPI RtlIpv4AddressToStringA(const IN_ADDR *Addr, LPSTR S);
^
/usr/include/w32api/mstcpip.h:118:44: error: unknown type name ‘IN_ADDR’
LPWSTR NTAPI RtlIpv4AddressToStringW(const IN_ADDR *Addr, LPWSTR S);
^
/usr/include/w32api/mstcpip.h:121:44: error: unknown type name ‘IN_ADDR’
LONG NTAPI RtlIpv4AddressToStringExA(const IN_ADDR *Address, USHORT Port, LPSTR AddressString, PULONG AddressStringLength);
^
/usr/include/w32api/mstcpip.h:122:44: error: unknown type name ‘IN_ADDR’
LONG NTAPI RtlIpv4AddressToStringExW(const IN_ADDR *Address, USHORT Port, LPWSTR AddressString, PULONG AddressStringLength);
^
/usr/include/w32api/mstcpip.h:125:80: error: unknown type name ‘IN_ADDR’
LONG NTAPI RtlIpv4StringToAddressA(PCSTR S, BOOLEAN Strict, LPSTR *Terminator, IN_ADDR *Addr);
^
/usr/include/w32api/mstcpip.h:126:82: error: unknown type name ‘IN_ADDR’
LONG NTAPI RtlIpv4StringToAddressW(PCWSTR S, BOOLEAN Strict, LPWSTR *Terminator, IN_ADDR *Addr);
^
/usr/include/w32api/mstcpip.h:129:75: error: unknown type name ‘IN_ADDR’
LONG NTAPI RtlIpv4StringToAddressExA(PCSTR AddressString, BOOLEAN Strict, IN_ADDR *Address, PUSHORT Port);
^
/usr/include/w32api/mstcpip.h:130:76: error: unknown type name ‘IN_ADDR’
LONG NTAPI RtlIpv4StringToAddressExW(PCWSTR AddressString, BOOLEAN Strict, IN_ADDR *Address, PUSHORT Port);
^
/usr/include/w32api/mstcpip.h:133:59: error: unknown type name ‘IN6_ADDR’
LONG NTAPI RtlIpv6StringToAddressExA(PCSTR AddressString, IN6_ADDR *Address, PULONG ScopeId, PUSHORT Port);
^
/usr/include/w32api/mstcpip.h:134:60: error: unknown type name ‘IN6_ADDR’
LONG NTAPI RtlIpv6StringToAddressExW(PCWSTR AddressString, IN6_ADDR *Address, PULONG ScopeId, PUSHORT Port);
^
In file included from src/win/winsock.h:28:0,
from src/win/internal.h:30,
from src/win/async.c:25:
/usr/include/w32api/ws2tcpip.h:433:35: error: conflicting types for ‘inet_ntop’
WINSOCK_API_LINKAGE LPCSTR WSAAPI InetNtopA(INT Family, PVOID pAddr, LPSTR pStringBuf, size_t StringBufSize);
^
In file included from ./include/uv-unix.h:33:0,
from ./include/uv.h:62,
from src/win/async.c:24:
/usr/include/arpa/inet.h:28:13: note: previous declaration of ‘inet_ntop’ was here
const char *inet_ntop (int, const void *, char *, socklen_t);
^
In file included from src/win/async.c:25:0:
src/win/internal.h:360:34: error: unknown type name ‘NTSTATUS’
int uv_ntstatus_to_winsock_error(NTSTATUS status);
^
src/win/internal.h:373:41: error: unknown type name ‘AFD_POLL_INFO’
int WSAAPI uv_msafd_poll(SOCKET socket, AFD_POLL_INFO* info_in,
^
src/win/internal.h:374:5: error: unknown type name ‘AFD_POLL_INFO’
AFD_POLL_INFO* info_out, OVERLAPPED* overlapped);
^
In file included from src/win/async.c:27:0:
src/win/handle-inl.h: In function ‘uv_want_endgame’:
src/win/handle-inl.h:92:11: error: ‘uv_handle_t {aka struct uv_handle_s}’ has no member named ‘endgame_next’
handle->endgame_next = loop->endgame_handles;
^
src/win/handle-inl.h:92:32: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘endgame_handles’
handle->endgame_next = loop->endgame_handles;
^
src/win/handle-inl.h:93:9: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘endgame_handles’
loop->endgame_handles = handle;
^
src/win/handle-inl.h: In function ‘uv_process_endgames’:
src/win/handle-inl.h:101:14: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘endgame_handles’
while (loop->endgame_handles) {
^
src/win/handle-inl.h:102:18: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘endgame_handles’
handle = loop->endgame_handles;
^
src/win/handle-inl.h:103:9: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘endgame_handles’
loop->endgame_handles = handle->endgame_next;
^
src/win/handle-inl.h:103:35: error: ‘uv_handle_t {aka struct uv_handle_s}’ has no member named ‘endgame_next’
loop->endgame_handles = handle->endgame_next;
^
In file included from src/win/async.c:28:0:
src/win/req-inl.h: In function ‘uv_req_init’:
src/win/req-inl.h:32:9: error: ‘uv_req_t {aka struct uv_req_s}’ has no member named ‘u’
(req)->u.io.overlapped.Internal = (ULONG_PTR) (status)
^
src/win/req-inl.h:38:3: note: in expansion of macro ‘SET_REQ_STATUS’
SET_REQ_STATUS((req), STATUS_SUCCESS)
^
src/win/req-inl.h:84:3: note: in expansion of macro ‘SET_REQ_SUCCESS’
SET_REQ_SUCCESS(req);
^
src/win/winapi.h:68:27: error: ‘NTSTATUS’ undeclared (first use in this function)
# define STATUS_SUCCESS ((NTSTATUS) 0x00000000L)
^
src/win/req-inl.h:32:51: note: in definition of macro ‘SET_REQ_STATUS’
(req)->u.io.overlapped.Internal = (ULONG_PTR) (status)
^
src/win/req-inl.h:38:25: note: in expansion of macro ‘STATUS_SUCCESS’
SET_REQ_STATUS((req), STATUS_SUCCESS)
^
src/win/req-inl.h:84:3: note: in expansion of macro ‘SET_REQ_SUCCESS’
SET_REQ_SUCCESS(req);
^
src/win/winapi.h:68:27: note: each undeclared identifier is reported only once for each function it appears in
# define STATUS_SUCCESS ((NTSTATUS) 0x00000000L)
^
src/win/req-inl.h:32:51: note: in definition of macro ‘SET_REQ_STATUS’
(req)->u.io.overlapped.Internal = (ULONG_PTR) (status)
^
src/win/req-inl.h:38:25: note: in expansion of macro ‘STATUS_SUCCESS’
SET_REQ_STATUS((req), STATUS_SUCCESS)
^
src/win/req-inl.h:84:3: note: in expansion of macro ‘SET_REQ_SUCCESS’
SET_REQ_SUCCESS(req);
^
src/win/winapi.h:68:37: error: expected ‘)’ before numeric constant
# define STATUS_SUCCESS ((NTSTATUS) 0x00000000L)
^
src/win/req-inl.h:32:51: note: in definition of macro ‘SET_REQ_STATUS’
(req)->u.io.overlapped.Internal = (ULONG_PTR) (status)
^
src/win/req-inl.h:38:25: note: in expansion of macro ‘STATUS_SUCCESS’
SET_REQ_STATUS((req), STATUS_SUCCESS)
^
src/win/req-inl.h:84:3: note: in expansion of macro ‘SET_REQ_SUCCESS’
SET_REQ_SUCCESS(req);
^
In file included from /usr/include/w32api/minwindef.h:163:0,
from /usr/include/w32api/windef.h:8,
from /usr/include/w32api/windows.h:69,
from src/win/winapi.h:25,
from src/win/internal.h:29,
from src/win/async.c:25:
src/win/req-inl.h: In function ‘uv_overlapped_to_req’:
src/win/req-inl.h:89:10: error: ‘uv_req_t {aka struct uv_req_s}’ has no member named ‘u’
return CONTAINING_RECORD(overlapped, uv_req_t, u.io.overlapped);
^
In file included from src/win/async.c:28:0:
src/win/req-inl.h: In function ‘uv_insert_pending_req’:
src/win/req-inl.h:94:6: error: ‘uv_req_t {aka struct uv_req_s}’ has no member named ‘next_req’
req->next_req = NULL;
^
src/win/req-inl.h:95:11: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘pending_reqs_tail’
if (loop->pending_reqs_tail) {
^
src/win/req-inl.h:107:8: error: ‘uv_req_t {aka struct uv_req_s}’ has no member named ‘next_req’
req->next_req = loop->pending_reqs_tail->next_req;
^
src/win/req-inl.h:107:25: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘pending_reqs_tail’
req->next_req = loop->pending_reqs_tail->next_req;
^
src/win/req-inl.h:108:9: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘pending_reqs_tail’
loop->pending_reqs_tail->next_req = req;
^
src/win/req-inl.h:109:9: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘pending_reqs_tail’
loop->pending_reqs_tail = req;
^
src/win/req-inl.h:111:8: error: ‘uv_req_t {aka struct uv_req_s}’ has no member named ‘next_req’
req->next_req = req;
^
src/win/req-inl.h:112:9: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘pending_reqs_tail’
loop->pending_reqs_tail = req;
^
src/win/req-inl.h: In function ‘uv_process_reqs’:
src/win/req-inl.h:149:11: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘pending_reqs_tail’
if (loop->pending_reqs_tail == NULL)
^
src/win/req-inl.h:152:15: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘pending_reqs_tail’
first = loop->pending_reqs_tail->next_req;
^
src/win/req-inl.h:154:7: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘pending_reqs_tail’
loop->pending_reqs_tail = NULL;
^
src/win/req-inl.h:158:15: error: ‘uv_req_t {aka struct uv_req_s}’ has no member named ‘next_req’
next = req->next_req != first ? req->next_req : NULL;
^
src/win/req-inl.h:158:40: error: ‘uv_req_t {aka struct uv_req_s}’ has no member named ‘next_req’
next = req->next_req != first ? req->next_req : NULL;
^
src/win/req-inl.h:161:12: error: ‘UV_READ’ undeclared (first use in this function)
case UV_READ:
^
src/win/req-inl.h:169:12: error: ‘UV_ACCEPT’ undeclared (first use in this function)
case UV_ACCEPT:
^
src/win/req-inl.h:186:12: error: ‘UV_UDP_RECV’ undeclared (first use in this function)
case UV_UDP_RECV:
^
src/win/req-inl.h:196:12: error: ‘UV_WAKEUP’ undeclared (first use in this function)
case UV_WAKEUP:
^
src/win/req-inl.h:200:12: error: ‘UV_SIGNAL_REQ’ undeclared (first use in this function)
case UV_SIGNAL_REQ:
^
src/win/req-inl.h:204:12: error: ‘UV_POLL_REQ’ undeclared (first use in this function)
case UV_POLL_REQ:
^
src/win/req-inl.h:208:12: error: ‘UV_PROCESS_EXIT’ undeclared (first use in this function)
case UV_PROCESS_EXIT:
^
src/win/req-inl.h:212:12: error: ‘UV_FS_EVENT_REQ’ undeclared (first use in this function)
case UV_FS_EVENT_REQ:
^
src/win/async.c: In function ‘uv_async_endgame’:
src/win/async.c:33:14: error: ‘uv_async_t {aka struct uv_async_s}’ has no member named ‘async_sent’
!handle->async_sent) {
^
src/win/async.c: In function ‘uv_async_init’:
src/win/async.c:44:9: error: ‘uv_async_t {aka struct uv_async_s}’ has no member named ‘async_sent’
handle->async_sent = 0;
^
src/win/async.c:47:16: error: ‘uv_async_t {aka struct uv_async_s}’ has no member named ‘async_req’
req = &handle->async_req;
^
src/win/async.c:49:15: error: ‘UV_WAKEUP’ undeclared (first use in this function)
req->type = UV_WAKEUP;
^
src/win/async.c: In function ‘uv_async_close’:
src/win/async.c:59:29: error: ‘uv_async_t {aka struct uv_async_s}’ has no member named ‘async_sent’
if (!((uv_async_t*)handle)->async_sent) {
^
src/win/async.c: In function ‘uv_async_send’:
src/win/async.c:79:39: error: ‘uv_async_t {aka struct uv_async_s}’ has no member named ‘async_sent’
if (!uv__atomic_exchange_set(&handle->async_sent)) {
^
In file included from src/win/async.c:28:0:
src/win/req-inl.h:74:41: error: ‘uv_loop_t {aka struct uv_loop_s}’ has no member named ‘iocp’
if (!PostQueuedCompletionStatus((loop)->iocp, \
^
src/win/async.c:80:5: note: in expansion of macro ‘POST_COMPLETION_FOR_REQ’
POST_COMPLETION_FOR_REQ(loop, &handle->async_req);
^
src/win/async.c:80:42: error: ‘uv_async_t {aka struct uv_async_s}’ has no member named ‘async_req’
POST_COMPLETION_FOR_REQ(loop, &handle->async_req);
^
src/win/req-inl.h:77:38: note: in definition of macro ‘POST_COMPLETION_FOR_REQ’
&((req)->u.io.overlapped))) { \
^
In file included from src/win/req-inl.h:25:0,
from src/win/async.c:28:
src/win/async.c: In function ‘uv_process_async_wakeup_req’:
src/win/async.c:90:23: error: ‘UV_WAKEUP’ undeclared (first use in this function)
assert(req->type == UV_WAKEUP);
^
src/win/async.c:92:9: error: ‘uv_async_t {aka struct uv_async_s}’ has no member named ‘async_sent’
handle->async_sent = 0;
^
make: *** [Makefile:1714: src/win/libuv_la-async.lo] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment