Path: utzoo!attcan!uunet!mcsun!ukc!axion!delluk!tim From: tim@delluk.uucp (Tim Wright) Newsgroups: comp.sources.games.bugs Subject: Re: GCC on SCO UNIX was Re: Nethack on SCO UNIX Message-ID: Date: 3 Oct 90 09:08:35 GMT References: <1090001@hppcgelo.hp.com> <6370002@hppcmart.HP.COM> Sender: usenet@delluk.uucp (Usenet posting login) Organization: Dell Computer Corp., Bracknell, UK Lines: 29 In <6370002@hppcmart.HP.COM> martin@hppcmart.HP.COM (Martin Croome) writes: >in article 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. >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 ! 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?"