Here is a quick ebuild for nethack 3.4.1, have fun :-) Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 8777 [details] Don't forget to ebuild nethack-3.4.1.ebuild digest ;-)
I still get errors...here's the new one. gcc -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -I../include -c ../sys/unix/unixunix.c gcc -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -I../include -c ../sys/unix/unixres.c ../sys/unix/unixres.c: In function `real_getresuid': ../sys/unix/unixres.c:35: `RTLD_NEXT' undeclared (first use in this function) ../sys/unix/unixres.c:35: (Each undeclared identifier is reported only once ../sys/unix/unixres.c:35: for each function it appears in.) ../sys/unix/unixres.c: In function `real_getresgid': ../sys/unix/unixres.c:47: `RTLD_NEXT' undeclared (first use in this function) make: *** [unixres.o] Error 1 !!! ERROR: app-games/nethack-3.4.1 failed. !!! Function src_compile, Line 142, Exitcode 2 !!! (no error message) note: iv noticed nethack only bombs out if 'gnome' is included in the USE flags.
Strange... I didn't got any errors. Maybe because I don't emerge it with gnome nor qt.
To get the build to compile, I need to add _GNU_SOURCE to CFLAGS so that RTLD_NEXT gets defined (see <dlfcn.h>). Of course, it doesn't link because there are too many tile.o's linked in. Oops.
The build compiles well with USE="-gnome". I had to copy /usr/portage/app-games/nethack/files/dot.nethackrc to /usr/local/portage/app-games/nethack/files/ because I built from portage_overlay. The Qt version works now, any chance to get the Gnome interface to compile, too?
Bug #16827 has a patch to fix the issues with gnome compilation.
in cvs now
closing