compiling postgres for 64 bit windows using mingw64

From: "McWilliams, Steven" <Steven_McWilliams(at)bmc(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: compiling postgres for 64 bit windows using mingw64
Date: 2009-07-02 16:22:09
Message-ID: 96BA70020DC6E546BE05FEDA08506C8B5A6D3E1131@HOUCCRPRD01.adprod.bmc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I am wondering if anyone has successfully compiled postgres for 64 bit windows using mingw64? I tried doing so but the "configure" step fails with the following message:

conftest.c:50: error: conflicting types for 'accept'

The config.log file shows the following additional message:

c:/mingw_64/lib/gcc../../x86_64-w64-mingw32/include/winsock2.h:1291: note: previous declaration of 'accept' was here

The definition of 'accept' in winsock2.h is: "WINSOCK_API_LINKAGE SOCKET WSAPI accept(SOCKET s, struct sockaddr *addr, int *addrlen);", where "SOCKET" is defined as "int *". The definition of "SOCKET" back in the 32 bit version of mingw was "unsigned int", which appears to be what the postgres "configure" tool expects.

Thanks in advance for any help,
Steve

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2009-07-02 16:33:17 Re: Replication and coding good practices
Previous Message Joshua J. Kugler 2009-07-02 15:11:42 Re: Database schema dumper