pgsql: Fix binary mismatch for MSVC plperl vs gcc built perl libs

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix binary mismatch for MSVC plperl vs gcc built perl libs
Date: 2022-11-27 14:19:15
Message-ID: E1ozIV0-0012FH-9T@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix binary mismatch for MSVC plperl vs gcc built perl libs

When loading plperl built against Strawberry perl or the msys2 ucrt perl
that have been built with gcc, a binary mismatch has been encountered
which looks like this:

loadable library and perl binaries are mismatched (got handshake key 0000000012800080, needed 0000000012900080)

To cure this we bring the handshake keys into sync by adding
NO_THREAD_SAFE_LOCALE to the defines used to build plperl.

Discussion: https://postgr.es/m/20211005004334.tgjmro4kuachwiuc@alap3.anarazel.de
Discussion: https://postgr.es/m/c2da86a0-2906-744c-923d-16da6047875e@dunslane.net

Backpatch to all live branches.

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/85565cbcad4a78dab5a60c457b0f6e0a740539ce

Modified Files
--------------
src/tools/msvc/Mkvcbuild.pm | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-11-27 17:26:11 pgsql: Doc: update queries.sgml for optional subquery aliases.
Previous Message Michael Paquier 2022-11-27 05:11:33 Re: pgsql: Prevent port collisions between concurrent TAP tests