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

WBOY
发布: 2016-06-06 20:09:28
原创
1537 人浏览过

<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>
登录后复制
登录后复制
<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>
登录后复制
登录后复制

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

回复内容:

<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>
登录后复制
登录后复制
<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>
登录后复制
登录后复制

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

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

相关标签:
php
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!