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學習者快速成長!