[Privoxy-devel] PATCH for pcre2 support

Fabian Keil fk at fabiankeil.de
Thu Jun 15 14:10:08 CEST 2023


Gagan Sidhu <broly at mac.com> wrote on 2023-06-15 at 06:02:47:

> That doesn’t look right.
> 
> Your results are cached. You need to apply the patch and clear the existing autoconf variables since the configure script is different. 
> 
> I tried this patch before submitting and did not get that issue since I cleared old autoconf variables. 
> 
> Try that and report back.  But you can probably fix this in the generated makefile to see if the overall patch is okay. 

The same happens for me with cleared autoconf cache:

checking for getnameinfo... yes
checking for pcre_compile in -lpcre... yes
checking for pcre.h... yes
configure: WARNING: pcre old version installed
checking for regcomp in -lpcreposix... yes
checking for pcreposix.h... yes
checking for pcre2_compile_8 in -lpcre2-8... yes
checking for pcre2.h... yes
configure: WARNING: pcre2 old version installed
checking for regcomp in -lpcre2-posix... yes
checking for pcre2posix.h... yes
configure: WARNING: pcre2posix old version installed
Enabling support for client-specific tags.
checking for zlibVersion in -lz... yes
Enabling compression support.
configure: error: pcre2 or pcre library not detected.

> > This seems to be caused by the configure.in line:
> > 
> >      AC_EGREP_HEADER(pcre2_pattern_info, pcre2.h, [AC_MSG_WARN([[pcre2 old version installed]]); have_pcre2=no], [have_pcre2=yes; AC_DEFINE(HAVE_PCRE2)])
> > 
> > My system has pcre2 10.42 installs which seems to come
> > with pcre2_pattern_info.

Do you remember why you added this check?

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.privoxy.org/pipermail/privoxy-devel/attachments/20230615/5024d3a9/attachment.bin>


More information about the Privoxy-devel mailing list