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

Re: Systems with old regex system headers/libraries don't pick up git's compat/regex header file

From
Jeff King <peff@peff.net>
Date
Oct 6, 2016, 19:11 UTC
Message-ID
<20161006191127.2vjtmxl7ygjeqcbk@sigill.intra.peff.net>
In-Reply-To
<9f43a2f1-5d7e-3a2e-5a83-40e92ab0d7b5@connectinternetsolutions.com>
On Thu, Oct 06, 2016 at 10:15:49AM +0100, Richard Lloyd wrote:
Show 8 quoted lines
> Unfortunately, on systems with an older regex shipped as
> standard (e.g. HP-UX 11), the include path picks up
> /usr/include/regex.h first, which doesn't define REG_STARTEND
> and the git-compat-util.h check fails.
> 
> The fix I applied on HP-UX 11 was to add -Icompat/regex
> to the CFLAGS ahead of other -I directives. Another possible
> change needed might be to line 69 of compat/regex/regex.c:

Junio mentioned the NO_REGEX knob in the Makefile. If that works for you, the next step is probably to add a line to the HP-UX section of config.mak.uname, so that it just works out of the box.

-Peff
Previous: Junio C HamanoNext: Richard Lloyd
Message 3 of 5 in “Systems with old regex system headers/libraries don't pick up git's compat/regex header file”
  1. Richard LloydOct 6, 2016
  2. Junio C HamanoOct 6, 2016
  3. Jeff KingOct 6, 2016
  4. Richard LloydOct 7, 2016
  5. Jeff KingOct 7, 2016

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.