readline/libedit selection - Mailing list pgsql-hackers

From Kris Jurka
Subject readline/libedit selection
Date
Msg-id Pine.BSO.4.56.0412020004150.17806@leary.csoft.net
Whole thread Raw
Responses Re: readline/libedit selection
Re: readline/libedit selection
List pgsql-hackers
This recent change to readline/libedit selection isn't quite right.

http://archives.postgresql.org/pgsql-committers/2004-11/msg00330.php

It doesn't link in libtermcap with libedit which leads to:

checking for readline.h... no
configure: error: readline header not found
If you have libedit already installed, see config.log for details on the
failure.  It is possible the compiler isn't looking in the proper 
directory.
Use --without-readline to disable libedit support.

And in config.log:

configure:5987: gcc -o conftest -O2 -Wall -Wmissing-prototypes 
-Wpointer-arith -fno-strict-aliasing conftest.c -ledit -lcrypt -lresolv
-lcompat -lm -lutil >&5
/usr/lib/libedit.so: undefined reference to `tgetnum'
/usr/lib/libedit.so: undefined reference to `tgoto'
/usr/lib/libedit.so: undefined reference to `tgetflag'
/usr/lib/libedit.so: undefined reference to `tputs'
/usr/lib/libedit.so: undefined reference to `tgetent'
/usr/lib/libedit.so: undefined reference to `tgetstr'

This is on x86 NetBSD 1.6.

Kris Jurka


pgsql-hackers by date:

Previous
From: Neil Conway
Date:
Subject: Re: lwlocks and starvation
Next
From: Manfred Spraul
Date:
Subject: Re: libpq and psql not on same page about SIGPIPE