You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2023/03/15 21:17:01 UTC

[Bug 66523] Apache httpd doesn't detect APR 1.7.2 when compiling (APR 1.7.0 is good). "configure: error: APR version 1.3.0 or later is required"

https://bz.apache.org/bugzilla/show_bug.cgi?id=66523

--- Comment #1 from Karl Zaryski <kz...@blackberry.com> ---
With the help of a co-worker looking at some of the output, we traced the issue
to configure munging the APR path if there's a trailing slash in the -with-apr=
path.

with APR 1.7.0 installed, -with-apr=/usr/local/apr/:
configure:
  setting INCLUDES to "-I."
  adding "-I$(top_srcdir)/os/$(OS_DIR)" to INCLUDES
  adding "-I$(top_srcdir)/include" to INCLUDES
  adding "-I/usr/local/apr/include/apr-1" to INCLUDES
  adding "-I/usr/local/apr-util/include/apr-1" to INCLUDES
configure:


with APR 1.7.2 installed, -with-apr=/usr/local/apr/:
configure:
  setting INCLUDES to "-I."
  adding "-I$(top_srcdir)/os/$(OS_DIR)" to INCLUDES
  adding "-I$(top_srcdir)/include" to INCLUDES
  adding "-I/usr/local/apr//bin/apr-1-config//usr/local/apr/include/apr-1" to
INCLUDES
  adding "-I/usr/local/apr-util/include/apr-1" to INCLUDES
configure:
configure: Applying OS-specific hints for httpd...
configure:
./configure: line 6887:
/usr/local/apr//bin/apr-1-config//usr/local/apr/build-1/libtool: Not a
directory


with APR 1.7.2, -with-apr=/usr/local/apr (trailing slash removed):
configure:
  setting INCLUDES to "-I."
  adding "-I$(top_srcdir)/os/$(OS_DIR)" to INCLUDES
  adding "-I$(top_srcdir)/include" to INCLUDES
  adding "-I/usr/local/apr/include/apr-1" to INCLUDES
  adding "-I/usr/local/apr-util/include/apr-1" to INCLUDES
configure:

So, changing our configure to run with the trailing slash removed from
-with-apr=/usr/local/apr, we are able to compile httpd 2.4.56 with APR 1.7.2.  

It's not clear to us why this worked with the trailing slash and APR 1.7.0 (and
previous versions) and was broken by APR 1.7.2, but this is a satisfactory fix
for our purposes.

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