二次编译PHP报错:undefined reference to `executor_globals_id’

今天在源码安装php 5.5.30,弄一下php多线程。

首次安装pthread扩展的时候不知道扩展依赖于zts,所以需要重新编译php,启用zts,即 ./configure –prefix=/home/hyper/php/  –enable-maintainer-zts

但是编译之后却报错了,报错内容如下:

/home/hyper/php-5.5.30/ext/xml/xml.c:379: undefined reference to

ts_resource_ex'
ext/xml/.libs/xml.o: In function

xml_call_handler’:
/home/hyper/php-5.5.30/ext/xml/xml.c:507: undefined reference to

ts_resource_ex'
/home/hyper/php-5.5.30/ext/xml/xml.c:509: undefined reference to

executor_globals_id’
ext/xml/.libs/xml.o: In function

_xml_characterDataHandler':
/home/hyper/php-5.5.30/ext/xml/xml.c:1001: undefined reference to

ts_resource_ex’
ext/xml/.libs/xml.o: In function

_xml_startElementHandler':
/home/hyper/php-5.5.30/ext/xml/xml.c:849: undefined reference to

ts_resource_ex’
ext/xmlreader/.libs/php_xmlreader.o: In function

xmlreader_read_property':
/home/hyper/php-5.5.30/ext/xmlreader/php_xmlreader.c:178: undefined reference to

executor_globals_id’
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

 

出现这样的错误信息可能是我以前用不同的参数编译过PHP。

解决方法:执行make clean删除上次的编译结果,然后再重新编译就OK了。

发帖时间: PHP

关于 “二次编译PHP报错:undefined reference to `executor_globals_id’” 的一个意见

  1. I see your page needs some fresh content. Writing manually is time consuming, there is tool for this task.

    Just search in gooogle for: article rewriter Fejlando’s
    suggestion

DerrickAlans进行回复 取消回复

电子邮件地址不会被公开。 必填项已用*标注