Не компилится php 5.0.0
Потребовалась старая версия php на дебиан.
Готовых пакетов не нашел, скачал исходники с php.net
./configure --disable-all
make
gcc -Iext/standard/ -Iphp-5.0.0/ext/standard/ -DPHP_ATOM_INC -Iphp-5.0.0/include -Iphp-5.0.0/main -Iphp-5.0.0 -Iphp-5.0.0/Zend -Iphp-5.0.0/TSRM -g -O2 -c php-5.0.0/ext/standard/array.c -o ext/standard/array.o && echo > ext/standard/array.lo
In file included from php-5.0.0/Zend/zend_API.h:26:0,
from php-5.0.0/main/php.h:38,
from php-5.0.0/ext/standard/array.c:26:
php-5.0.0/Zend/zend_modules.h:34:30: error: array type has incomplete element type
extern struct _zend_arg_info first_arg_force_ref[2];
^
php-5.0.0/Zend/zend_modules.h:35:30: error: array type has incomplete element type
extern struct _zend_arg_info second_arg_force_ref[3];
^
php-5.0.0/Zend/zend_modules.h:36:30: error: array type has incomplete element type
extern struct _zend_arg_info third_arg_force_ref[4];
^
php-5.0.0/Zend/zend_modules.h:37:30: error: array type has incomplete element type
extern struct _zend_arg_info fourth_arg_force_ref[5];
^
php-5.0.0/Zend/zend_modules.h:38:30: error: array type has incomplete element type
extern struct _zend_arg_info all_args_by_ref[1];
^
Makefile:332: recipe for target 'ext/standard/array.lo' failed
make: *** [ext/standard/array.lo] Error 1
Долго гуглил, не могу понять как это исправить.
Дебиан Debian 3.16.7 x64