php5.5.30 安装pthreads扩展编译失败

WBOY
Release: 2016-06-06 20:09:28
Original
1536 people have browsed it

<code>[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.lo
mkdir .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.o
In 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 directory
In 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.)
</code>
Copy after login
Copy after login
<code>$ 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
</code>
Copy after login
Copy after login

不知道这个是什么原因,大家有遇见这种情况吗?

回复内容:

<code>[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.lo
mkdir .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.o
In 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 directory
In 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.)
</code>
Copy after login
Copy after login
<code>$ 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
</code>
Copy after login
Copy after login

不知道这个是什么原因,大家有遇见这种情况吗?

版本原因
php或者扩展的版本不匹配

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!