X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 8D2E7D1C513 for ; Fri, 8 Aug 2003 06:08:31 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 92055-04 for ; Fri, 8 Aug 2003 03:07:03 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 3DBE7D1C4B9 for ; Fri, 8 Aug 2003 03:08:17 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h7868HK12793; Fri, 8 Aug 2003 02:08:17 -0400 (EDT) From: Bruce Momjian Message-Id: <200308080608.h7868HK12793@candle.pha.pa.us> Subject: Re: readline missing on linux? In-Reply-To: <3F32AE02.5070808@qwest.net> To: Randolph Jones Date: Fri, 8 Aug 2003 02:08:17 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/110 X-Sequence-Number: 9833 It appears your readline needs -ltermcap, -lterminfo, or -lcurses to link properly. I think this happens when the readline library is not linked against those when it is created. --------------------------------------------------------------------------- Randolph Jones wrote: > I am getting configure failures due to missing readline. > I have redhat 9, 2.4.21, with readline and readline-devel 2.4.2 installed. > I am trying to build 7.3.3 > Below is part of my config.log > Any help greatly appreciated > TIA > rfjones > > } > configure:5786: result: no > configure:5800: checking for readline > configure:5837: gcc -o conftest -O2 conftest.c -lreadline -lcrypt > -lresolv -lnsl -ldl -lm -lbsd >&5 > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so: > undefined reference to `tgetnum' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so: > undefined reference to `tgoto' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so: > undefined reference to `tgetflag' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so: > undefined reference to `BC' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so: > undefined reference to `tputs' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so: > undefined reference to `PC' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so: > undefined reference to `tgetent' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so: > undefined reference to `UP' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libreadline.so: > undefined reference to `tgetstr' > collect2: ld returned 1 exit status > configure:5840: $? = 1 > configure: failed program was: > #line 5811 "configure" > #include "confdefs.h" > > /* Override any gcc2 internal prototype to avoid an error. */ > #ifdef __cplusplus > extern "C" > #endif > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ > char readline (); > #ifdef F77_DUMMY_MAIN > # ifdef __cplusplus > extern "C" > # endif > int F77_DUMMY_MAIN() { return 1; } > #endif > int > main () > { > readline (); > ; > return 0; > } > configure:5837: gcc -o conftest -O2 conftest.c -ledit -lcrypt > -lresolv -lnsl -ldl -lm -lbsd >&5 > /usr/bin/ld: cannot find -ledit > collect2: ld returned 1 exit status > configure:5840: $? = 1 > configure: failed program was: > #line 5811 "configure" > #include "confdefs.h" > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073