Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension cannot install in php5.6,has error when i make in centos6.9 #119

Open
neilqin opened this issue Sep 20, 2018 · 1 comment
Open

Comments

@neilqin
Copy link

neilqin commented Sep 20, 2018

[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

@aik099
Copy link
Collaborator

aik099 commented Sep 20, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants