Re: BUG #16920: Can't compile PostGIS with MingW64 against PostgreSQL 14 head

Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>

From: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
To: Regina Obe <lr@pcorp.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2021-03-13T20:49:12Z
Lists: pgsql-bugs

Attachments

On Sat, Mar 13, 2021 at 8:20 PM Regina Obe <lr@pcorp.us> wrote:

>
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=3174d69fb
>
> this fails - commit before regresses fine.
>
> I do see this commit did make quite a few changes to elog.c
>

After tweaking my configure a bit I am able to reproduce the problem. I
think the problem is on MinGW-w64's longjmp. The attached patch fixes the
issue for me.

Regards,

Juan José Santamaría Flecha

Commits

  1. Work around issues in MinGW-64's setjmp/longjmp support.