Pthreads extension compilation fails to be installed in php5.5.30.

Source: Internet
Author: User
{Code...} does not know why. Do you have such a situation?
[hyper@localhost:/home/hyper/pthreads-master/]$ make/usr/bin/make64 MAC=64/bin/sh /home/hyper/pthreads-master/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/hyper/pthreads-master -DPHP_ATOM_INC -I/home/hyper/pthreads-master/include -I/home/hyper/pthreads-master/main -I/home/hyper/pthreads-master -I/home/hyper/php/include/php -I/home/hyper/php/include/php/main -I/home/hyper/php/include/php/TSRM -I/home/hyper/php/include/php/Zend -I/home/hyper/php/include/php/ext -I/home/hyper/php/include/php/ext/date/lib -I/home/hyper/pthreads-master/.  -DHAVE_CONFIG_H  -g -O2   -c /home/hyper/pthreads-master/php_pthreads.c -o php_pthreads.lomkdir .libs cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/hyper/pthreads-master -DPHP_ATOM_INC -I/home/hyper/pthreads-master/include -I/home/hyper/pthreads-master/main -I/home/hyper/pthreads-master -I/home/hyper/php/include/php -I/home/hyper/php/include/php/main -I/home/hyper/php/include/php/TSRM -I/home/hyper/php/include/php/Zend -I/home/hyper/php/include/php/ext -I/home/hyper/php/include/php/ext/date/lib -I/home/hyper/pthreads-master/. -DHAVE_CONFIG_H -g -O2 -c /home/hyper/pthreads-master/php_pthreads.c  -fPIC -DPIC -o .libs/php_pthreads.oIn file included from /home/hyper/pthreads-master/php_pthreads.c:22:**./src/pthreads.h:66:35: error: Zend/zend_inheritance.h: No such file or directory**./src/pthreads.h:69:33: error: Zend/zend_smart_str.h: No such file or directoryIn file included from /home/hyper/pthreads-master/php_pthreads.c:22:./src/pthreads.h:136: error: expected declaration specifiers or ‘...’ before ‘zend_long’./src/pthreads.h: In function ‘pthreads_check_opline’:./src/pthreads.h:137: error: ‘zend_execute_data’ has no member named ‘func’./src/pthreads.h:137: error: ‘zend_execute_data’ has no member named ‘func’./src/pthreads.h:138: error: ‘zend_execute_data’ has no member named ‘func’./src/pthreads.h:141: error: ‘offset’ undeclared (first use in this function)./src/pthreads.h:141: error: (Each undeclared identifier is reported only once./src/pthreads.h:141: error: for each function it appears in.)
$ php-config --includes-I/home/hyper/php/include/php -I/home/hyper/php/include/php/main -I/home/hyper/php/include/php/TSRM -I/home/hyper/php/include/php/Zend -I/home/hyper/php/include/php/ext -I/home/hyper/php/include/php/ext/date/lib

I don't know why. Have you ever encountered this situation?

Reply content:
[hyper@localhost:/home/hyper/pthreads-master/]$ make/usr/bin/make64 MAC=64/bin/sh /home/hyper/pthreads-master/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/hyper/pthreads-master -DPHP_ATOM_INC -I/home/hyper/pthreads-master/include -I/home/hyper/pthreads-master/main -I/home/hyper/pthreads-master -I/home/hyper/php/include/php -I/home/hyper/php/include/php/main -I/home/hyper/php/include/php/TSRM -I/home/hyper/php/include/php/Zend -I/home/hyper/php/include/php/ext -I/home/hyper/php/include/php/ext/date/lib -I/home/hyper/pthreads-master/.  -DHAVE_CONFIG_H  -g -O2   -c /home/hyper/pthreads-master/php_pthreads.c -o php_pthreads.lomkdir .libs cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/hyper/pthreads-master -DPHP_ATOM_INC -I/home/hyper/pthreads-master/include -I/home/hyper/pthreads-master/main -I/home/hyper/pthreads-master -I/home/hyper/php/include/php -I/home/hyper/php/include/php/main -I/home/hyper/php/include/php/TSRM -I/home/hyper/php/include/php/Zend -I/home/hyper/php/include/php/ext -I/home/hyper/php/include/php/ext/date/lib -I/home/hyper/pthreads-master/. -DHAVE_CONFIG_H -g -O2 -c /home/hyper/pthreads-master/php_pthreads.c  -fPIC -DPIC -o .libs/php_pthreads.oIn file included from /home/hyper/pthreads-master/php_pthreads.c:22:**./src/pthreads.h:66:35: error: Zend/zend_inheritance.h: No such file or directory**./src/pthreads.h:69:33: error: Zend/zend_smart_str.h: No such file or directoryIn file included from /home/hyper/pthreads-master/php_pthreads.c:22:./src/pthreads.h:136: error: expected declaration specifiers or ‘...’ before ‘zend_long’./src/pthreads.h: In function ‘pthreads_check_opline’:./src/pthreads.h:137: error: ‘zend_execute_data’ has no member named ‘func’./src/pthreads.h:137: error: ‘zend_execute_data’ has no member named ‘func’./src/pthreads.h:138: error: ‘zend_execute_data’ has no member named ‘func’./src/pthreads.h:141: error: ‘offset’ undeclared (first use in this function)./src/pthreads.h:141: error: (Each undeclared identifier is reported only once./src/pthreads.h:141: error: for each function it appears in.)
$ php-config --includes-I/home/hyper/php/include/php -I/home/hyper/php/include/php/main -I/home/hyper/php/include/php/TSRM -I/home/hyper/php/include/php/Zend -I/home/hyper/php/include/php/ext -I/home/hyper/php/include/php/ext/date/lib

I don't know why. Have you ever encountered this situation?

Version reason
Php or extended version does not match

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.