Re: BUG #16920: Can't compile PostGIS with MingW64 against PostgreSQL 14 head
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Cc: Regina Obe <lr@pcorp.us>,
PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2021-03-13T21:49:44Z
Lists: pgsql-bugs
=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?= <juanjo.santamaria@gmail.com> writes: > 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. Hmm, interesting. The gcc manual is quite negative about these though: https://gcc.gnu.org/onlinedocs/gcc/Nonlocal-Gotos.html Also it's not clear that these are compatible with <setjmp.h>'s version of jmp_buf. What I'm wondering about, looking at that bit of code, is whether the entire premise is correct for MinGW-64. Maybe it does provide real sigsetjmp and we shouldn't be overriding those names? (None of this quite explains why a problem suddenly materialized with 3174d69fb9, though. That did not touch anything near our setjmp/longjmp code AFAICS.) regards, tom lane
Commits
-
Work around issues in MinGW-64's setjmp/longjmp support.
- 146cb3889c3c 14.0 landed