I saw the same error running 2008.05 on VirtualBox where the only changes I made since installation were to install the VirtualBox guest additions, and to install punchin IPsec. I created a new virtual machine, freshly installed 2008.05, then installed gcc, and I can compile with no problems. Here is a diff of pkginfo output from the working fresh installation to the broken one:
5a6 > application ITpunchin Punchin Site Config Files: Sun > Microsystems 7a9 > application SUNW0punchin Punchin Client Base Files 510a513 > system SUNWlxmlr The XML library (Root) 668a672 > system SUNWsqlite3 SQLite3 721a726 > application SUNWvboxguest Sun xVM VirtualBox Guest > Additions 768a774 > system SUNWzlibr The Zip compression library > (Root) I'm going to try to narrow down what introduced SUNWprivate_4.2 and broke the compiler. -- This message posted from opensolaris.org
