memo.xight.org

日々のメモ

iconvでコンパイルエラー

Summary

Solaris 8で PHP make中に以下のエラー

/path/to/php/ext/iconv/iconv.c: In function `zm_startup_miconv':
/path/to/php/ext/iconv/iconv.c:175: `_libiconv_version' undeclared (first use in this function)
/path/to/php/ext/iconv/iconv.c:175: (Each undeclared identifier is reported only once
/path/to/php/ext/iconv/iconv.c:175: for each function it appears in.)

- 対処法
# mv /usr/include/iconv.h /usr/include/iconv.h.bak
# ln /usr/local/include/iconv.h /usr/include/iconv.h

Reference

日本ではたらく社長のブログ | 【備忘録】php5.1インストール
http://ieiriblog.jugem.jp/?eid=659