I've made a little patch to fix iconv extension build problems on Solaris.
The trick is to define LIBICONV_PLUG before loading the iconv.h header (so
that is doens't define iconv* stuff as libiconv*).
P.S.: there was some bug report about this, but I couldn't found the id