http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55293
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-12 21:48:46 UTC --- Solaris defines a non-standard iconv() signature unless you request POSIX 2001 Try adding -D_XOPEN_SOURCE=600 to the compilation flags