View Single Post
Old November 27, 2013, 01:55   #1
Join Date: Nov 2013
Posts: 4
gangli is on a distinguished road
Compiling 3.4.1 fails on Debian Wheezy

This is the first time i'm poking around in Angband caverns since the olden days of the menacing presence of Thangorodrim.... and I'd love to elaborate on the countless hours wasted dungeon crawling through Zangband and Angband, but more urgent matters prompted me to have a look here. So, I'm not happy with the official Debian Wheezy package of Angband (I believe it's 3.3 something) . That's why I'm trying to compile it myself from the source ver 3.4.1

I've both ncurses and ncursesw (and both bin and dev pkgs) installed on the system (as mentioned before : Debian Wheezy, 64bit).

The "./configure" line is as follows:
CFLAGS="-O3 -mtune=native" ./configure --prefix=$HOME/local/ --with-x --with-ncurses-prefix="/lib/x86_64-linux-gnu" --with-ncurses-exec-prefix="/usr"
The make fails _after_ building main-gcu.c with the following type of error messages:

main-gcu.c:(.text+0x628): undefined reference to `stdscr'
main-gcu.c:(.text+0x630): undefined reference to `wgetch'
main-gcu.c:(.text+0x641): undefined reference to `cbreak'
main-gcu.c:(.text+0x667): undefined reference to `stdscr'
main-gcu.c:(.text+0x674): undefined reference to `nodelay'
main-gcu.c:(.text+0x67b): undefined reference to `stdscr'
main-gcu.c:(.text+0x683): undefined reference to `wgetch'
main-gcu.c:(.text+0x6a2): undefined reference to `stdscr'
main-gcu.c:(.text+0x6aa): undefined reference to `wgetch'
main-gcu.c:(.text+0x751): undefined reference to `ungetch'
Obviously some library is either missing, or its link path is missing/wrong. I hope you people can point to a solution.
gangli is offline   Reply With Quote