Just in case you do have a real compiler under /opt/SUNWspro/bin/cc, you might try adding /opt/SUNWspro/bin/ to your search path (at the beginning, i.e. export PATH=/opt/SUNWspro/bin:$PATH) before you start the build.
As root or normal user? I have this for both cases

root (before exporting as you suggested):
sadm@bioinfo-z:~$ su - Password: root@bioinfo-z:~# printenv SHELL=/bin/bash TERM=vt100 USER=root PATH=/usr/local/bin:/usr/ucb:/bin:/usr/bin:/etc:/usr/sfw/bin:/opt/sfw/ +bin:/opt/SUNWspro/bin:/usr/ccs/bin:/opt/sfw/bin:/opt/SUNWicg/SunScree +n/bin PWD=/home/root SHLVL=1 HOME=/home/root LOGNAME=root _=/usr/local/bin/printenv
normal user:
sadm@bioinfo-z:~$ printenv LC_MONETARY=en_US.ISO8859-1 TERM=vt100 SHELL=/bin/bash SSH_CLIENT=172.18.177.29 1681 22 PERL5LIB=/home/sadm/lib/site_perl/sun4-solaris-64int:/home/sadm/lib/si +te_perl/ LC_NUMERIC=en_US.ISO8859-1 SSH_TTY=/dev/pts/21 USER=sadm MAIL=/var/mail//sadm PATH=/home/sadm/.perl/bin:/home/sadm/bin:/usr/local/bin:/usr/bin:/usr/ +sfw/bin:/opt/sfw/bin:/opt/SUNWspro/bin:/usr/ccs/bin LC_MESSAGES=C LC_COLLATE=en_US.ISO8859-1 PWD=/home/sadm EDITOR=vim TZ=Singapore SHLVL=1 HOME=/home/sadm LOGNAME=sadm SSH_CONNECTION=172.18.177.29 1681 192.168.24.136 22 LC_CTYPE=en_US.ISO8859-1 _=/usr/local/bin/printenv
And also I have:
sadm@bioinfo-z:~$ perl -ve This is perl, v5.8.7 built for sun4-solaris-thread-multi sadm@bioinfo-z:~$ which perl /home/sadm/.perl/bin/perl
and as root I have:
root@bioinfo-z:~# perl -ve This is perl, v5.8.4 built for sun4-solaris-64int (with 28 registered patches, see perl -V for more detail) root@bioinfo-z:~# which perl /bin/perl
and after exporting export PATH=/opt/SUNWspro/bin:$PATH as root. Doing make give me exactly the same error message as my OP.

---
neversaint and everlastingly indebted.......

In reply to Re^4: Problem installing GD.pm under Solaris by neversaint
in thread Problem installing GD.pm under Solaris by neversaint

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.