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/09 19:51:15 UTC

[Bug 66523] New: 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

            Bug ID: 66523
           Summary: 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"
           Product: APR
           Version: 1.7.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: APR
          Assignee: bugs@apr.apache.org
          Reporter: kzaryski@blackberry.com
  Target Milestone: ---

httpd configuration fails when using an installed APR 1.7.2, with error
"configure: error: APR version 1.3.0 or later is required".  This works fine
with APR 1.7.0.

On an Ubuntu 20.04 VM, our system image-builder script runs these commands to
compile APR, APR-Util, and Apache httpd:

# Compile APR
chroot $1 sh -c 'cd /usr/src/;tar -zxvf apr-1.7.2.tar.gz;cd
apr-1.7.2;./configure -prefix=/usr/local/apr;make;make install'

# Compile APR Util
chroot $1 sh -c 'cd /usr/src/;tar -zxvf apr-util-1.6.3.tar.gz;cd
apr-util-1.6.3;./configure -prefix=/usr/local/apr-util -with-apr
=/usr/local/apr;make;make install'

# Compile Apache
chroot $1 sh -c 'cd /usr/src/;tar -zxvf httpd-2.4.56.tar.gz;cd
httpd-2.4.56/;./configure -with-apxs -with-apr=/usr/local/apr/
-with-apr-util=/usr/local/apr-util/ --with-mpm=worker --enable-status
--enable-autoindex --enable-actions --enable-include --enable-so
--enable-rewrite --enable-proxy-http --enable-proxy-ajp --enable-proxy
--enable-proxy-balancer --enable-headers --enable-unique-id --enable-cache
--enable-cache-disk --enable-authn-file --enable-authn-core --enable-authz-host
--enable-authz-user --enable-authz-core --enable-access-compat
--enable-auth-basic --enable-file-cache --enable-reqtimeout --enable-deflate
--enable-mime --enable-log --enable-env --enable-expires --enable-negotiation
--enable-setenvif --enable-version --enable-proxy-connect --enable-proxy-http
--enable-proxy-ajp --enable-proxy-balancer --enable-proxy-express
--enable-session --enable-session-cookie --enable-slotmem-shm
--enable-lbmethod-byrequests --enable-lbmethod-bytraffic
--enable-lbmethod-bybusyness --enable-lbmethod-heartbeat --enable-unixd
--enable-info --enable-dir --enable-alias;make;make install'

With APR 1.7.0, this works fine, but with APR 1.7.2 it fails with "configure:
error: APR version 1.3.0 or later is required".

I get the same results on an independent system; if APR 1.7.0 is installed then
I can run the above configure command and it succeeds.  If APR 1.7.2 is
installed then it fails on the above error.

Looking at the configure file, it *looks* like it's just reading the version
from /usr/local/apr/include/apr-1/apr_version.h, and the contents of that file
look correct.  I've even tried copying an apr_version.h from a 1.7.0
installation, just in case there were hidden characters confusing the configure
script, but it still fails.

-- 
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


[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"

Posted by bu...@apache.org.
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


[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"

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66523

Joe Orton <jo...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #2 from Joe Orton <jo...@redhat.com> ---
This is likely bug 66510 - known regression in APR 1.7.2.

*** This bug has been marked as a duplicate of bug 66510 ***

-- 
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