The following error occurred while compiling the PHP installation manually
/usr/local/src/php-5.3.10/ext/xmlrpc/libxmlrpc/encodings.c:73:undefined reference to ' Libiconv_open '
/usr/ local/src/php-5.3.10/ext/xmlrpc/libxmlrpc/encodings.c:81:undefined reference to ' Libiconv '
/usr/local/src/ php-5.3.10/ext/xmlrpc/libxmlrpc/encodings.c:101:undefined reference to ' Libiconv_close '
Collect2:ld returned 1 Exit status Make
: * * * [SAPI/FPM/PHP-FPM] Error 1
On the surface, is Libiconv installation problem, libiconv after the problem is still, online to see someone to abandon the libiconv, the use of –without-iconv, I think it is not desirable, this is to avoid the problem.
Looking for a long time, finally found the location of the bug: after the execution./configure ... After that, revise the Makefile and find the
Extra_libs =-lcrypt-lz-lcrypt-lrt-lmysqlclient-lmcrypt-lldap-llber-lfreetype-lpng-lz-ljpeg-lcurl-lz-lrt-lm -ldl-lnsl-lrt-lxml2-lz-lm-lssl-lcrypto-ldl-lz-lcurl-ldl-lgssapi_krb5-lkrb5-lk5crypto-lcom_err-lidn-lssl -lcrypto-lz-lxml2-lz-lm-lssl-lcrypto-ldl-lz-lxml2-lz-lm-lxml2-lz-lm-lcrypt-lxml2-lz-lm-lxml2-lz-lm-l Xml2-lz-lm-lxml2-lz-lm-lcrypt
Add-liconv to the last side and modify the following
Extra_libs =-lcrypt-lz-lcrypt-lrt-lmysqlclient-lmcrypt-lldap-llber-lfreetype-lpng-lz-ljpeg-lcurl-lz-lrt-lm -ldl-lnsl-lrt-lxml2-lz-lm-lssl-lcrypto-ldl-lz-lcurl-ldl-lgssapi_krb5-lkrb5-lk5crypto-lcom_err-lidn-lssl -lcrypto-lz-lxml2-lz-lm-lssl-lcrypto-ldl-lz-lxml2-lz-lm-lxml2-lz-lm-lcrypt-lxml2-lz-lm-lxml2-lz-lm-l Xml2-lz-lm-lxml2-lz-lm-lcrypt-liconv