Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solaris 10 compiling issue

Status
Not open for further replies.

nyck

Technical User
Mar 10, 2004
447
GB
Hello,

For some strange reason I'm now getting the following error when compiling:-

% cc -o utils/getime utils/getime.c
/usr/ucb/cc: language optional software package not installed

What could be the cause of this issue?

The users are telling me that this has been working fine until this morning when it stopped working!

 
Did you change default pathing? There must be another cc or link to one that was removed.
 
I have removed Sun Studio 12 and re-installed with Sun Studio 12 update 1 and removed /usr/ucb from the PATH and that error message has now gone away. But when the user trys a simple compile its crashing with the following:-

cc -o getime utils/getime.c
"/usr/include/iso/stdlib_iso.h", line 51: internal compiler error: compiler takes alignment of function or void
cc: acomp failed for utils/getime.c

ANy suggestions would be great as to the cause of this issue?
 
Yeah, does a simple compile work?

Like:

try.c:

main ()
{
printf("hello world\n");
}

cc -o try try.c
./try

Sounds like the headers don't match the compiler. Check to see if they got re-installed.

 
It had errors but did work:-

cc -o try try.c
"try.c", line 1: warning: old-style declaration or incorrect type for: main
"try.c", line 3: warning: implicit function declaration: printf
# ./try
Hello World

would you expect these errors?
 
yes, so it is compiling.

I don't run SunStudio, I would guess it needs some patch.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top