[comp.sources.games.bugs] yet another problem with Spacewar

jon@cisunx.UUCP (Jon M Pearsall) (06/04/88)

What's the '-m68020' option for under the list of flags for 'cc' in
Makefile?  Our cc has no -m option nor does our loader.  When I attempt
to link things together, I get a loader error ('ld:-m no such option' or
something similar).  If I take the '-m68020' out of the Makefile,
everthing goes o.k. until I attempt to run the program.  It gives me the
'cranking up...' message and just hangs there forever.

kluft@hpcuhb.HP.COM (Ian Kluft) (06/07/88)

> What's the '-m68020' option for under the list of flags for 'cc' in
> Makefile?  Our cc has no -m option nor does our loader.  [...]
> If I take the '-m68020' out of the Makefile,
> everthing goes o.k. until I attempt to run the program.  It gives me the
> 'cranking up...' message and just hangs there forever.

The 68020 and BSD options can be removed if they aren't applicable to your
system.  I believe that the 68020 option was meant for Xenix systems whose
compilers will default to 8086 code.

The BSD option will apparently disable System V feature.  Since I'm on an
HP-UX system, we have System V with lots of BSD features.  I removed the
BSD option from CCFLAGS because I want it to take advantage of the System V
features on HP-UX.

However, that's as far as I can get right now because module 2 was garbled
on my system.  I heard that someone else had that problem too.  I'll check
another system with Notes/News before screaming for a good copy.

billr@tekred.TEK.COM (Bill Randle) (06/07/88)

In article <10186@cisunx.UUCP> jon@unix.cis.pittsburgh.edu (Jon M Pearsall) writes:
>What's the '-m68020' option for under the list of flags for 'cc' in
>Makefile?  Our cc has no -m option nor does our loader.

The -m68020 option is used with Sun's (and maybe other machines) to indicate
to the compiler what machine type to compile code for. Sun also uses a
-m68881 flag to indicate floating-point co-processor.

As someone else already pointed out, the dbm library does not exist in
System V. There is a pd implementation in the comp.sources.unix archive
(sorry, I don't have the vol/issue number handy).

I only compiled it, but did not go to the trouble to startup the daemons,
etc. to verify that all worked well.  Usually, if a game compiles it executes
OK.  I will look forward to posting some official patches from the author
(are you out there?).

	-Bill Randle
	Moderator, comp.sources.games
	Tektronix, Inc.
	games@saab.CNA.TEK.COM

jlp@jupiter.UUCP (Jan L. Peterson,,,5659767) (06/08/88)

From article <10186@cisunx.UUCP>, by jon@cisunx.UUCP (Jon M Pearsall):
> What's the '-m68020' option for under the list of flags for 'cc' in

I think it's for the Sun cc compiler.  It's used to cause the compiler
to generate code for a 68020.

> everthing goes o.k. until I attempt to run the program.  It gives me the
> 'cranking up...' message and just hangs there forever.

You need to install the program "rsw" in the /usr/dir/lib/sw directory
(where ever you put the other programs).  This is the "read" program
that does all reading from your terminal.  You also need to install the
programs "dmpdbm" and "upddbm".  The makefile creates these programs, 
but the README fails to tell you that you need them.

I have spacewar running on a Sun 3/260 running SunOS 3.4.
        Jan L. Peterson
UUCP:   {...!utah-cs!caeco,attmail}!olyis!jlp
Mail:   Olympus Software, Inc.; 1333 E 9400 S; Sandy, UT 84093 (USA)
Phone:  +1 801 572 1610