Re: [PATCH] PostgreSQL fails to build with 32bit MinGW-w64
Pavel Golub <pavel@microolap.com>
From: Pavel Golub <pavel@microolap.com>
To: Lars Kanis <kanis@comcard.de>
Cc: pgsql-hackers@postgresql.org
Date: 2011-11-24T08:55:01Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Remove troublesome Asserts in cost_mergejoin().
- ff68b256a533 9.2.0 cited
-
Enable building with the Mingw64 compiler.
- 91812df4ed0f 9.1.0 cited
Hello, Lars. You wrote: LK> Hi PostgreSQL hackers, LK> LK> support for Mingw-w64 compiler was added to postgres with commit LK> 91812df. Unfortunately only the 64 bit output is working right LK> now. This issue was already highlighted with initial patch in LK> http://archives.postgresql.org/pgsql-bugs/2011-07/msg00059.php LK> LK> Mingw-w64 uses the same header files for 32 and 64 bit compiles. LK> So the same conditions apply to mingw-w32 bit as for the WIN64 LK> case. In WIN64 "WSAAPI" is defined to nothing, but in 32 bit to LK> stdcall, so it needs to be used in the accept-parameter check, LK> too. Maybe you prefer PASCAL instead of WSAAPI in configure. LK> LK> I tested successful compilation for the following platforms: LK> - i686-w64-mingw32 - gcc v4.6.1 LK> - x86_64-w64-mingw32 - gcc v4.6.1 LK> - i586-mingw32msvc - gcc v4.4.4 LK> - x86_64-linux-gnu - gcc v4.6.1 LK> Can you please provide me with some howto on building PG sources with mingw-w64? -- With best wishes, Pavel mailto:pavel@gf.microolap.com