[comp.unix.questions] need help with error message

ec120bdf@sdcc7.ucsd.EDU (Dennis Lou) (02/08/89)

Does anyone have any idea what this error message is?  It occurred
whilst I was trying to compile spacewar (taken from uunet.uu.net) on
a ATT 3b20.  I had to use the ndbm.h library but there is no 
libdbm.a in /usr/lib.  Also, libcurses.a has all the terminal info
so I had to change the -ltermlib reference in the Makefile to
-lcurses.  Anyways, here's the errors that got me puzzled...

ld crt0.o: unknown flag: 6
ld crt0.o: unknown flag: 8
ld crt0.o: unknown flag: 0
ld crt0.o: unknown flag: 2
ld crt0.o: unknown flag: 0
ld crt0.o: unknown flag: 6
ld crt0.o: unknown flag: 8
ld crt0.o: unknown flag: 8
ld crt0.o: unknown flag: 8
ld crt0.o: unknown flag: 1
*** Error code 1

Stop.


Any info will be appreciated.  Thanks.


-- 
Dennis Lou
	ec120bdf@sdcc7.ucsd.edu
	[backbone]!ucsd!sdcc7!ec120bdf		
    "Tommorow is the derivative of today and yesterday is the integral."

gwyn@smoke.BRL.MIL (Doug Gwyn ) (02/09/89)

In article <1182@sdcc7.ucsd.EDU> ec120bdf@sdcc7.ucsd.EDU (Dennis Lou) writes:
>ld crt0.o: unknown flag: 6

Sounds like crt0.o is not in proper object module format.
AT&T SGS "ls" would then treat it as a text file that specifies
section organization, etc.

If you're using a crt0.o other than the one provided automatically
by "cc", it's almost certainly the culprit.