Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> I've been trying to build the cvs checkout of 8.1.3 on my freebsd 4.9
> box with a STATIC psql utility. I keep getting failures trying to hook
> in libreadline I think:
> lreadline -lcrypt -lcompat -lm -lutil -o psql
> /usr/lib/libreadline.a(terminal.o): In function `_rl_get_screen_size':
> terminal.o(.text+0x84): undefined reference to `tgetnum'
> terminal.o(.text+0xdd): undefined reference to `tgetnum'
You seem to be missing the termcap or curses library in your link.
readline requires whichever of those your platform has.
regards, tom lane