E:\postgresql-snapshot\src>nmake /f win32.mak
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
cd include
if not exist pg_config.h copy pg_config.h.win32 pg_config.h
cd ..
cd interfaces\libpq
nmake /f win32.mak
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
Building the Win32 static library...
cl.exe @u:\tmp\nm1840.tmp
getaddrinfo.c
e:\postgresql-snapshot\src\include\port.h(56) : error C2010: '.' :
unexpected in macro formal parameter list
e:\postgresql-snapshot\src\include\port.h(56) : error C2010: '.' :
unexpected in macro formal parameter list
e:\postgresql-snapshot\src\include\port.h(56) : error C2010: '.' :
unexpected in macro formal parameter list
e:\postgresql-snapshot\src\include\port.h(56) : error C2010: ')' :
unexpected in macro formal parameter list
..\..\port\getaddrinfo.c(47) : error C2079: 'sin' uses undefined struct
'sockaddr_in'
..\..\port\getaddrinfo.c(54) : error C2065: 'AF_INET' : undeclared
identifier
..\..\port\getaddrinfo.c(55) : error C2065: 'SOCK_STREAM' : undeclared
identifier
..\..\port\getaddrinfo.c(60) : error C2065: 'AF_UNSPEC' : undeclared
identifier
..\..\port\getaddrinfo.c(71) : error C2224: left of '.sin_family' must
have struct/union type
..\..\port\getaddrinfo.c(76) : error C2224: left of '.sin_addr' must
have struct/union type
..\..\port\getaddrinfo.c(76) : warning C4013: 'htonl' undefined;
assuming extern returning int
..\..\port\getaddrinfo.c(76) : error C2065: 'INADDR_ANY' : undeclared
identifier
..\..\port\getaddrinfo.c(79) : error C2224: left of '.sin_addr' must
have struct/union type
..\..\port\getaddrinfo.c(79) : error C2198: 'inet_aton' : too few
arguments for call through pointer-to-function
..\..\port\getaddrinfo.c(87) : error C2079: 'hpstr' uses undefined
struct 'hostent'
..\..\port\getaddrinfo.c(91) : warning C4133: 'function' : incompatible
types - from 'int *' to 'hostent *'
..\..\port\getaddrinfo.c(98) : error C2065: 'h_errno' : undeclared
identifier
..\..\port\getaddrinfo.c(100) : error C2065: 'HOST_NOT_FOUND' :
undeclared identifier
..\..\port\getaddrinfo.c(100) : error C2051: case expression not
constant
..\..\port\getaddrinfo.c(101) : error C2065: 'NO_DATA' : undeclared
identifier
..\..\port\getaddrinfo.c(101) : error C2051: case expression not
constant
..\..\port\getaddrinfo.c(103) : error C2065: 'TRY_AGAIN' : undeclared
identifier
..\..\port\getaddrinfo.c(103) : error C2051: case expression not
constant
..\..\port\getaddrinfo.c(105) : error C2065: 'NO_RECOVERY' : undeclared
identifier
..\..\port\getaddrinfo.c(105) : error C2051: case expression not
constant
..\..\port\getaddrinfo.c(110) : error C2037: left of 'h_addrtype'
specifies undefined struct/union 'hostent'
..\..\port\getaddrinfo.c(113) : error C2224: left of '.sin_addr' must
have struct/union type
..\..\port\getaddrinfo.c(113) : error C2037: left of 'h_addr' specifies
undefined struct/union 'hostent'
..\..\port\getaddrinfo.c(113) : error C2037: left of 'h_length'
specifies undefined struct/union 'hostent'
..\..\port\getaddrinfo.c(113) : error C2168: 'memcpy' : too few actual
parameters for intrinsic function
..\..\port\getaddrinfo.c(119) : error C2224: left of '.sin_addr' must
have struct/union type
..\..\port\getaddrinfo.c(121) : error C2224: left of '.sin_addr' must
have struct/union type
..\..\port\getaddrinfo.c(121) : error C2065: 'INADDR_LOOPBACK' :
undeclared identifier
..\..\port\getaddrinfo.c(125) : error C2224: left of '.sin_port' must
have struct/union type
..\..\port\getaddrinfo.c(125) : warning C4013: 'htons' undefined;
assuming extern returning int
..\..\port\getaddrinfo.c(135) : error C2027: use of undefined type
'sockaddr_in'
..\..\port\getaddrinfo.c(47) : see declaration of 'sockaddr_in'
..\..\port\getaddrinfo.c(142) : error C2027: use of undefined type
'sockaddr_in'
..\..\port\getaddrinfo.c(47) : see declaration of 'sockaddr_in'
..\..\port\getaddrinfo.c(148) : error C2027: use of undefined type
'sockaddr_in'
..\..\port\getaddrinfo.c(47) : see declaration of 'sockaddr_in'
..\..\port\getaddrinfo.c(238) : error C2037: left of 'sa_family'
specifies undefined struct/union 'sockaddr'
..\..\port\getaddrinfo.c(242) : warning C4013: 'inet_ntoa' undefined;
assuming extern returning int
..\..\port\getaddrinfo.c(242) : error C2037: left of 'sin_addr'
specifies undefined struct/union 'sockaddr_in'
..\..\port\getaddrinfo.c(242) : warning C4047: '=' : 'char *' differs in
levels of indirection from 'int'
..\..\port\getaddrinfo.c(243) : warning C4013: 'snprintf' undefined;
assuming extern returning int
..\..\port\getaddrinfo.c(253) : error C2037: left of 'sa_family'
specifies undefined struct/union 'sockaddr'
..\..\port\getaddrinfo.c(256) : warning C4013: 'ntohs' undefined;
assuming extern returning int
..\..\port\getaddrinfo.c(256) : error C2037: left of 'sin_port'
specifies undefined struct/union 'sockaddr_in'
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
.NET 2003\VC7\BIN\nmake.exe"' : return code '0x2'
Stop.