SUMMARY Language package missing...but gcc installed

From: Wimmer, Jeffrey <>
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
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.
<> .  
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
#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.
#ifndef HasCplusplus
#define HasCplusplus YES
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
> > 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.
> > may be an environment path problem, or any number of problems....gnu
> > when it comes to telling you how to set up your .cshrc or .profile
> > .login environment variables.
> > 
> > Any help would be greatly appreciated and welcomed.

Jeffrey G. Wimmer. 
Network Engineer/System Admin 

sunmanagers mailing list
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