Compiling libpq on Windows

From: "Helge Elvik" <helge(dot)elvik(at)gispartner(dot)no>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Compiling libpq on Windows
Date: 2005-11-10 14:33:13
Message-ID: 014701c5e603$aee6aa50$0f0aa8c0@gispartner.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I've been trying to compile my own custom version of Mapserver for
Windows this afternoon. Basically none of the binaries linked from the
official page are compiled with Fast-CGI support, so I want to compile
my own version since we want to use it in a pretty high volume
environment. So far I've gotten most libraries to compile properly, but
I'm having trouble compiling libpq in the PostgreSQL source distribution
(version 8.1). Running "nmake /f win32.mak" from the command line gives
me the following errors:

=====
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 @C:\DOCUME~1\helvik\LOCALS~1\Temp\nmE6.tmp
getaddrinfo.c
..\..\port\getaddrinfo.c(244) : error C2065: 'WSA_NOT_ENOUGH_MEMORY' :
undeclare
d identifier
..\..\port\getaddrinfo.c(334) : error C2051: case expression not
constant
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.
=====

I've tried searching the list archives, but I haven't found any good
explanations for this. Any help would be appreciated. :-)

Thanks,
Helge Elvik

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-11-10 14:37:38 Re: Postmaster failing to start on reboot
Previous Message David Rysdam 2005-11-10 14:31:07 I must not understand the permissions system