一个低级错误

以前编译php的时候没有加--enable-maintainer-zts参数,前两天由于需要加了这个参数,重新configure了一下,然后再make发现报错了,于是连错误是什么都没有看就开始如无头苍蝇一搬可以瞎折腾,折腾到最后没有任何结果,没办法了就重新下了一个php代码来完全重新搞一次,结果这回编译过去,回过头来再看这个错误,觉得相当无语:

<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:536871559 0 0 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:宋体;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; mso-ascii-font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-hansi-font-family:"Times New Roman"; mso-font-kerning:0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> > ext/standard/info.o(.text+0x1a): In function `php_info_write_wrapper':
> /home/mall/install/php-5.2.6/ext/standard/info.c:67: undefined reference to
> `ts_resource_ex'
> ext/standard/info.o(.text+0x20a): In function `php_print_gpcse_array':
> /home/mall/install/php-5.2.6/ext/standard/info.c:133: undefined reference to
> `executor_globals_id'
> ext/standard/info.o(.text+0xabd): In function `php_print_info':
> /home/mall/install/php-5.2.6/ext/standard/info.c:468: undefined reference to
> `sapi_globals_id'
> ext/standard/info.o(.text+0xae2):/home/mall/install/php-5.2.6/ext/standard/info.c:469:
> undefined reference to `sapi_globals_id'
> ext/standard/info.o(.text+0x13ae):/home/mall/install/php-5.2.6/ext/standard/info.c:659:
> undefined reference to `sapi_globals_id'
> ext/standard/info.o(.text+0x13d3):/home/mall/install/php-5.2.6/ext/standard/info.c:660:
> undefined reference to `sapi_globals_id'
> ext/standard/info.o(.text+0x156c):/home/mall/install/php-5.2.6/ext/standard/info.c:680:
> undefined reference to `sapi_globals_id'
> ext/standard/info.o(.text+0x1591):/home/mall/install/php-5.2.6/ext/standard/info.c:681:
> more undefined references to `sapi_globals_id' follow
> ext/standard/info.o(.text+0x1a23): In function `php_print_info':
> /home/mall/install/php-5.2.6/ext/standard/info.c:747: undefined reference to
> `executor_globals_id'
> ext/standard/info.o(.text+0x1a7a):/home/mall/install/php-5.2.6/ext/standard/info.c:750:
> undefined reference to `executor_globals_id'
> ext/standard/info.o(.text+0x1ad1):/home/mall/install/php-5.2.6/ext/standard/info.c:753:
> undefined reference to `executor_globals_id'
> ext/standard/info.o(.text+0x1b28):/home/mall/install/php-5.2.6/ext/standard/info.c:756:
> undefined reference to `executor_globals_id'
> ext/standard/info.o(.text+0x21e3): In function
> `php_info_print_table_header':
> /home/mall/install/php-5.2.6/ext/standard/info.c:879: undefined reference to
> `ts_resource_ex'
> ext/standard/info.o(.text+0x2446): In function
> `php_info_print_table_row_internal':
> /home/mall/install/php-5.2.6/ext/standard/info.c:923: undefined reference to
> `ts_resource_ex'
> collect2: ld returned 1 exit status
其实这种错误明显是ld链接的时候造成的,也就是说编译阶段出了问题,首先应该尝试的是make clean之后再make,但是主观上认为configure了就相当于make clean了,也不知道这种主观认识是怎么出来的。

 

看来遇到错误,不管熟悉的熟悉的,还是先自己分析一下再说。

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值