From: "Vadim A. Misbakh-Soloviov" <mva@mva.name>
To: zsh-users@zsh.org
Subject: Re: zsh/pcre module breakage when static build enabled
Date: Sun, 25 Mar 2018 13:04:16 +0700 [thread overview]
Message-ID: <1773846.yRQG0ivYf1@note> (raw)
In-Reply-To: <20180321021551.GA5797@tower.spodhuis.org>
[-- Attachment #1: Type: text/plain, Size: 4077 bytes --]
> % 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?
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2018-03-25 6:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-19 17:33 Vadim A. Misbakh-Soloviov
2018-03-19 23:42 ` Phil Pennock
2018-03-20 5:02 ` Vadim A. Misbakh-Soloviov
2018-03-20 5:16 ` Vadim A. Misbakh-Soloviov
2018-03-21 2:15 ` Phil Pennock
2018-03-25 6:04 ` Vadim A. Misbakh-Soloviov [this message]
2018-03-25 6:25 ` Vadim A. Misbakh-Soloviov
2018-03-25 19:50 ` Bart Schaefer
2018-03-26 2:53 ` Vadim A. Misbakh-Soloviov
2018-03-26 5:37 ` Phil Pennock
2018-03-26 8:16 ` Vadim A. Misbakh-Soloviov
2018-03-26 9:41 ` Vadim A. Misbakh-Soloviov
2018-03-19 18:13 Vadim A. Misbakh-Soloviov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1773846.yRQG0ivYf1@note \
--to=mva@mva.name \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).