错误:ext/standard/.libs/dns.o: In function `php_parserr':
/usr/local/src/php-5.3.13/ext/standard/dns.c:428: undefined reference to `__dn_expand'
/usr/local/src/php-5.3.13/ext/standard/dns.c:478: undefined reference to `__dn_expand'
/usr/local/src/php-5.3.13/ext/standard/dns.c:662: undefined reference to `__dn_expand'
/usr/local/src/php-5.3.13/ext/standard/dns.c:684: undefined reference to `__dn_expand'
/usr/local/src/php-5.3.13/ext/standard/dns.c:523: undefined reference to `__dn_expand'
ext/standard/.libs/dns.o:/usr/local/src/php-5.3.13/ext/standard/dns.c:529: more undefined references to `__dn_expand' follow
ext/standard/.libs/dns.o: In function `zif_dns_check_record':
/usr/local/src/php-5.3.13/ext/standard/dns.c:403: undefined reference to `__res_nsearch'
ext/standard/.libs/dns.o: In function `zif_dns_get_mx':
/usr/local/src/php-5.3.13/ext/standard/dns.c:937: undefined reference to `__res_nsearch'
/usr/local/src/php-5.3.13/ext/standard/dns.c:948: undefined reference to `__dn_skipname'
/usr/local/src/php-5.3.13/ext/standard/dns.c:955: undefined reference to `__dn_skipname'
/usr/local/src/php-5.3.13/ext/standard/dns.c:968: undefined reference to `__dn_expand'
ext/standard/.libs/dns.o: In function `zif_dns_get_record':
/usr/local/src/php-5.3.13/ext/standard/dns.c:820: undefined reference to `__res_nsearch'
/usr/local/src/php-5.3.13/ext/standard/dns.c:837: undefined reference to `__dn_skipname'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
解决方法:
#make clean
#make ZEND_EXTRA_LIBS='-lresolv'
阅读(3408) | 评论(0) | 转发(0) |