Migrate to FreeBSD 9.1-RELEASE (JDK 1.6) に続いて idnconv (idnkit) を移行しました。
idnconv は国際化ドメイン名のエンコード・デコードを行うツールです。
FreeBSD 7.1-RELEASE i386 で使用していた際のコンパイルオプションは手元に残っていなかったため、まずはシンプルに実行しました。
# ./configure (中略) checking for unsetenv... (cached) yes checking for libc shared object... /lib/libc.so.7 checking for iconv... no configure: error: iconv function not available
# ./configure --with-iconv-include=/usr/local/include (中略) checking for libc shared object... /lib/libc.so.7 checking for iconv... no configure: error: iconv function not available
idnkit-1.0-src/README に目を通すと
We've had successful builds on the following systems: ------------------------------------------------------------------- OS iconv library configure options =================================================================== FreeBSD 4.7-RELEASE GNU libiconv --with-libiconv for Intel 1.8
とあったので、
# ./configure --with-libiconv (中略) creating ./config.status creating Makefile creating include/Makefile creating include/idn/Makefile creating include/mdn/Makefile creating lib/Makefile creating man/Makefile creating tools/Makefile creating tools/idnconv/Makefile creating tools/runidn/Makefile creating tools/runidn/runidn creating map/Makefile creating lib/tests/Makefile creating include/config.h include/config.h is unchanged
configure が通り、インストールも完了しました。
# echo "ssl証明書.jp" | idnconv -in ja xn--ssl-k58fk4bv90k.jp # echo "xn--ssl-k58fk4bv90k.jp" | idnconv -in Punycode -out ja ssl証明書.jp
動作も正常です。
- Migrate 32bit to 64bit (FreeBSD, PostgreSQL)
- Migrate 32bit to 64bit (FreeBSD, GDBM)
- Migrate 32bit to 64bit (FreeBSD, ionCube PHP Loader)
- Migrate to FreeBSD 9.1-RELEASE (ImageMagick 6.4)
- Migrate to FreeBSD 9.1-RELEASE (PostgreSQL)
- Migrate to FreeBSD 9.1-RELEASE (JDK 1.6)
- Migrate to FreeBSD 9.1-RELEASE (idnconv)
- Migrate to FreeBSD 9.1-RELEASE (PDFJ)