tokuhirom's Blog

PHP::Interperter

PHP5をPerl5からよべるということでためそうとしたが、うまくうごかなかった。

とりあえず aptitude install php5-cli php5-dev したのだが、コンパイルがとおらない。

/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -g -O2   -DVERSION=\"1.0.2\" -DXS_VERSION=\"1.0.2\" -fPIC "-I/usr/local/app/perl-5.12.1/lib/5.12.1/x86_64-linux/CORE"   PHP.c
In file included from /usr/include/php5/main/php.h:34,
                 from phpinterp.h:11,
                 from PHP.xs:13:
/usr/include/php5/Zend/zend.h:34:1: warning: "END_EXTERN_C" redefined
In file included from PHP.xs:3:
/usr/local/app/perl-5.12.1/lib/5.12.1/x86_64-linux/CORE/perl.h:139:1: warning: this is the location of the previous definition
PHP.xs: In function ‘SvZval’:
PHP.xs:94: error: duplicate case value
PHP.xs:81: error: previously used here
PHP.xs: In function ‘my_autoglobal_merge’:
PHP.xs:377: error: ‘zval’ has no member named ‘refcount’
PHP.xs:383: error: ‘zval’ has no member named ‘refcount’
PHP.xs: In function ‘XS_PHP__Interpreter_instantiate’:
PHP.xs:692: error: ‘zend_fcall_info’ has no member named ‘object_pp’
PHP.xs: In function ‘XS_PHP__Interpreter__Class_EXISTS’:
PHP.xs:861: warning: passing argument 2 of ‘Perl_sv_2pv_flags’ from incompatible pointer type
/usr/local/app/perl-5.12.1/lib/5.12.1/x86_64-linux/CORE/proto.h:3166: note: expected ‘STRLEN * const’ but argument is of type ‘uint *’
PHP.xs: In function ‘XS_PHP__Interpreter__Class_DELETE’:
PHP.xs:887: warning: passing argument 2 of ‘Perl_sv_2pv_flags’ from incompatible pointer type
/usr/local/app/perl-5.12.1/lib/5.12.1/x86_64-linux/CORE/proto.h:3166: note: expected ‘STRLEN * const’ but argument is of type ‘uint *’
PHP.xs: In function ‘XS_PHP__Interpreter__Class__AUTOLOAD’:
PHP.xs:961: error: ‘zend_fcall_info’ has no member named ‘object_pp’
PHP.c: In function ‘XS_PHP__Interpreter__Resource_FETCH’:
PHP.c:1570: warning: useless type name in empty declaration
make: *** [PHP.o] エラー 1