Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jun 2010 17:06:49 +0200
From:      Frank Wall <fw@moov.de>
To:        freebsd-ports@freebsd.org
Subject:   PHP4 no longer compiles with www/apache20
Message-ID:  <20100617150649.GO17842@gold.inotronic-management.de>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100617150649.GO17842>