Mailing List Archive

[Bug 66059] New: build failured with custom with-pcre parameter
https://bz.apache.org/bugzilla/show_bug.cgi?id=66059

Bug ID: 66059
Summary: build failured with custom with-pcre parameter
Product: Apache httpd-2
Version: 2.4.53
Hardware: PC
OS: Linux
Status: NEW
Severity: minor
Priority: P2
Component: Build
Assignee: bugs@httpd.apache.org
Reporter: nanhuirong@163.com
Target Milestone: ---

I build Apache HTTP Server with(2.4.53) the source code.The step as follows:
1) build apr;
2) build apr-util;
3) build pcre(8.44);
4) build openssl;
5) build httpd by specifing the pcre path(such as /home/tomn/pcre).

Then, I receive the build error "Did not find working script at pcre-config". I
saw the soucre code in configure.in and find the $PCRE_CONFIG has error. The
code as follows:
``````````````````````````````````````````
if test "x$with_pcre" = "x" || test "$with_pcre" = "yes"; then
with_pcre="$PATH"
else if which $with_pcre 2>/dev/null; then :; else
with_pcre="$with_pcre/bin:$with_pcre"
fi
fi

AC_CHECK_TARGET_TOOLS(PCRE_CONFIG, [pcre2-config pcre-config],
[`which $with_pcre 2>/dev/null`], $with_pcre)

if test "x$PCRE_CONFIG" != "x"; then
if $PCRE_CONFIG --version >/dev/null 2>&1; then :; else
AC_MSG_ERROR([Did not find working script at $PCRE_CONFIG])
fi
case `$PCRE_CONFIG --version` in
[1[0-9].*])
AC_DEFINE(HAVE_PCRE2, 1, [Detected PCRE2])
;;
[[1-5].*])
AC_MSG_ERROR([Need at least pcre version 6.7])
;;
[6.[0-6]*])
AC_MSG_ERROR([Need at least pcre version 6.7])
;;
esac
``````````````````````````````````````````
It looks like that the $PCRE_CONFIG --version will always return null in the
case. The system cann't locate the pcre-config or pcre-config2. Anyway, the
2.4.52 doesn't has the issue.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org