重新编译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,加上之后就没有问题了

你可能感兴趣的:(重新编译php又出错了。undefined reference to `php_xx)