It sounds to me like the make file is looking for gcc, but
instead is finding solaris cc, and it doesn't like it. One
(kludgy) way I've gotten around similar things without getting
gcc on the box is to just make a soft link named gcc pointing
at cc. It's worth a shot.