PHP4 no longer compiles with www/apache20

Frank Wall fw at moov.de
Thu Jun 17 15:17:28 UTC 2010


Hi,

I have updated www/apache20 to apache-2.0.63_15, but it seems
that a recent change breaks compatiblity with PHP4. I got this error
while trying to rebuild lang/php4:

In file included from /usr/local/include/apache2/httpd.h:44,
                 from /usr/local/include/apache2/util_filter.h:23,
                 from /usr/ports/lang/php4/work/php-4.4.9/sapi/apache2handler/sapi_apache2.c:40:
/usr/local/include/apache2/ap_regex.h:90: error: conflicting types for 'regoff_t'
/usr/ports/lang/php4/work/php-4.4.9/regex/regex.h:17: error: previous declaration of 'regoff_t' was here
*** Error code 1

Trying to restart Apache reveals a recent API change:

# /usr/local/etc/rc.d/apache2 restart
Performing sanity check on apache2 configuration:
httpd: module "/usr/ports/lang/php4/work/php-4.4.9/sapi/apache2handler/sapi_apache2.c" is not compatible with this version of Apache (found 20020903, need 20050127).
Please contact the vendor for the correct version.

I assume the fix for mod_redirect introduces this new problem:
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/146604
(MFC of http://svn.apache.org/viewvc?view=revision&revision=153384)

The system is really ancient, running 6.4-RELEASE with lot's of
old stuff, but I cannot upgrade PHP nor Apache because of some
compatiblity issues.

Any hints/hacks?


Regards

Frank Wall


More information about the freebsd-ports mailing list