Skip site navigation (1) Skip section navigation (2)

BUG #6788: Can't compile on mingw64-w32

From: lr(at)pcorp(dot)us
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6788: Can't compile on mingw64-w32
Date: 2012-08-01 01:15:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
The following bug has been logged on the website:

Bug reference:      6788
Logged by:          Regina Obe
Email address:      lr(at)pcorp(dot)us
PostgreSQL version: 9.1.4
Operating system:   Mingw64-w32 chain 

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:

w32/include/winsock2.h:15:2: warning: #warning Please include winsock2.h
n file included from ../../src/include/c.h:90:0

i686-w64-mingw32-gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
n-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing
-fexcess-precision=standard -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:
gw32/include/winsock2.h:15:2: warning: #warning Please include winsock2.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 ----
#if !defined(WIN64) && !defined(WIN32_ONLY_COMPILER)	/* MSVC/WIN64 duplicate
		case EAI_NODATA:
			return "No host data of that type was found";

--- end 9.1 --

got changed in 9.2 incarnations



pgsql-bugs by date

Next:From: Tom LaneDate: 2012-08-01 05:09:37
Subject: Re: postgresql-9.1.4 macosx-10.6.8 (hostssl) psql -h hostname crashes
Previous:From: Tom LaneDate: 2012-07-31 22:13:07
Subject: Re: BUG #6787: Query planner estimates worng costs on nodes

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group