Re: [PATCH] Fix PostgreSQL server build and install problems under MSYS2

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Гурам Дука <guram(dot)duka(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] Fix PostgreSQL server build and install problems under MSYS2
Date: 2019-11-12 03:50:49
Message-ID: 20191112035049.GH1549@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Nov 11, 2019 at 10:56:51AM -0500, Tom Lane wrote:
> This seems like it probably breaks a lot of other cases along the way.
> Why have you made all these #if tests dependent on defined(__cplusplus)?
> That's surely not specific to MSYS2. (I'm a bit bemused by the idea
> that our code compiles at all on a C++ compiler; we have not tried
> to make the .c files C++-clean. But if it does work, this probably
> breaks it for non-Windows cases.)
>
> The GSSAPI changes seem like they might be better considered
> separately from the basic problem of getting a working MSYS2 build.

Yeah. We have fairywen in the buildfarm but it does not compile with
GSSAPI and LLVM. If we were to do something, it would be better to
separate those changes into minimum, separate patches, with one each
for each library dependency you are trying to fix so as they can be
evaluated separately. We should also have a buildfarm member on that
if some of those changes actually make sense and are
platform-dependent.

> In any case, you need to explain these changes individually,
> not expect that we're just going to adopt them without questions.

I am doubtful that the changes in c.h, elog.h, win32_port.h,
miscadmin.h and src/backend/jit/llvm/Makefile are actually needed
thanks to fairywen.

+#if defined(HAVE_GSS_API_H) && !defined(GSS_DLLIMP)
+static gss_OID_desc GSS_C_NT_USER_NAME_desc =
+{10, (void *) "\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x02"};
This also deserves an explanation.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2019-11-12 04:03:21 Re: PHJ file leak.
Previous Message Michael Paquier 2019-11-12 03:31:41 Re: [BUG FIX] Uninitialized var fargtypes used.