extension cannot install in php5.6,has error when i make in centos6.9
[root@hgTest extension]# make /bin/sh /var/www/xhprof/extension/libtool --mode=compile cc -I. -I/var/www/xhprof/extension -DPHP_ATOM_INC -I/var/www/xhprof/extension/include -I/var/www/xhprof/extension/main -I/var/www/xhprof/extension -I/usr/local/php5.6/include/php -I/usr/local/php5.6/include/php/main -I/usr/local/php5.6/include/php/TSRM -I/usr/local/php5.6/include/php/Zend -I/usr/local/php5.6/include/php/ext -I/usr/local/php5.6/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/www/xhprof/extension/xhprof.c -o xhprof.lo cc -I. -I/var/www/xhprof/extension -DPHP_ATOM_INC -I/var/www/xhprof/extension/include -I/var/www/xhprof/extension/main -I/var/www/xhprof/extension -I/usr/local/php5.6/include/php -I/usr/local/php5.6/include/php/main -I/usr/local/php5.6/include/php/TSRM -I/usr/local/php5.6/include/php/Zend -I/usr/local/php5.6/include/php/ext -I/usr/local/php5.6/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/www/xhprof/extension/xhprof.c -fPIC -DPIC -o .libs/xhprof.o /var/www/xhprof/extension/xhprof.c: In function ‘hp_get_function_name’: /var/www/xhprof/extension/xhprof.c:972: warning: assignment discards qualifiers from pointer target type /var/www/xhprof/extension/xhprof.c:1042: warning: passing argument 1 of ‘hp_get_base_filename’ discards qualifiers from pointer target type /var/www/xhprof/extension/xhprof.c:926: note: expected ‘char *’ but argument is of type ‘const char *’ /var/www/xhprof/extension/xhprof.c: In function ‘hp_execute_internal’: /var/www/xhprof/extension/xhprof.c:1741: error: ‘zend_execute_data’ has no member named ‘Ts’ /var/www/xhprof/extension/xhprof.c: In function ‘hp_compile_file’: /var/www/xhprof/extension/xhprof.c:1785: warning: passing argument 1 of ‘hp_get_base_filename’ discards qualifiers from pointer target type /var/www/xhprof/extension/xhprof.c:926: note: expected ‘char *’ but argument is of type ‘const char *’ /var/www/xhprof/extension/xhprof.c: In function ‘hp_begin’: /var/www/xhprof/extension/xhprof.c:1853: error: lvalue required as left operand of assignment /var/www/xhprof/extension/xhprof.c:1856: warning: assignment from incompatible pointer type /var/www/xhprof/extension/xhprof.c:1861: warning: assignment from incompatible pointer type /var/www/xhprof/extension/xhprof.c: In function ‘hp_stop’: /var/www/xhprof/extension/xhprof.c:1926: error: lvalue required as left operand of assignment /var/www/xhprof/extension/xhprof.c:1927: warning: assignment from incompatible pointer type make: *** [xhprof.lo] Error 1
Unfortunately I don’t have any experience with writing PHP extensions. My best guess would be looking at changes in PHP extension at Facebook repository (origin of the fork) to find changes made to be compatible with PHP 5.6.