• Issues when upgrading from 2.4.29 to 2.4.33

    From rich071984@gmail.com@21:1/5 to All on Fri Apr 13 03:14:47 2018
    Hi All

    I am currently trying to upgrade my existing 2.4.29 install on CentOS Linux release 7.4.1708 (Core)

    when I copy the config.nice from the existing setup and then run make I get the following error:

    mod_proxy_balancer.c:25:24: fatal error: apr_escape.h: No such file or directory

    The contents of the config.nice is:
    #! /bin/sh
    #
    # Created by configure

    "./configure" \
    "--enable-ssl=shared" \
    "--enable-rewrite=shared" \
    "--enable-info" \
    "--enable-proxy" \
    "--enable-proxy-http" \
    "--prefix=/usr/local/apache2" \
    "--with-ssl=/usr/local/openssl" \
    "--enable-ssl-staticlib-deps" \
    "--enable-mods-static=ssl" \
    "--enable-log-forensic" \
    "--enable-unique-id" \
    "--enable-deflate=shared" \
    "$@"

    Even when not using the config.nice file and doing it by the ./configure method I get the same error and cannot find any fixes for it.

    I have tried removing the

    "--enable-proxy" \
    "--enable-proxy-http" \

    which then builds but when I try and use the proxy it fails to follow the proxy correctly.

    I need to get 2 servers upgraded that also have varnish installed on them, which is what the proxy is being used for.

    Any help will be appreciated.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From agenordaveh@gmail.com@21:1/5 to All on Mon Jun 18 07:49:53 2018
    I hit the same problem which I believe was due to a previous install of apr and apr-util.

    When I looked at failing compile line it was

    /mydir/httpd/httpd-2.4.33/srclib/apr/libtool
    --silent
    --mode=compile gcc
    -std=gnu99
    -g
    -O2
    -pthread
    -DLINUX
    -D_REENTRANT
    -D_GNU_SOURCE
    -I.
    ...
    -I/usr/include/apr-1
    ...

    i.e. pointing at older version include files

    I added symbolic links

    ln -s /mydir/httpd/httpd-2.4.33/srclib/apr ~/apr/apr-1.6.3
    ln -s /mydir/httpd/httpd-2.4.33/srclib/apr-util ~/apr-util/apr-util-1.6.1

    so that apr and apr-util were unpacked within httpd srclib folders (as per http://httpd.apache.org/docs/2.4/install.html "Requirements) then

    ./configure \
    ...
    --prefix=/usr/local/httpd-${HTTP_VERSION} \
    ...
    --with-apr=srclib/apr \
    --with-apr-util=srclib/apr-util \
    ...

    worked



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)