Re: Upgrade PCRE library in mod_jk?

2026-06-20 Thread Rainer Jung

Am 15.06.26 um 14:04 schrieb Rainer Jung:

Am 08.06.26 um 23:19 schrieb Christopher Schultz:

All,

It looks like mod_jk ships a copy of the PCRE library in source form 
to be used inside of Microsoft IIS. It's using PCREv1 8.45 which is 
the "latest version" of a library that was abandoned over 10 years ago.


Is anyone interested in looking into upgrading mod_jk's use of PCRE to 
PCREv2?


(Related, the NOTICE file points the reader to the missing iis/pcre/ 
LICENSE file.)


I think it is a valuable goal. Probably looking at server/util_pcre.c in 
the httpd source code (branch 2.4.x or even trunk) helps, because it is 
likely the origin of our implementations of the ap_reg*() functions in 
iis/jk_isapi_plugin.c. The httpd source files use defines to keep the 
code compatible with PCRE(1) and PCRE2. We don't need to, but having t 
there makes it easier to compare old and new code.


We would also need to check, whether we can still build PCRE2 on Windows 
nicely. I think it was done with VisualStudio and PCRE2 still supports 
it but I didn't try.


I can now build the isapi redirector on Windows. I will have a look into 
the pcre2 migration. One subtlety is the build system. Our pcre 
integration uses a handwritten small Makefile. Upstream pcre2 for 
Windows supports cmake and autotools builds with cygwin or mingw32. 
Since the pcre2 build is relatively easy, I will see, whether I can 
adopt the handwritten Makefile to pcre2. That would then not support the 
full build flexibility pcre2 has but simply make a well-defined build 
for out own use in the redirector.


Best regards,

Rainer


-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Upgrade PCRE library in mod_jk?

2026-06-15 Thread Rainer Jung

Am 08.06.26 um 23:19 schrieb Christopher Schultz:

All,

It looks like mod_jk ships a copy of the PCRE library in source form to 
be used inside of Microsoft IIS. It's using PCREv1 8.45 which is the 
"latest version" of a library that was abandoned over 10 years ago.


Is anyone interested in looking into upgrading mod_jk's use of PCRE to 
PCREv2?


(Related, the NOTICE file points the reader to the missing iis/pcre/ 
LICENSE file.)


I think it is a valuable goal. Probably looking at server/util_pcre.c in 
the httpd source code (branch 2.4.x or even trunk) helps, because it is 
likely the origin of our implementations of the ap_reg*() functions in 
iis/jk_isapi_plugin.c. The httpd source files use defines to keep the 
code compatible with PCRE(1) and PCRE2. We don't need to, but having t 
there makes it easier to compare old and new code.


We would also need to check, whether we can still build PCRE2 on Windows 
nicely. I think it was done with VisualStudio and PCRE2 still supports 
it but I didn't try.


Best regards,

Rainer


-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]