several of the Makefile.am's for exempi 1.99.9 have gcc/g++ specific flags hardcoded in AM_CPPFLAGS and/or AM_CXXFLAGS. When building with a non-gcc compiler (Sun Workshop 12), I removed all of them to avoid complaints from the compiler. Would you consider a patch to configure.ac that checks to see if $GCC or $GXX is being used and then substitutes them in as necessary, rather than hardcoding them? I haven't written that patch yet, but I don't believe it would be difficult. I'll give it a try if it's something you're interested in.
which one do not work, and what are their replacement with Sun CC?
reopen when you can provide the information requested
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.