You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2022/04/08 16:18:21 UTC

[Bug 66000] New: Configure option "--with-pcre" does not work anymore

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

            Bug ID: 66000
           Summary: Configure option "--with-pcre" does not work anymore
           Product: Apache httpd-2
           Version: 2.4.53
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
          Assignee: bugs@httpd.apache.org
          Reporter: apache-bugzilla@michael-kaufmann.ch
  Target Milestone: ---

The configure option "--with-pcre" worked until httpd 2.4.52, but it does not
work anymore with httpd 2.4.53.

Configure output:

...
checking for -pcre2-config... no
checking for -pcre-config... no
checking for pcre2-config... no
checking for pcre-config... pcre-config
configure: error: Did not find working script at pcre-config


Script to reproduce the problem:

#!/bin/bash

set -e

tar xvf httpd-2.4.53.tar.bz2
tar xvf pcre-8.45.tar.bz2
tar xvf expat-2.4.8.tar.bz2

(
    cd httpd-2.4.53/srclib
    tar xvf ../../apr-1.7.0.tar.bz2
    tar xvf ../../apr-util-1.6.1.tar.bz2

    ln -s apr-1.7.0 apr
    ln -s apr-util-1.6.1 apr-util
)

cd expat-2.4.8
./configure --prefix=/var/tmp/expat
make install

cd ..

cd pcre-8.45
./configure --prefix=/var/tmp/pcre --disable-cpp
make install

cd ..

cd httpd-2.4.53

# Workaround:
# PATH="/var/tmp/pcre/bin:${PATH}"
# export PATH

./configure --prefix=/var/tmp/httpd --with-included-apr
--with-expat=/var/tmp/expat --with-pcre=/var/tmp/pcre
make install

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


[Bug 66000] Configure option "--with-pcre" does not work anymore

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

--- Comment #2 from Michael Kaufmann <ap...@michael-kaufmann.ch> ---
Thank you for the suggestion, --with-pcre=/var/tmp/pcre/bin/pcre-config works
for me. I agree that "--with-pcre" should also work when given the PCRE
installation directory.

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


[Bug 66000] Configure option "--with-pcre" does not work anymore

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

--- Comment #3 from William A. Rowe Jr. <wr...@apache.org> ---
This was an unintended breakage. It can be unintentionally masked when a
libpcre2-dev system package is installed, but the explicit --with-pcre2=/path
is ignored. So if a group of dependencies (pcre2, expat, zlib etc) exist at
/path, and the system pcre2-config is resolved successfully, then the option
accidentally succeeds. (This is how the bug was overlooked).

Working on the solution.

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


[Bug 66000] Configure option "--with-pcre" does not work anymore

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

--- Comment #1 from Rainer Jung <ra...@kippdata.de> ---
It is an annoyance: you now need to give the path to the pcre-config or
pcre2-config, so in your case probably
--with-pcre=/var/tmp/pcre/bin/pcre-config. It would be nice if you could report
back, whether it works for you. Keeping this open, because I think we need to
fix it (supporting path to installation dir in addition to path to
pcre-config).

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