Re: Static build of psql with readline support - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Static build of psql with readline support
Date
Msg-id 11784.1142477736@sss.pgh.pa.us
Whole thread Raw
In response to Static build of psql with readline support  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Static build of psql with readline support
Next
From: Mark Kirkwood
Date:
Subject: Re: Static build of psql with readline support