Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64 - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64
Date
Msg-id e5dea1c1-1966-bcb4-4018-991f3cb12c6b@2ndQuadrant.com
Whole thread Raw
In response to Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

On 04/30/2018 02:59 PM, Tom Lane wrote:
> "insaf.k" <insaf.k@zohocorp.com> writes:
>> gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -std=c11
-I../../src/port-DFRONTEND -I../../src/include  -I./src/include/port/win32 -DEXEC_BACKEND
"-I../../src/include/port/win32"-DBUILDING_DLL  -c -o win32env.o win32env.c
 
>> win32env.c: In function 'pgwin32_putenv':
>> win32env.c:24:22: error: expected ')' before '*' token
>>   typedef int (_cdecl * PUTENVPROC) (const char *);
>>                       ^
> Hmm.  This sort of looks like your compiler isn't recognizing _cdecl
> as a special token, but I have no idea why a Windows-ready compiler
> wouldn't handle that.
>
>             



I haven't looked deeply at this thread, but it's worth pointing out that
MSYS2 is not the same thing as MSYS, and I at least have no experience
of building with it.

Now Msys hasn't been updated for quite a while. so maybe we need to look
at these tools. Our documentation currently does not refer to MSYS2 at all.

cheers

andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: "could not reattach to shared memory" on buildfarm member dory
Next
From: Tom Lane
Date:
Subject: Re: "could not reattach to shared memory" on buildfarm member dory