From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6439 invoked by alias); 26 Mar 2018 08:23:58 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23282 Received: (qmail 5609 invoked by uid 1010); 26 Mar 2018 08:23:57 -0000 X-Qmail-Scanner-Diagnostics: from forward103p.mail.yandex.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(77.88.28.106):SA:0(-1.9/5.0):. Processed in 15.217818 secs); 26 Mar 2018 08:23:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SPF_HELO_TEMPERROR autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: mva@mva.name X-Qmail-Scanner-Mime-Attachments: |signature.asc| X-Qmail-Scanner-Zip-Files: | From: "Vadim A. Misbakh-Soloviov" To: zsh-users@zsh.org Subject: Re: zsh/pcre module breakage when static build enabled Date: Mon, 26 Mar 2018 15:16:53 +0700 Message-ID: <2320204.0CN0jtCPyd@note> In-Reply-To: <20180326053715.GA37203@tower.spodhuis.org> References: <3073701.qdQlh9y6XZ@note> <20180326053715.GA37203@tower.spodhuis.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1979264.YQOygIXYDM"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart1979264.YQOygIXYDM Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" =D0=92 =D0=BF=D0=B8=D1=81=D1=8C=D0=BC=D0=B5 =D0=BE=D1=82 =D0=BF=D0=BE=D0=BD= =D0=B5=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA, 26 =D0=BC=D0=B0=D1=80=D1= =82=D0=B0 2018 =D0=B3. 12:37:15 +07 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0= =B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Phil=20 Pennock =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > 40. Static linking against the PCRE library using the pkg-config module w= as > failing on missing pthread symbols. Well, I've looked in commit history, and found that: https://github.com/svn2github/pcre/commit/ 2765d0933715e6b2c78a4e74fa8d5cad27273f29 And my `libpcre.pc` have > Libs.private: -pthread at that place. Although, I'm not sure if it is okay for it to be `-pthread`, and not `- lpthread`. > Vadim has `pcre-config --version` reporting 8.42 though. Perhaps a > regression, perhaps a system mismatch between libraries and tools. I bet on regression (since I'm using source-based distro and it's pretty=20 unlikely to have that mismatch here. >=20 > Regardless, all the relevant errors from Vadim's post are in compiling > JIT stuff, which we're not using. So it's bloat for unused > functionality but shouldn't be affecting our operation. Well, I'll try to check if manual fixing of libpcre's pkg-config file would= =20 help. Now it really looks like libpcre issue. By the way, > $ ldd /usr/lib64/zsh/5.4.2/zsh/pcre.so > linux-vdso.so.1 (0x00007ffd8469b000) > libpcre.so.1 =3D> /lib64/libpcre.so.1 (0x00007f368efaa000) > libc.so.6 =3D> /lib64/libc.so.6 (0x00007f368ebe6000) > libpthread.so.0 =3D> /lib64/libpthread.so.0 (0x00007f368e9c6000) > /lib64/ld-linux-x86-64.so.2 (0x00007f368f420000) Here, libpthread is inherited from dynamic libpcre, and (I hope) it doesn't= =20 interfere with any zsh's internal work. So, I guess, it shouldn't interfere= in=20 static too. But I'm not sure if it should be worked around in zsh at all (in case, if I= 'll=20 confirm that is libpcre's pc-file bug). --nextPart1979264.YQOygIXYDM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTxiw6i5QzSBiZgM/FnZfRvKOlgfgUCWrisdQAKCRBnZfRvKOlg fmMDAP4/vH7393jOp7pIwOl4iVMAch+QAFLtONaVI4GA+MzRBgD+IOlreD3UQzY7 NmpGEj2HagoR5Nd+J7Sul07YvzsdSQs= =ZLGd -----END PGP SIGNATURE----- --nextPart1979264.YQOygIXYDM--