Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 5AB9C1E66734 for ; Tue, 31 Jul 2012 22:15:40 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SwNXD-0001pj-D1 for pgsql-bugs@postgresql.org; Wed, 01 Aug 2012 01:15:39 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SwNX0-0006oA-27 for pgsql-bugs@postgresql.org; Wed, 01 Aug 2012 01:15:22 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SwNWz-0006sN-By for pgsql-bugs@postgresql.org; Wed, 01 Aug 2012 01:15:21 +0000 Date: Wed, 01 Aug 2012 01:15:21 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6788: Can't compile on mingw64-w32 To: pgsql-bugs@postgresql.org From: lr@pcorp.us X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/248 X-Sequence-Number: 33724 The following bug has been logged on the website: Bug reference: 6788 Logged by: Regina Obe Email address: lr@pcorp.us PostgreSQL version: 9.1.4 Operating system: Mingw64-w32 chain = Description: = I can compile 9.2beta and 9.3 snapshot fine with my mingw64-w32 chain (and can also compile 9.0-9.3 on my mingw64-w64) chain. = I'm assuming this issue is fixed in 9.2 and 9.2 and wasn't backported to 9.1 and prior. Perhaps that is intentional. The error I get is a whole bunch of: :\ming32\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.5.4/../../../../i686-w64= -min w32/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h n file included from ../../src/include/c.h:90:0 : i686-w64-mingw32-gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaratio n-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=3Dstandard -g -I../../src/port -DFRONTEND -I../../src/include - I./src/include/port/win32 -DEXEC_BACKEND "-I../../src/include/port/win32" = -c - o getaddrinfo.o getaddrinfo.c In file included from ../../src/include/pg_config_os.h:37:0, from ../../src/include/c.h:90, from getaddrinfo.c:25: c:\ming32\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.5.4/../../../../i686-w6= 4-min gw32/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h In file included from ../../src/include/c.h:90:0 If I look at the offending sections like in = src/port/getaddrinfo.c, I see that the section in 9.1 --- 9.1 321-326 ---- #ifdef EAI_NODATA #if !defined(WIN64) && !defined(WIN32_ONLY_COMPILER) /* MSVC/WIN64 duplicate */ case EAI_NODATA: return "No host data of that type was found"; #endif #endif --- end 9.1 -- got changed in 9.2 incarnations -- Thanks, Regina