[comp.sources.games.bugs] Nethack on SCO UNIX

martin@hppcgelo.hp.com (Martin Croome) (09/25/90)

Has anyone sucessfully got nethack to work on SCO UNIX. I get problems which
seem to be related to the save/restore routines. I haven't spent a lot of time
delving into this yet. If anyone has a quick solution please let me know.

Cheers

Martin Croome
martin@hppcmart.grenoble.hp.com

martin@hppcmart.HP.COM (Martin Croome) (09/25/90)

martin@hppcgelo.hp.com (Martin Croome) writes...
> Has anyone sucessfully got nethack to work on SCO UNIX. I get problems which
> seem to be related to the save/restore routines. I haven't spent a lot of time
> delving into this yet. If anyone has a quick solution please let me know.
> 
> Cheers
> 
> Martin Croome
> martin@hppcmart.grenoble.hp.com
> ----------

More information. The problem seems to appear in restobjchn which starts reading
some garbage from the save file. This seems to occur when it is called from
getlev for the first time. The end result is that the newobj define attempts
to malloc some silly number of bytes like -123781903 and the game panics.

Is there anyone who can shed some light on this?

Please?

Martin Croome

-------------------------------------------------------------------------------
Martin CROOME                        !'s     - hplabs!hpgnd!hppcmart!martin
Hewlett Packard                      @'s     - martin@hppcmart.grenoble.hp.com
Grenoble Personal Computer Division  HPDesk  - Martin CROOME / HP6300/K1
Technical Mktg - Online Support            or  martin_croome@hp6300.desk.hp.com
-------------------------------------------------------------------------------

tim@delluk.uucp (Tim Wright) (09/26/90)

Re: save/restore problems on SCO unix. What did you compile it
with ? If you used GNU C, turn off -O on the source file containing
save/restore (I forget which it is). This will solve the problem.
Come to think of it gcc or not it will be a compiler bug - there's
nothing wrong with the source.

Tim
--
Tim Wright, Dell Computer Corp. (UK) | Email address
Dell Computer Corp. (UK), Bracknell  | Domain: tim@dell.co.uk
Tel: +44-344-860456                  | Uucp: ...!ukc!delluk!tim
"What's the problem? You've got an IQ of six thousand, haven't you?"

seanf@sco.COM (Sean Fagan) (09/29/90)

In article <LIBOVE.90Sep26124607@libove.det.dec.com> libove@libove.det.dec.com (Jay Libove) writes:
>Which compiler are you using? Have you tried the
>other one? I vaguely recall that I compiled it with rcc -UM_UNIX -DM_XENIX.

I would like to point out, for general interest, that ^^^^ is a very bad
idea.  For most programs, it probably won't matter, except that you will not
see the job control signals (which *do* work, in 3.2v2).  If you deal with
things like the utsname structures, you can expect a core-dump or
overwritten data; if you deal with file locking, you can expect it to fail;
etc.

-- 
-----------------+
Sean Eric Fagan  | "Never knock on Death's door:  ring the bell and 
seanf@sco.COM    |   run away!  Death really hates that!"
uunet!sco!seanf  |     -- Dr. Mike Stratford (Matt Frewer, "Doctor, Doctor")
(408) 458-1422   | Any opinions expressed are my own, not my employers'.