I need to upgrade Apache httpd
on a legacy Centos 5 32-bit machine that is running on production. Since all the official repo versions are outdated, I am trying to compile it in a docker container; but that seems to fail due to various reasons:
1) It complains about old PCRE
version:
util_pcre.c:128: error: 'PCRE_DUPNAMES' undeclared (first use in this function)
I patched it by adding the proper value to the pcre.h
just to see where it goes ...
2) Then it complains about some feature in flex
that is not present in the installed version:
"/usr/src/httpd-2.4.43/server/util_expr_scan.l", line 32: unrecognized %option: reentrant
"/usr/src/httpd-2.4.43/server/util_expr_scan.l", line 33: unrecognized %option: bison-bridge
flex: could not create
I think I am trying to solve a difficult problem so what alternatives do I have?
Is it fine to statically compile httpd
in a Centos 7.x
and run it in Centos 5.x
machine? Are there any caveats in doing so? The other option is to compile everything from scratch on Centos 5.x, but that seems like some task :)
Upgrading the httpd
machine is getting push-back's - can someone please advice a workable solution?