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
-------------------------------------------------------------------------------
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?"
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.
>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 !