For some time now I have been trying to compile CVS zsh on a freebsd machine. It fails on Src/Modules/terminfo.c gcc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -DMODULE -Wall -Wmissing-prototypes -O2 -fPIC -o terminfo..o terminfo.c terminfo.c: In function `bin_echoti': terminfo.c:74: warning: implicit declaration of function `tigetnum' terminfo.c:79: warning: implicit declaration of function `tigetflag' terminfo.c:91: warning: implicit declaration of function `tigetstr' terminfo.c:117: warning: implicit declaration of function `putp' terminfo.c:119: warning: implicit declaration of function `tparm' terminfo.c: In function `boot_': terminfo.c:381: warning: implicit declaration of function `setupterm' terminfo.c:381: `ERR' undeclared (first use in this function) terminfo.c:381: (Each undeclared identifier is reported only once terminfo.c:381: for each function it appears in.) *** Error code 1 Stop in /usr/home/peta/src/zsh/Src/Modules. I find config.h has #defined neither HAVE_CURSES_H nor HAVE_TERM_H, but both these header files are in /usr/include, and both contain the missing declarations. If I #define HAVE_CURSES_H manually then it compiles and tests OK. % uname -a FreeBSD whaite.com 4.6-RELEASE FreeBSD 4.6-RELEASE #1: Wed Aug 28 15:22:40 EST 2002 root@whaite.com:/usr/src/sys/compile/WHAITE i386 config.log attached.