UPDATE: Language package missing...but gcc installed

2007-12-24 22:22:00

20 responses so far....all reminded me to ensure /usr/ucb isn't in front
of local/bin.....2 ways to fix that, and I chose both...


An oversight on my part to have /usr/ucb in front of /usr/local/bin,
fixed by doing:
#pwd
/usr/ucb
mv cc cc.orig
ln -s /usr/local/bin/gcc cc

however, I still get the following error:

hdw200# make
gcc -g -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4
-DSYSV -c -o main.o main.c
gcc: unrecognized option `-Xc'
gcc: language cg92 not recognized
gcc: main.c: linker input file unused since linking not done
gcc -g -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4
-DSYSV -c -o xmotd.o xmotd.c
gcc: unrecognized option `-Xc'
gcc: language cg92 not recognized
gcc: xmotd.c: linker input file unused since linking not done
gcc -g -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4
-DSYSV -c -o changed.o changed.c
gcc: unrecognized option `-Xc'
gcc: language cg92 not recognized
gcc: changed.c: linker input file unused since linking not done
gcc -g -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4
-DSYSV -c -o textmode.o textmode.c
gcc: unrecognized option `-Xc'
gcc: language cg92 not recognized
gcc: textmode.c: linker input file unused since linking not done
gcc -g -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4
-DSYSV -c -o usage.o usage.c
gcc: unrecognized option `-Xc'
gcc: language cg92 not recognized
gcc: usage.c: linker input file unused since linking not done
gcc -g -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4
-DSYSV -c -o browser.o browser.c
gcc: unrecognized option `-Xc'
gcc: language cg92 not recognized
gcc: browser.c: linker input file unused since linking not done
gcc -g -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4
-DSYSV -c -o logo.o logo.c
gcc: unrecognized option `-Xc'
gcc: language cg92 not recognized
gcc: logo.c: linker input file unused since linking not done
gcc -g -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4
-DSYSV -c -o atom.o atom.c
gcc: unrecognized option `-Xc'
gcc: language cg92 not recognized
gcc: atom.c: linker input file unused since linking not done
rm -f xmotd
LD_RUN_PATH=/usr/openwin/lib gcc -o xmotd -g -Xc -xF -xcg92
-L/usr/openwin/lib main.o xmotd.o changed.o textmode.o usage.o browser.o
logo.o atom.o -lXaw -lXmu -lm -lXt -lSM -lICE -lXext -lX11
-lsocket -lnsl
gcc: main.o: No such file or directory
gcc: xmotd.o: No such file or directory
gcc: changed.o: No such file or directory
gcc: textmode.o: No such file or directory
gcc: usage.o: No such file or directory
gcc: browser.o: No such file or directory
gcc: logo.o: No such file or directory
gcc: atom.o: No such file or directory
gcc: unrecognized option `-Xc'
make: *** [xmotd] Error 1
hdw200#

So the -Xc compiler flag isn't recognized....I've seen this before...but
can't remember what the fix was......

Everything works fine when I do the xmkmf.....
hdw200# xmkmf
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/openwin/lib/X11/config

so the Imakefile creates the Makefile fine......the




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
Northrop Grumman
Electronic Sensors and Systems Sector
Advanced Naval Platforms Division
6608 Sun Scope Drive
Ocean Springs, MS 39564
228.872.7376
wimmer.jeffrey at littonisd.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.codeprof.com/pipermail/codeprof/attachments/20020408/46a60e88/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flyingwing.gif
Type: image/gif
Size: 47611 bytes
Desc: not available
Url : http://www.codeprof.com/pipermail/codeprof/attachments/20020408/46a60e88/attachment.gif

Comments

Got something to say?

You must be logged in to post a comment.