From dwj@aaronsrod.com Tue Jun 9 07:46:31 1998 From: dwj@aaronsrod.com To: users@lists.opensuse.org Subject: [S.u.S.E. Linux] 'tputs' missing in PostgreSQL compile Date: Tue, 09 Jun 1998 00:46:31 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5513465829524120283==" --===============5513465829524120283== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit I am on SuSE 5.2 attempting to compile postgresql-6.3.2. It fails here: gcc -o psql -L../../interfaces/libpq psql.o stringutils.o \ -lpq -ldl -lm -lbsd -lreadline -lhistory -export-dynamic /usr/lib/libreadline.a(display.o): In function `rl_redisplay': display.o(.text+0x9bf): undefined reference to `tputs' According to a Usenet post, tputs is in libncurses. But I have libncurses installed: # rpm -q ncurses ncurses-4.2-1 Can anyone give me a clue how to fix this? Thanks, Dwight -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e --===============5513465829524120283==-- From ke@suse.de Fri Jun 12 14:11:55 1998 From: ke@suse.de To: users@lists.opensuse.org Subject: Re: [S.u.S.E. Linux] 'tputs' missing in PostgreSQL compile Date: Fri, 12 Jun 1998 16:11:55 +0200 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4138304754659055022==" --===============4138304754659055022== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Dwight Johnson writes: | gcc -o psql -L../../interfaces/libpq psql.o stringutils.o \ | -lpq -ldl -lm -lbsd -lreadline -lhistory -export-dynamic=20 | /usr/lib/libreadline.a(display.o): In function `rl_redisplay': | display.o(.text+0x9bf): undefined reference to `tputs' | =20 | According to a Usenet post, tputs is in libncurses. But I have | libncurses installed: | =20 | # rpm -q ncurses | ncurses-4.2-1 | =20 | Can anyone give me a clue how to fix this? The following patch should fix it; after applying, please run `autoconf' again. *** postgresql-6.3.2/src/configure.in~ Fri Apr 17 09:00:46 1998 --- postgresql-6.3.2/src/configure.in Mon May 11 17:37:34 1998 *************** *** 305,311 **** dnl fi dnl AC_SUBST(HAVECXX) dnl **************************************************************** ! HAVECXX=3D'HAVE_Cplusplus=3Dfalse' AC_SUBST(HAVECXX) INSTALLPATH=3D"/usr/ucb:$PATH" AC_PATH_PROGS(INSTALL, ginstall installbsd bsdinst scoinst install, NONE, $= INSTALLPATH) --- 305,311 ---- dnl fi dnl AC_SUBST(HAVECXX) dnl **************************************************************** ! HAVECXX=3D'HAVE_Cplusplus=3Dtrue' AC_SUBST(HAVECXX) INSTALLPATH=3D"/usr/ucb:$PATH" AC_PATH_PROGS(INSTALL, ginstall installbsd bsdinst scoinst install, NONE, $= INSTALLPATH) *************** *** 400,406 **** fi =20 AC_CHECK_LIB(sfio, main) ! AC_CHECK_LIB(curses, main) AC_CHECK_LIB(termcap, main) AC_CHECK_LIB(history, main) AC_CHECK_LIB(readline, main) --- 400,409 ---- fi =20 AC_CHECK_LIB(sfio, main) ! for curses in ncurses curses ; do ! AC_CHECK_LIB(${curses}, main, ! [LIBS=3D"-l${curses} $LIBS"; break]) ! done AC_CHECK_LIB(termcap, main) AC_CHECK_LIB(history, main) AC_CHECK_LIB(readline, main) --=20 Karl Eichwalder S.u.S.E. GmbH Fax +49-911-3206727 ke@suse.de Gebhardtstrasse 2 Mo & Th 13:00-18:00: http://www.s= use.de> 90762 Fuerth, Germany Hotline +49-911-3247130 -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e --===============4138304754659055022==--