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 7, 2016, 16:06 UTC
Message-ID
<20161007160611.wu2ehzqg6cxhkwgr@sigill.intra.peff.net>
In-Reply-To
<4ac0ce84-ca6c-3650-ef5e-e13c54c60504@connectinternetsolutions.com>
On Fri, Oct 07, 2016 at 04:45:08PM +0100, Richard Lloyd wrote:
Show 12 quoted lines
> On 06/10/16 20:11, Jeff King wrote:
> > 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.
> 
> This doesn't work because the check in git-compat-util.h only looks
> for REG_STARTEND being defined (if it isn't, it #error's out).
> 
> That define is not mentioned anywhere else other than in the
> compat/regex tree, which is why I used -Icompat/regex to pick up
> <regex.h> from there - this was the "easiest" solution for me on
> HP-UX 11.

I'm confused. Setting NO_REGEX in the Makefile will add -Icompat/regex to your compiler invocation. So git-compat-util.h should pick up our compat regex routines, which _do_ have REG_STARTEND.

How are you building? Doing:
  make NO_REGEX=1
is supposed to work, and if it doesn't, there's a bug.
-Peff
Previous: Richard Lloyd
Message 5 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.