Package Details: nethack-x11 3.6.6-1

Git Clone URL: (read-only, click to copy)
Package Base: nethack-x11
Description: Single-player roguelike dungeon exploration game (X11 version)
Upstream URL:
Keywords: game nethack X11
Licenses: custom
Conflicts: nethack
Submitter: None
Maintainer: Forty-Bot
Last Packager: Forty-Bot
Votes: 32
Popularity: 0.98
First Submitted: 2008-07-03 18:01 (UTC)
Last Updated: 2023-02-12 16:05 (UTC)

Latest Comments

1 2 3 4 Next › Last »

ventodc commented on 2023-02-11 14:43 (UTC)

Thanks to kyechou patch, managed to build. The package needs to be updated.

kyechou commented on 2022-09-06 22:07 (UTC)

I encountered the same compilation issue as @tenebraus did. Here's a patch to fix the problem:

diff --git a/include/tradstdc.h b/include/tradstdc.h
index 12a0d4a..710a89d 100644
--- a/include/tradstdc.h
+++ b/include/tradstdc.h
@@ -431,7 +431,7 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */
 #define NORETURN __attribute__((noreturn))
 /* disable gcc's __attribute__((__warn_unused_result__)) since explicitly
    discarding the result by casting to (void) is not accepted as a 'use' */
-#define __warn_unused_result__ /*empty*/
+#define __warn_unused_result__ __unused__
 #define warn_unused_result /*empty*/

tenebraus commented on 2022-08-21 22:47 (UTC)

Hey, I'm having trouble compiling this package. Here goes the log below. It has something to do with cdefs.h, and I'm not sure if it's in my end or in the package's.

==> Criando o pacote: nethack-x11 3.6.6-1 (dom 21 ago 2022 19:45:17)
==> Verificando as dependências de tempo de execução...
==> Verificando as dependências de tempo de compilação...
==> Obtendo fontes...
  -> Encontrado nethack-366-src.tgz
  -> Encontrado nethack-x11.patch
  -> Encontrado nethack-x11.png
==> Validando source arquivos com sha256sums...
    nethack-366-src.tgz ... Passou
    nethack-x11.patch ... Passou
    nethack-x11.png ... Passou
==> Extraindo fontes...
  -> Extraindo nethack-366-src.tgz com bsdtar
==> Iniciando prepare()...
[nethack-x11]                     Generating desktop file... ok
patching file include/config.h
patching file include/unixconf.h
patching file src/invent.c
Hunk #1 succeeded at 3532 (offset 49 lines).
patching file sys/unix/Makefile.src
patching file sys/unix/
==> Removendo diretório $pkgdir/ existente...
==> Iniciando build()...
( cd src ; make )
make[1]: Entrando no diretório '/Seagate/Downloads/nethack-x11/src/NetHack-NetHack-3.6.6_Released/src'

touch ../src/config.h-t
cc -g -O -I../include -DNOTPARMDECL -DDLB -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DSYSCF -DSYSCF_FILE=\"/var/games/nethack/sysconf\" -DSECURE -DTIMED_DELAY -DHACKDIR=\"/var/games/nethack/\" -DDUMPLOG -DCONFIG_ERROR_SECURE=FALSE -c monst.c
In file included from monst.c:6:
../include/config.h:314: warning: "DLB" re-definido
  314 | #define DLB /* not supported on all platforms */
<command-line>: note: essa é a localização da definição anterior
../include/config.h:365: warning: "SECURE" re-definido
  365 | #define SECURE /* do setuid(getuid()) after chdir() */
<command-line>: note: essa é a localização da definição anterior
In file included from /usr/include/features.h:490,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../include/global.h:9,
                 from ../include/config.h:581:
/usr/include/sys/cdefs.h:405:73: error: macro "__has_attribute" requires an identifier
  405 | #if __GNUC_PREREQ (3,4) || __glibc_has_attribute (__warn_unused_result__)
      |                                                                         ^
In file included from ../include/global.h:136:
../include/unixconf.h:136: warning: "TIMED_DELAY" re-definido
  136 | #define TIMED_DELAY /* usleep() */
<command-line>: note: essa é a localização da definição anterior
make[1]: *** [Makefile:657: monst.o] Erro 1
make[1]: Saindo do diretório '/Seagate/Downloads/nethack-x11/src/NetHack-NetHack-3.6.6_Released/src'

make: *** [Makefile:161: nethack] Erro 2
==> ERRO: Uma falha ocorreu em build().

Forty-Bot commented on 2020-10-04 12:23 (UTC)

Hi jfcg, thanks for showing interest in this package.

  • Alternate tilesets are outside the scope of this package. If you would like to add some, feel free to fork this package :)
  • You can set numpad in-game with shift-O, or in your .nethackrc. If you would like to change the defaults, I suggest creating a patch upstream.

jfcg commented on 2020-10-04 10:00 (UTC)


Thanks for the nethack-x11 package. I have some suggestions to improve first time user experience:

  • 32x32 tilesets ( Dawnhack looks more appealing than the default 32x32 tileset. Nevanda looks even better but after converting it to xpm file and replacing x11tiles with it, nethack-x11 does not start. Also options "fullscreen, tile_width:32, tile_height:32" in /etc/nethackrc are necessary for bigger tiles.

  • number_pad:1 option would be more reasonable for easy navigation since this is a gui package.

  • pickup_types:$?!/="+ looks like a reasonable pickup default (

  • when i run nethack-x11 on my current / updated Manjaro laptop, I see messages at the top, map in the middle and status at the bottom as 3 rows. I think it would be much better if messages appear on the bottom right (next to status), and the map covers the mid and upper section of the screen. I tried align_message and align_status options but they did not work (


revealer commented on 2020-05-05 21:50 (UTC)

I have xorg-fonts-misc installed as I saw it as a possible solution on other sites.

Forty-Bot commented on 2020-05-05 20:04 (UTC)

Do you have xorg-fonts-misc installed? If that solves your issue I'll add it as a dependency.

revealer commented on 2020-05-05 18:53 (UTC) (edited on 2020-05-05 19:17 (UTC) by revealer)

The game is not starting:


Warning: Cannot convert string "--fixed-medium----15-------*" to type FontStruct

Warning: Unable to load any usable ISO8859 font

Warning: Unable to load any usable ISO8859 font

Segmentation fault```

Forty-Bot commented on 2020-04-19 15:03 (UTC)

@teeahr1 what error message do you get when running as a normal user?

Have you tried running strace on it?

teeahr1 commented on 2020-03-11 19:25 (UTC)

I can only launch the game as root. Anyone else having this problem?