Compiling libpq on Windows - Mailing list pgsql-general

From Helge Elvik
Subject Compiling libpq on Windows
Date
Msg-id 014701c5e603$aee6aa50$0f0aa8c0@gispartner.no
Whole thread Raw
List 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. J

 

Thanks,

Helge Elvik

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Postmaster failing to start on reboot
Next
From: "Damjan Pipan"
Date:
Subject: plpgsql using EXECUTE function