git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: undefined reference to `pcre_jit_exec'

From
Jeff King <peff@peff.net>
Date
Oct 12, 2017, 20:10 UTC
Message-ID
<20171012201023.wrfbs7p7lups5glz@sigill.intra.peff.net>
In-Reply-To
<CAH8yC8mvG3bSpgshHay7B0SSyAafWLrPTtVZRuq2cShn9xQ9JA@mail.gmail.com>
On Thu, Oct 12, 2017 at 04:06:11PM -0400, Jeffrey Walton wrote:
Show 15 quoted lines
> I have a script to build Git on some old platforms to ease testing.
> Old platforms include CentOS 5. The script is available at
> https://github.com/noloader/Build-Scripts/blob/master/build-ssh.sh.
> 
> It looks like something got knocked loose recently. I'm seeing several
> of these when building with PCRE 8.41 with Git 2.14.2. Old and new
> platforms are witnessing it. I observe it on CentOS 5 with GCC 4.1;
> and Fedora 26 with GCC 7.2.
> 
>     ...
>     LINK git-credential-store
> libgit.a(grep.o): In function `pcre1match':
> grep.c:(.text+0x1219): undefined reference to `pcre_jit_exec'
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:2145: git-credential-store] Error 1
Maybe:
  $ git grep -h -B5 -A1 pcre_jit Makefile
  # When using USE_LIBPCRE1, define NO_LIBPCRE1_JIT if the PCRE v1
  # library is compiled without --enable-jit. We will auto-detect
  # whether the version of the PCRE v1 library in use has JIT support at
  # all, but we unfortunately can't auto-detect whether JIT support
  # hasn't been compiled in in an otherwise JIT-supporting version. If
  # you have link-time errors about a missing `pcre_jit_exec` define
  # this, or recompile PCRE v1 with --enable-jit.

It looks like autoconf turns on USE_LIBPCRE1, but isn't smart enough to test NO_LIBPCRE1_JIT.

-Peff
Previous: Jeffrey WaltonNext: Jeffrey Walton
Message 2 of 6 in “undefined reference to `pcre_jit_exec'”
  1. Jeffrey WaltonOct 12, 2017
  2. Jeff KingOct 12, 2017
  3. Jeffrey WaltonOct 12, 2017
  4. Jeff KingOct 12, 2017
  5. Jeffrey WaltonOct 12, 2017
  6. Ævar Arnfjörð BjarmasonOct 12, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.