I'm running NetBSD 5.0.1 and I can't get Mangband to compile. I tried compiling with USE_GCU, USE_CAP, and USEHARDCODE and none of them worked. I don't have x11 or sdl, but it should compile without these, so I'm not sure what's wrong.
Make log: http://pastebin.com/TFqZSeth
Configure log: http://pastebin.com/tkuTNZeg
Compiling on NetBSD
Re: Compiling on NetBSD
Hi there!
Two following changes are to be done to allow NetBSD compile with base libcurses:
1. Remove/comment '#define USE_NCURSES' from src/config.h
2. Apply the following patch:
Thank you for bringing this to our attention. Next version will have those fixes included and will probably support BSD make as well.
Notes:
This probably won't work if you have ncurses installed from pkgsrc.
Your machine hostname MUST be specified and non-empty for client not to crash.
CAP client is not to be used and is unsupported for a very long time now :(
Two following changes are to be done to allow NetBSD compile with base libcurses:
1. Remove/comment '#define USE_NCURSES' from src/config.h
2. Apply the following patch:
Code: Select all
--- src/client/main-gcu.c 2009-04-27 18:52:36.000000000 +0400
+++ src/client/main-gcu.c 2010-08-09 05:04:15.000000000 +0400
@@ -491,7 +491,7 @@
mvcur(curscr->cury, curscr->curx, LINES - 1, 0);
#else
/* this moves curses to bottom right corner */
- mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0);
+ mvcur(getcury(curscr), getcurx(curscr), LINES - 1, 0);
#endif
/* Exit curses */
@@ -569,7 +569,7 @@
mvcur(curscr->cury, curscr->curx, LINES - 1, 0);
#else
/* This moves curses to bottom right corner */
- mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0);
+ mvcur(getcury(curscr), getcurx(curscr), LINES - 1, 0);
#endif
/* Flush the curses buffer */
Notes:
This probably won't work if you have ncurses installed from pkgsrc.
Your machine hostname MUST be specified and non-empty for client not to crash.
CAP client is not to be used and is unsupported for a very long time now :(