在php-5.3.10 make后报如下错误:

 /root/soft/php-5.3.10/ext/iconv/iconv.c:2623: undefined reference to `libiconv'

/root/soft/php-5.3.10/ext/iconv/iconv.c:2623: undefined reference to `libiconv'
ext/iconv/iconv.o:/root/soft/php-5.3.10/ext/iconv/iconv.c:2545: more undefined references to `libiconv' follow
ext/iconv/iconv.o: In function `php_iconv_stream_filter_ctor':
/root/soft/php-5.3.10/ext/iconv/iconv.c:2499: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] 错误 1
 
解决办法:在当前执行make目录下操作  
vi Makefile
/EXTRA_LIBS  找到如下这行:
EXTRA_LIBS = -lcrypt -lresolv -lcrypt -lrt -lrt -lm -ldl -lnsl -lrt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -liconv
添加-liconv保存退出,重新make即可