I tried to prepare builds for OpenIndiana, but both the 64 and 32 bit versions failed on the Gettext test suite (SEGV).
You may need to make sure that the include files in your include path match the libraries in your library path. There are both GNU and Sun versions of some libraries available, and if you get header files from one and libraries from the other it will not work.