2011年10月6日木曜日

PHP 5.4.0 beta1 にxdebugをインストール



PHP5.4でレガシー機能が削除された影響か?xdebugのmakeでエラーが出まくり・・・・

さすがにまだ対応していないかなと思ってみたものの、
最後の望みgitリポジトリを召喚しました。

git clone https://github.com/derickr/xdebug.git
cd xdebug
phpize
./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php-config
make
make install

無事インストールに成功しました。


ちなみにエラー出まくりのログ
------------------------------
/usr/local/src/xdebug-2.1.2/php_xdebug.h:247: error: expected specifier-qualifier-list before ‘php_output_globals’
/usr/local/src/xdebug-2.1.2/xdebug.c:277: error: ‘zend_xdebug_globals’ has no member named ‘profiler_aggregate’
/usr/local/src/xdebug-2.1.2/xdebug.c:297: error: ‘zend_xdebug_globals’ has no member named ‘do_scream’
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘xdebug_silence_handler’:
/usr/local/src/xdebug-2.1.2/xdebug.c:437: error: ‘zend_xdebug_globals’ has no member named ‘do_scream’
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘xdebug_include_or_eval_handler’:
/usr/local/src/xdebug-2.1.2/xdebug.c:448: error: ‘znode_op’ has no member named ‘u’
/usr/local/src/xdebug-2.1.2/xdebug.c:448: error: request for member ‘constant’ in something not a structure or union
/usr/local/src/xdebug-2.1.2/xdebug.c:448: error: request for member ‘value’ in something not a structure or union
/usr/local/src/xdebug-2.1.2/xdebug.c:448: error: request for member ‘lval’ in something not a structure or union
/usr/local/src/xdebug-2.1.2/xdebug.c:448: 警告: ポインタと整数との比較を行なっています
/usr/local/src/xdebug-2.1.2/xdebug.c:454: 警告: passing argument 2 of ‘xdebug_get_zval’ from incompatible pointer type
/usr/local/src/xdebug-2.1.2/xdebug_var.h:57: note: expected ‘struct znode *’ but argument is of type ‘union znode_op *’
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘zm_startup_xdebug’:
/usr/local/src/xdebug-2.1.2/xdebug.c:490: error: ‘zend_xdebug_globals’ has no member named ‘aggr_calls’
/usr/local/src/xdebug-2.1.2/xdebug.c:490: 警告: passing argument 1 of ‘_zend_hash_init_ex’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_hash.h:100: note: expected ‘struct HashTable *’ but argument is of type ‘const struct zend_ini_entry (*)[1]’
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘zm_shutdown_xdebug’:
/usr/local/src/xdebug-2.1.2/xdebug.c:608: error: ‘zend_xdebug_globals’ has no member named ‘profiler_aggregate’
/usr/local/src/xdebug-2.1.2/xdebug.c:618: error: ‘zend_xdebug_globals’ has no member named ‘aggr_calls’
/usr/local/src/xdebug-2.1.2/xdebug.c:618: 警告: passing argument 1 of ‘zend_hash_destroy’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_hash.h:101: note: expected ‘struct HashTable *’ but argument is of type ‘const struct zend_ini_entry (*)[1]’
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘add_used_variables’:
/usr/local/src/xdebug-2.1.2/xdebug.c:942: error: ‘zend_op_array’ has no member named ‘size’
/usr/local/src/xdebug-2.1.2/xdebug.c:942: 警告: ポインタと整数との比較を行なっています
/usr/local/src/xdebug-2.1.2/xdebug.c:946: error: ‘znode_op’ has no member named ‘op_type’
/usr/local/src/xdebug-2.1.2/xdebug.c:946: 警告: ポインタと整数との比較を行なっています
/usr/local/src/xdebug-2.1.2/xdebug.c:947: error: ‘znode_op’ has no member named ‘u’
/usr/local/src/xdebug-2.1.2/xdebug.c:947: error: request for member ‘var’ in something not a structure or union
/usr/local/src/xdebug-2.1.2/xdebug.c:947: 警告: passing argument 2 of ‘zend_get_compiled_variable_name’ makes integer from pointer without a cast
/usr/local/php/include/php/Zend/zend_compile.h:418: note: expected ‘zend_uint’ but argument is of type ‘const struct zend_ini_entry *’
/usr/local/src/xdebug-2.1.2/xdebug.c:947: 警告: assignment discards qualifiers from pointer target type
/usr/local/src/xdebug-2.1.2/xdebug.c:950: error: ‘znode_op’ has no member named ‘op_type’
/usr/local/src/xdebug-2.1.2/xdebug.c:950: 警告: ポインタと整数との比較を行なっています
/usr/local/src/xdebug-2.1.2/xdebug.c:951: error: ‘znode_op’ has no member named ‘u’
/usr/local/src/xdebug-2.1.2/xdebug.c:951: error: request for member ‘var’ in something not a structure or union
/usr/local/src/xdebug-2.1.2/xdebug.c:951: 警告: passing argument 2 of ‘zend_get_compiled_variable_name’ makes integer from pointer without a cast
/usr/local/php/include/php/Zend/zend_compile.h:418: note: expected ‘zend_uint’ but argument is of type ‘const struct zend_ini_entry *’
/usr/local/src/xdebug-2.1.2/xdebug.c:951: 警告: assignment discards qualifiers from pointer target type
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘xdebug_throw_exception_hook’:
/usr/local/src/xdebug-2.1.2/xdebug.c:1017: 警告: passing argument 2 of ‘xdebug_hash_extended_find’ discards qualifiers from pointer target type
/usr/local/src/xdebug-2.1.2/xdebug_hash.h:68: note: expected ‘char *’ but argument is of type ‘const char *’
/usr/local/src/xdebug-2.1.2/xdebug.c:1019: 警告: passing argument 6 of ‘xdebug_globals.context.handler->remote_breakpoint’ discards qualifiers from pointer target type
/usr/local/src/xdebug-2.1.2/xdebug.c:1019: note: expected ‘char *’ but argument is of type ‘const char *’
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘xdebug_execute’:
/usr/local/src/xdebug-2.1.2/xdebug.c:1217: 警告: passing argument 1 of ‘xdebug_profiler_init’ discards qualifiers from pointer target type
/usr/local/src/xdebug-2.1.2/xdebug_profiler.h:27: note: expected ‘char *’ but argument is of type ‘const char *’
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘xdebug_execute_internal’:
/usr/local/src/xdebug-2.1.2/xdebug.c:1349: 警告: passing argument 1 of ‘xdebug_zval_ptr’ from incompatible pointer type
/usr/local/src/xdebug-2.1.2/xdebug_compat.h:41: note: expected ‘struct znode *’ but argument is of type ‘union znode_op *’
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘xdebug_compile_file’:
/usr/local/src/xdebug-2.1.2/xdebug.c:1388: error: ‘zend_op_array’ has no member named ‘done_pass_two’
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘zif_xdebug_break’:
/usr/local/src/xdebug-2.1.2/xdebug.c:1564: 警告: assignment discards qualifiers from pointer target type
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘zif_xdebug_dump_aggr_profiling_data’:
/usr/local/src/xdebug-2.1.2/xdebug.c:1642: error: ‘zend_xdebug_globals’ has no member named ‘profiler_aggregate’
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘zif_xdebug_clear_aggr_profiling_data’:
/usr/local/src/xdebug-2.1.2/xdebug.c:1659: error: ‘zend_xdebug_globals’ has no member named ‘profiler_aggregate’
/usr/local/src/xdebug-2.1.2/xdebug.c:1663: error: ‘zend_xdebug_globals’ has no member named ‘aggr_calls’
/usr/local/src/xdebug-2.1.2/xdebug.c:1663: 警告: passing argument 1 of ‘zend_hash_clean’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_hash.h:102: note: expected ‘struct HashTable *’ but argument is of type ‘const struct zend_ini_entry (*)[1]’
/usr/local/src/xdebug-2.1.2/xdebug.c: In function ‘xdebug_statement_call’:
/usr/local/src/xdebug-2.1.2/xdebug.c:1698: 警告: assignment discards qualifiers from pointer target type
make: *** [xdebug.lo] エラー 1




0 件のコメント:

コメントを投稿