Re: Static build of psql with readline support

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Static build of psql with readline support
Date: 2006-03-16 02:55:36
Message-ID: 11784.1142477736@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Kirkwood 2006-03-16 03:09:53 Re: Static build of psql with readline support
Previous Message Tom Lane 2006-03-16 02:05:24 Re: BETWEEN optimizer problems with single-value