Bug 140336 - nethack does not work on 64 bit machines
Summary: nethack does not work on 64 bit machines
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Other (show other bugs)
Version: Final
Hardware: x86-64 Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Stanislav Brabec
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-20 15:05 UTC by Andreas Vetter
Modified: 2006-02-14 13:36 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
strace of nethack on 64 bit (35.54 KB, application/octet-stream)
2005-12-20 15:07 UTC, Andreas Vetter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Vetter 2005-12-20 15:05:49 UTC
How to reproduce:
install nethack.rpm on a 64 bit machine
start nethack as user, you will get an error message:
No HACKSTYLE set so trying to detect...
nethack.tty found, it will be executed
Warning: cannot write scoreboard file /var/games/nethack/record

Hit return to continue:
NetHack, Copyright 1985-2003
         By Stichting Mathematisch Centrum and M. Stephenson.
         See license for details.
No write permission to lock /var/games/nethack/perm!

Hit space to continue:

Then nethack drops back to the shell.
It works as root, and it works on 32 bit for normal user and root.

rpm -V nethack says nothing, so it's fine.

I will attach a strace.
Comment 1 Andreas Vetter 2005-12-20 15:07:03 UTC
Created attachment 61477 [details]
strace of nethack on 64 bit

strace of nethack on 64 bit as normal user
Comment 2 Andreas Vetter 2006-01-05 12:37:01 UTC
any progress?
Comment 3 Michal Marek 2006-02-14 13:36:35 UTC
The problem was that SuSEconfig expected the nethack.tty to be in 
/usr/lib/nethack (where it should be) and not in /usr/lib64/nethack. I fixed it
for next release (and for Factory).