Lately I've been running into a brickwall everytime my kamakazi svn tries to compile the ncurses library.  The errors look like this:

cd ../objects;  gcc -I../ncurses -I.  -DNDEBUG -I. -I../include -DHAVE_CONFIG_H -O2  -c ../ncurses/comp_captab.c
../ncurses/comp_captab.c: In function `_nc_get_table':
../ncurses/comp_captab.c:73: error: `_nc_cap_table' undeclared (first use in this function)
../ncurses/comp_captab.c:73: error: (Each undeclared identifier is reported only once
../ncurses/comp_captab.c:73: error: for each function it appears in.)
../ncurses/comp_captab.c:73: error: `_nc_info_table' undeclared (first use in this function)
make[6]: *** [../objects/comp_captab.o] Error 1
make[6]: Leaving directory `/crosscompile/svn/trunk/openwrt/build_mipsel/ncurses-5.2/ncurses'
make[5]: *** [libs] Error 2

As if I'm not linking one of the libs its dependent upon in properly, yet my LD_LIBRARY_PATH looks as I think it should:

LD_LIBRARY_PATH="$build_mipsel/libpcap/libpcap-0.9.4:$staging/lib:$staging/usr/lib:$base/toolchain_build_mipsel/uClibc-0.9.28/lib:$PATH"

with $build_mipsel being the path to the mipsel directory just under the openwrt root directory.

Can anyone provide a hint as to what I might be overlooking?  Thanks in advanced.