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 학습자의 빠른 성장을 도와주세요!