Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Nethack on SCO UNIX

0 views
Skip to first unread message

Martin Croome

unread,
Sep 25, 1990, 11:56:50 AM9/25/90
to
mar...@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
> mar...@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 - mar...@hppcmart.grenoble.hp.com
Grenoble Personal Computer Division HPDesk - Martin CROOME / HP6300/K1
Technical Mktg - Online Support or martin...@hp6300.desk.hp.com
-------------------------------------------------------------------------------

Martin Croome

unread,
Sep 25, 1990, 10:33:24 AM9/25/90
to

Tim Wright

unread,
Sep 26, 1990, 9:52:08 AM9/26/90
to

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: t...@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?"

Martin Croome

unread,
Oct 1, 1990, 7:02:34 AM10/1/90
to
in article <LIBOVE.90S...@libove.det.dec.com> lib...@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.

Firstly, thank you to everyone who has replied. I am using GCC and I'm still
having the problem. I sucessfully compiled the source I have for MS-DOS (the
overlay version). My only ideas are either a compiler bug or a library bug.

The only problem I came across when compiling the source was a clash with the
obj type in sys/types.h. I commentted this out. Somehow the save file is just
not in the format that the restore expects to find. What am I doing wrong!

Does someone remember the exact sequence of steps they went through to get it
to compile with GCC?

Thanks again for your help.

Tim Wright

unread,
Oct 3, 1990, 5:08:35 AM10/3/90
to
In <637...@hppcmart.HP.COM> mar...@hppcmart.HP.COM (Martin Croome) writes:

>in article <LIBOVE.90S...@libove.det.dec.com> lib...@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.

>Firstly, thank you to everyone who has replied. I am using GCC and I'm still
>having the problem. I sucessfully compiled the source I have for MS-DOS (the
>overlay version). My only ideas are either a compiler bug or a library bug.

>The only problem I came across when compiling the source was a clash with the
>obj type in sys/types.h. I commentted this out. Somehow the save file is just
>not in the format that the restore expects to find. What am I doing wrong!

>Does someone remember the exact sequence of steps they went through to get it
>to compile with GCC?

I thought I responded to this one once - did it not get out ??
If you compile nethack3.0 on a 386 with gcc you *MUST* turn off
optimisation on the file containing the save/restore functions. I did
not look into why this is, looks like an obscure gcc bug. I might take
a look if/when I get time !

0 new messages