When compiling Apache on Solaris 10u2 today, I was greeted by a since unknown error message:
Configure error: Please apply either patch #120664 (Sparc) or #120665 (x86).
Without these patches mod_cgid is non-functional on Solaris 10 due to an OS bug with AF_UNIX sockets.
So far, so good. I really forgot to apply that patch. However, with Solaris 10u2, you won’t be able to anyway. That’s because this patch was integrated into patch #118855-15. Which in itself isn’t bad either. It’s just that Apache’s configure script doesn’t check for that patch number (yet). So it’s “patch the Apache configure script” time again. Grmpf.

Which apache version did you try to compile?
2.0.59