PHP未定义对`ts_resource_ex';的引用;


PHP undefined reference to `ts_resource_ex'

我试图重新编译PHP以包含pgsql并启用ZTS,但我不断收到一个重复出现的错误代码:

sudo ./configure --prefix=/home/me/php --with-config-file-path=/etc --with-pgsql=shared --enable-maintainer-zts
sudo make

错误:

ext/standard/.libs/info.o:在函数php_info_printf': /home/me/workspace/php5-5.5.9+dfsg/ext/standard/info.c:83: undefined reference to ts_resource_ex'ext/standards/.libs/info.o:中函数php_info_print': /home/me/workspace/php5-5.5.9+dfsg/ext/standard/info.c:97: undefined reference to ts_resource_ex'ext/standard/.libs/info.o:In函数php_info_print_html_esc': /home/me/workspace/php5-5.5.9+dfsg/ext/standard/info.c:69: undefined reference to ts_resource_ex'ext/standard/.libs/info.o:In函数php_print_gpcse_array': /home/me/workspace/php5-5.5.9+dfsg/ext/standard/info.c:204: undefined reference to executor_globals_id'ext/standard/.libs/info.o:在函数php_print_info': /home/me/workspace/php5-5.5.9+dfsg/ext/standard/info.c:869: undefined reference to executor_globals_id'collect2:错误:ld返回1退出状态

不清楚问题的原因,但make clean解决了问题。