SUMMARY Language package missing...but gcc installed

From: Wimmer, Jeffrey <Wimmer.Jeffrey_at_LittonISD.com>
Date: Tue Apr 09 2002 - 08:44:06 EDT
I can now compile xmotd without any problems, and I'd like to thank the
following folks for their help and input
 
Peter Kunst
Mark Neill
Darren Dunham
John T. Douglass
Rainer Heilke
Tim Chipman
David Foster
Paul Frederiksen
John Julian
Michael Schulte
J Stults
Tim Evans
Thomas Jones
Mahesh Gurugunti
Dale Poulter
Mark Gosselin
and Charles Homan
 
I think it was a combination of path in the .cshrc, the modification of
the site.def file to ensure the system understands that gcc does in fact
exist.   and just for good measure I downloaded and installed binutils.
It compiled easily without errors so things are good now.  Thanks
everyone.  
 
Thanks to John Douglas for explaining the meaning of the compiler flags
-Xc, -xF, and -xcg92.  Darren Dunham provided the following website that
fixes the imake file from the beginning to let Solaris know gcc is the
compiler, not cc.  http://www.bolthole.com/solaris/imake.html
<http://www.bolthole.com/solaris/imake.html> .  
This modifies /usr/openwin/lib/X11/config/site.def as shown below:
 
************************************************************************
**********************************
/* if you want host-specific customization, this is one way to do it */
/*
#ifndef SiteIConfigFiles
#define SiteIConfigFiles $(IRULESRC)/host.def
#define LocalConfigFiles host.def
#endif
*/
 
#ifdef BeforeVendorCF
 
ifndef HasGcc2                                          ************
This is where you uncomment to let the host know gcc is the default
define HasGcc2 YES                                 ************
compiler....notice C++ still commented below...don't change that.
endif
 
/*
#ifndef HasCplusplus
#define HasCplusplus YES
#endif 
*/
************************************************************************
*************************************
 
Original post:
 
 
> > Hi folks,
> > 
> > When compiling Xmotd to fix my security banner issue, I get the
> following error:
> > 
> > hdw200# make
> > cc -g -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4
> > -DSYSV -c main.c
> > /usr/ucb/cc: language optional software package not installed
> > *** Error code 1
> > make: Fatal error: Command failed for target `main.o'
> > 
> > I have gcc ver 2.95, gdb, etc installed in /usr/local. I believe the
-Xc
> > flag is causing the problem, but have no idea how to fix it since
I'm  just
> > now getting into compiling programs rather than finding binaries.
This
> > may be an environment path problem, or any number of problems....gnu
sucks
> > when it comes to telling you how to set up your .cshrc or .profile
or
> > .login environment variables.
> > 
> > Any help would be greatly appreciated and welcomed.
 


Jeffrey G. Wimmer. 
Network Engineer/System Admin 



_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Apr 9 11:49:42 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:39 EST