G_GNUC_INTERNAL macro must be added at the be beginning of lines to compile with Sun Studio compiler under solaris
You can resolve this ticket. Thunar 1.2.3 compiles clean on Oracle Solaris 11 and OpenSolaris-based distros.