undefined reference to '__waddbytes'

When compiling GRASS 5 source code:
>> >> ..../src/libes/vask/V_call.c:150: undefined reference to '__waddbytes'
>> >> ..../src/libes/vask/V_call.c:160: undefined reference to '__waddbytes'
>> >> ..../src/libes/vask/V_call.c:168: undefined reference to '__waddbytes'
>> >> ..../src/libes/vask/V_call.c:178: undefined reference to '__waddbytes'
>> >> ..../src/libes/vask/V_call.c:223: undefined reference to '__waddbytes'
>> >> ..../src/libes/vask/V_call.c:296: undefined reference to '__waddbytes'

Hi all (having this problem when compiling GRASS),

please try following:

cd src/libes/vask/
edit V_call.c

Go to "#include section" and add the statement:

#include <curses.h>

Please tell me if it compiles then. You need libncurses4.2 installed
(libncurses5 should work as well).

Regards

Markus Neteler