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 学習者の迅速な成長を支援します!