pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix binary mismatch for MSVC plperl vs gcc built perl libs
Date: Sun, 27 Nov 2022 14:19:15 +0000
Message-ID: <E1ozIV0-0012FE-8x@gemulon.postgresql.org> (raw)

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_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/68d89d80c3db06ad080a0f291e165456fb2f51f7

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



view thread (6+ messages)  latest in thread

Message-ID: <E1ozIV0-0012FE-8x@gemulon.postgresql.org>
Permalink:  ../E1ozIV0-0012FE-8x@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ozIV0-0012FE-8x@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net
  Subject: Re: pgsql: Fix binary mismatch for MSVC plperl vs gcc built perl libs
  In-Reply-To: <E1ozIV0-0012FE-8x@gemulon.postgresql.org>
  References: <E1ozIV0-0012FE-8x@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox