From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7491 invoked by alias); 25 Mar 2018 06:15:07 -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: 23275 Received: (qmail 8362 invoked by uid 1010); 25 Mar 2018 06:15:07 -0000 X-Qmail-Scanner-Diagnostics: from forward100o.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(37.140.190.180):SA:0(-2.6/5.0):. Processed in 1.18325 secs); 25 Mar 2018 06:15:07 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_PASS 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: Sun, 25 Mar 2018 13:04:16 +0700 Message-ID: <1773846.yRQG0ivYf1@note> In-Reply-To: <20180321021551.GA5797@tower.spodhuis.org> References: <3073701.qdQlh9y6XZ@note> <3473799.7LEjvMZMrB@note> <20180321021551.GA5797@tower.spodhuis.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2140590.YUPOoeqfn6"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart2140590.YUPOoeqfn6 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" > % grep HAVE_PCRE_ config.h > #define HAVE_PCRE_COMPILE 1 > #define HAVE_PCRE_EXEC 1 > #define HAVE_PCRE_H 1 > #define HAVE_PCRE_STUDY 1 > Sorry for delay, I had some troubles offline... So, here is where our output differs. I've the following here: > #define HAVE_PCRE_COMPILE 1 > /* #undef HAVE_PCRE_EXEC */ > #define HAVE_PCRE_H 1 > /* #undef HAVE_PCRE_STUDY */ Although, `pcre-config` works fine: > % pcre-config --version > 8.42 So, I looked in config.log and found following: > configure:8361: checking for pcre_study > configure:8361: gcc -o conftest -Wall -Wmissing-prototypes -O2 -I/usr/ include -L/usr/lib64 -static conftest.c -lgdbm -L/usr/lib64 -lpcre -ltinfow - lrt -lm -lc >&5 > /usr/lib64/libpcre.a(libpcre_la-pcre_jit_compile.o): In function `sljit_free_exec': > pcre_jit_compile.c:(.text+0x190c): undefined reference to `pthread_mutex_lock' > /usr/lib64/libpcre.a(libpcre_la-pcre_jit_compile.o): In function `pcre_jit_free_unused_memory': > pcre_jit_compile.c:(.text+0x23359): undefined reference to `pthread_mutex_lock' > /usr/lib64/libpcre.a(libpcre_la-pcre_jit_compile.o): In function `sljit_free_exec': > pcre_jit_compile.c:(.text+0x1974): undefined reference to `pthread_mutex_unlock' > /usr/lib64/libpcre.a(libpcre_la-pcre_jit_compile.o): In function `pcre_jit_free_unused_memory': > pcre_jit_compile.c:(.text+0x233c9): undefined reference to `pthread_mutex_unlock' > /usr/lib64/libpcre.a(libpcre_la-pcre_jit_compile.o): In function `sljit_generate_code': > pcre_jit_compile.c:(.text.unlikely+0x1eb): undefined reference to `pthread_mutex_lock' > pcre_jit_compile.c:(.text.unlikely+0x287): undefined reference to `pthread_mutex_unlock' > pcre_jit_compile.c:(.text.unlikely+0x2d9): undefined reference to `pthread_mutex_unlock' > pcre_jit_compile.c:(.text.unlikely+0x36f): undefined reference to `pthread_mutex_unlock' > /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__gthread_mutex_lock': > /var/tmp/portage/sys-devel/gcc-7.3.0-r1/work/build/x86_64-pc-linux-gnu/ libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock' > /var/tmp/portage/sys-devel/gcc-7.3.0-r1/work/build/x86_64-pc-linux-gnu/ libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock' > /var/tmp/portage/sys-devel/gcc-7.3.0-r1/work/build/x86_64-pc-linux-gnu/ libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock' > /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__gthread_mutex_unlock': > /var/tmp/portage/sys-devel/gcc-7.3.0-r1/work/build/x86_64-pc-linux-gnu/ libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' > /var/tmp/portage/sys-devel/gcc-7.3.0-r1/work/build/x86_64-pc-linux-gnu/ libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' > /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__gthread_mutex_lock': > /var/tmp/portage/sys-devel/gcc-7.3.0-r1/work/build/x86_64-pc-linux-gnu/ libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock' > /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__gthread_mutex_unlock': > /var/tmp/portage/sys-devel/gcc-7.3.0-r1/work/build/x86_64-pc-linux-gnu/ libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' > /var/tmp/portage/sys-devel/gcc-7.3.0-r1/work/build/x86_64-pc-linux-gnu/ libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' > /var/tmp/portage/sys-devel/gcc-7.3.0-r1/work/build/x86_64-pc-linux-gnu/ libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' > /var/tmp/portage/sys-devel/gcc-7.3.0-r1/work/build/x86_64-pc-linux-gnu/ libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' > collect2: error: ld returned 1 exit status Although, I already tried to add `-lpthread` to LDFLAGS, but it didn't fixed that error :'( And also, shared version of libpcre is linked to pthread, so I guess, static version should be as well. Isn't it? --nextPart2140590.YUPOoeqfn6 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/FnZfRvKOlgfgUCWrc74AAKCRBnZfRvKOlg figEAQDWG9XIWTI/qPKBNq6DGhkWcrCMIoa5106nL5s4Vw2aeAD8DLc3p30lLcKf 8PKkC+emvXXL9sTZ2IyrhuZBbvQZgAQ= =Gjw1 -----END PGP SIGNATURE----- --nextPart2140590.YUPOoeqfn6--