/usr/ucb/cc error message - gcc compiling problem?

2007-12-24 20:55:00

Hello,
I got a problem when compiling some free packages such as Crack, Cpm, under
Solaris 8:

# cc -Bstatic -o cpm cpm.c
/usr/ucb/cc: language optional software package not installed
# gcc -o cpm cpm.c
cpm.c:17: sys/mbuf.h: No such file or directory

The 'language optional software package not installed' message is also
displayed when Crack is compiled. When I compiled Crack, I make it point to
'gcc' according to a Sun book.

The system information:
1) gcc 2.95 is working fine when I compiled some small test C programs.
2) SUNWlibC, SUNWlibCf, SUNWlibm, SUNWlibms, SUNWscbcp, SUNWtoo, SUNWarc,
SUNWhea, SUNWbtool are all loaded in the system.
3) # echo $LD_LIBRARY_PATH
/usr/lib /usr/openwin/lib /usr/local/lib /usr/local/lib/gcc-lib
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 /opt/sfw/lib
4) mbuf.h is not for Solaris according to some documents.
5) Iniatially I loaded gcc from Solaris 8 Companion CD. Then I pkgrmed it
and pkgadded the 'local' package downloaded from www.sunfreeware.com. The
same problem remains there.
6) I compiled other stuff such as Nmap, Saint on this system successfully.
6) I installed the same Crack on Linux without any problem.

What could be the reason? Please help! Thank you in advance!

Alex

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Comments

Got something to say?

You must be logged in to post a comment.