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