I was compiling perl on a Solaris 10 server. The compile failed because the output of getconf is wrong (it indicates xarch is generic64 not v9. This is a known bug but I cannot find a fix. I wrote a script as suggested that changes it but when you run getconf again it goes back to generic64.
/usr/bin/getconf -a | sed -e 's/generic64/v9/'
I havn't tried to compile perl now but I imagine that it will run compile and get the generic64, instead of v9.
Any suggestions?