Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf3f70b8

Browse files
committed
Fix binary mismatch for MSVC plperl vs gcc built perl libs
When loading plperl built against Strawberry perl or the msys2 ucrt perlthat have been built with gcc, a binary mismatch has been encounteredwhich 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 addingNO_THREAD_SAFE_LOCALE to the defines used to build plperl.Discussion:https://postgr.es/m/20211005004334.tgjmro4kuachwiuc@alap3.anarazel.deDiscussion:https://postgr.es/m/c2da86a0-2906-744c-923d-16da6047875e@dunslane.netBackpatch to all live branches.
1 parent4e9e1b2 commitf3f70b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/tools/msvc/Mkvcbuild.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,9 @@ sub mkvcbuild
587587

588588
# hack to prevent duplicate definitions of uid_t/gid_t
589589
push(@perl_embed_ccflags,'PLPERL_HAVE_UID_GID');
590+
# prevent binary mismatch between MSVC built plperl and
591+
# Strawberry or msys ucrt perl libraries
592+
push(@perl_embed_ccflags,'NO_THREAD_SAFE_LOCALE');
590593

591594
# Windows offers several 32-bit ABIs. Perl is sensitive to
592595
# sizeof(time_t), one of the ABI dimensions. To get 32-bit time_t,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp