When compiling PHP 5.3.6, you will encounter undefined reference to ' Libiconv_open ' compilation errors, here are several solutions:
First, reinstall Libiconv
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
TAR-ZXVF libiconv-1.13.1.tar.gz cd libiconv-1.13.1./configure
Make
Make install
Second, remove the Iconv module and then compile the application:
Use the./configure–help to view the parameters to see how the specific application removes Iconv compilation, for example, the following is a OPENCC, Iconv-free compilation method: OPENCC:./configure cflags=-liconv again as PHP compiles, Libiconv compilation options can be removed by ZEND extension parameters at make zend_extra_libs= '-liconv ' make install
Third, Iconv repeated installation in different directories, resulting in include file iconv.h, such as repeated through Find/-name "iconv.h" if found to more than 2 return results, the Iconv repeated installation, uninstall redundant version can be compiled normally.
Four.
Another solution for the removal of iconv modules can also be normal compiler PHP, as follows:
Edit Makefile about 77 lines around the place:
Extra_libs = ...-lcrypt
Add-liconv at the end, for example:
Extra_libs = ...-lcrypt-liconv
Run make on it again.
Finally, solve the problem with the second method