SUMMARY: /usr/ucb/cc error message - gcc compiling problem.

From: the sunlover2 <thesunlover2_at_hotmail.com>
Date: Wed Oct 03 2001 - 13:50:13 EDT
Thank you all who replied:
Sanchet Surendra Dighe, Gaziz Nugmanov, Lincoln Nelson, Dan Lowe, Kevin 
Inscoe, Chris Kurtz, Dennis Lovelady, greg@cheers.bungi.com, Terry McClurg, 
Alex Stade, Christopher Barnard.

Solutions (Based on Dan Lowe):
# mv /usr/ucb/cc /usr/ucb/cc.ORI
# ln -s /usr/local/bin/gcc /usr/ucb/cc OR
# ln -s /opt/sfw/bin/gcc /usr/ucb/cc

If you're using GNU autoconf and/or make you can also just set the
environment variable "CC" to "gcc":
CC=gcc		# bash, sh, ksh, zsh
setenv CC gcc	# csh, tcsh

Note: Putting /usr/ucb at the end of path doesn't work. I tried it before. 
Some packages such as Saint are smart enough to find 'gcc'. Some packages 
such as Crack are not.

Two helpful links provided by Kevin Inscoe for Sun compiling and cpm:
http://inscoe.org/compilesun
http://www.netsys.com/sunmgr/1998-12/msg00005.html


Alex C.

////////////////////////////////////////////////////////////////////

Original Question:
> > 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
> >
> > _______________________________________________
> > sunmanagers mailing list
> > sunmanagers@sunmanagers.org
> > http://www.sunmanagers.org/mailman/listinfo/sunmanagers
>
>--
>When childhood dies, its corpses are called adults.   -Brian Aldiss


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Received on Wed Oct 3 18:50:13 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:32:32 EDT