重新编译php又出错了。undefined reference to `php_xx

main/rfc1867.lo(.text+0x1c): In function `php_mb_flush_gpc_variables':
/usr/src/php-4.3.11/main/rfc1867.c:58: undefined reference to `php_mb_encoding_translation'
main/rfc1867.lo(.text+0x34):/usr/src/php-4.3.11/main/rfc1867.c:59: undefined reference to `php_mb_gpc_encoding_detector'
main/rfc1867.lo(.text+0xa1):/usr/src/php-4.3.11/main/rfc1867.c:61: undefined reference to `php_mb_gpc_encoding_converter'
main/rfc1867.lo(.text+0xa47): In function `substring_conf':
/usr/src/php-4.3.11/main/rfc1867.c:591: undefined reference to `php_mb_encoding_translation'
main/rfc1867.lo(.text+0xa74):/usr/src/php-4.3.11/main/rfc1867.c:592: undefined reference to `php_mb_gpc_mbchar_bytes'
main/rfc1867.lo(.text+0xaca): In function `php_ap_getword_conf':
/usr/src/php-4.3.11/main/rfc1867.c:616: undefined reference to `php_mb_encoding_translation'
main/rfc1867.lo(.text+0xc24):/usr/src/php-4.3.11/main/rfc1867.c:618: undefined reference to `php_mb_gpc_encoding_detector'
main/rfc1867.lo(.text+0xf4f): In function `rfc1867_post_handler':
/usr/src/php-4.3.11/main/rfc1867.c:835: undefined reference to `php_mb_encoding_translation'
main/rfc1867.lo(.text+0x14e6):/usr/src/php-4.3.11/main/rfc1867.c:1055: undefined reference to `php_mb_encoding_translation'
main/rfc1867.lo(.text+0x1542):/usr/src/php-4.3.11/main/rfc1867.c:1063: undefined reference to `php_mb_gpc_encoding_detector'
main/rfc1867.lo(.text+0x155d):/usr/src/php-4.3.11/main/rfc1867.c:1067: undefined reference to `php_mb_strrchr'
main/rfc1867.lo(.text+0x156e):/usr/src/php-4.3.11/main/rfc1867.c:1068: undefined reference to `php_mb_strrchr'
main/rfc1867.lo(.text+0x196f):/usr/src/php-4.3.11/main/rfc1867.c:1065: undefined reference to `php_mb_gpc_encoding_converter'
main/rfc1867.lo(.text+0x1bfe):/usr/src/php-4.3.11/main/rfc1867.c:900: undefined reference to `php_mb_encoding_translation'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

后面发现少了参数 --enable-mbstring,加上之后就没有问题了

转载于:https://my.oschina.net/wenic705/blog/5659

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值