error compiling postgres source

From: "Roshni Mani" <m(dot)roshni(at)teles(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: error compiling postgres source
Date: 2008-10-01 06:13:53
Message-ID: 033DDBB1EF1E0444AD506992F7836DA3B418@dc-india.telesindia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi ,

Can somebody tell me the solution for this.i tried compiling postgres
as follows in vs2005 .its giving the following errors


E:\postgresql-8.3.1\src\interfaces\libpq>nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.

Building the Win32 static library...

Using default OpenSSL Include directory: C:\OpenSSL\include
Using default OpenSSL Library directory: C:\OpenSSL\lib\VC
Using default Kerberos Include directory: C:\kfw-2.6.5\inc
Using default Kerberos Library directory: C:\kfw-2.6.5\lib\i386
cl.exe @C:\DOCUME~1\roma\LOCALS~1\Temp\nm3E.tmp
getaddrinfo.c
..\..\include\libpq/pqcomm.h(64) : error C2079: 'addr' uses undefined
struct 'sockaddr_storage'
..\..\port\getaddrinfo.c(144) : error C2079: 'hints' uses undefined
struct 'addrinfo'
..\..\port\getaddrinfo.c(159) : error C2224: left of '.ai_family' must
have struct/union type
..\..\port\getaddrinfo.c(160) : error C2224: left of '.ai_socktype' must
have struct/union type
..\..\port\getaddrinfo.c(165) : error C2224: left of '.ai_family' must
have struct/union type
..\..\port\getaddrinfo.c(165) : error C2224: left of '.ai_family' must
have struct/union type
..\..\port\getaddrinfo.c(168) : error C2224: left of '.ai_socktype' must
have struct/union type
..\..\port\getaddrinfo.c(169) : error C2224: left of '.ai_socktype' must
have struct/union type
..\..\port\getaddrinfo.c(182) : error C2224: left of '.ai_flags' must
have struct/union type
..\..\port\getaddrinfo.c(223) : error C2224: left of '.ai_flags' must
have struct/union type
..\..\port\getaddrinfo.c(236) : error C2027: use of undefined type
'addrinfo'
..\..\include\getaddrinfo.h(153) : see declaration of 'addrinfo'
..\..\port\getaddrinfo.c(249) : error C2037: left of 'ai_flags'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(250) : error C2037: left of 'ai_family'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(251) : error C2037: left of 'ai_socktype'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(251) : error C2224: left of '.ai_socktype' must
have struct/union type
..\..\port\getaddrinfo.c(252) : error C2037: left of 'ai_protocol'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(252) : error C2224: left of '.ai_protocol' must
have struct/union type
..\..\port\getaddrinfo.c(253) : error C2037: left of 'ai_addrlen'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(254) : error C2037: left of 'ai_addr' specifies
undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(255) : error C2037: left of 'ai_canonname'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(256) : error C2037: left of 'ai_next' specifies
undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(282) : error C2037: left of 'ai_addr' specifies
undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(283) : error C2037: left of 'ai_addr' specifies
undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(283) : error C2198: 'free' : too few arguments
for call
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\cl.exe"' : return code '0x2'
Stop.


Regards,
Roshni

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2008-10-01 06:27:05 Re: pg_start_backup() takes too long
Previous Message Jörn Heid 2008-10-01 05:50:56 Re: Standalone Windows Installation