From owner-freebsd-questions Fri Feb 16 20:50:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by hub.freebsd.org (Postfix) with SMTP id AF34E37B4EC for ; Fri, 16 Feb 2001 20:50:36 -0800 (PST) Received: from slip-12-64-12-209.mis.prserv.net (HELO boethius.yahoo.com) (12.64.12.209) by smtp.mail.vip.sc5.yahoo.com with SMTP; 17 Feb 2001 04:50:35 -0000 X-Apparently-From: Received: from anthony by boethius.yahoo.com with local (Exim 3.20) id 14TzNx-00087B-00 for ; Fri, 16 Feb 2001 22:54:17 -0600 Date: Fri, 16 Feb 2001 22:54:17 -0600 From: anthony kim To: freebsd-questions@freebsd.org Subject: SOLVED Re: postgresql7 psql error Message-ID: <20010216225416.A31127@yahoo.com> References: <20010214235559.A84410@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010214235559.A84410@yahoo.com>; from anthony@yahoo.com on Wed, Feb 14, 2001 at 11:55:59PM -0600 Organization: deus ex machina Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG A recursive diff revealed the problem. When postgresql7 options did not include SSL support, configure did not add -L/usr/lib to LDFLAGS in Makefile.global gmake failed to find the readline libraries. Man, I love FreeBSD. On Wed, Feb 14, 2001 at 11:55:59PM -0600, anthony kim wrote: >Why is it that the postgresql7 port fails to build psql? > >make install halts with: > >/usr/libexec/elf/strip: /usr/local/pgsql/bin/psql: No such file or >directory >*** Error code 1 > >I've tried for kicks: building with no options, then w/each option >one by one...then I chose the SSL option > >psql built just fine (postgresql wouldn't start without a certificate, >but that was expected). > >to test my theory: > ># cd /usr/ports/postgresql7 ># make deinstall ># rm -rf /usr/local/pgsql ># make install > >/usr/libexec/elf/strip: /usr/local/pgsql/bin/psql: No such file or >directory >*** Error code 1 > >then for a closer look I ># cd /usr/ports/databases/postgresql7/work/postgresql-7.0.3/src/bin/psql ># gmake > >attached is the output. > >uname -v >FreeBSD 4.2-STABLE #0: Mon Feb 12 19:43:32 CST 2001 > >thank you all, >anthony >Script started on Wed Feb 14 23:54:07 2001 >boethius# gmake >gmake -C ../../interfaces/libpq libpq.a >gmake[1]: Entering directory `/usr/ports/databases/postgresql7/work/postgresql-7.0.3/src/interfaces/libpq' >gmake[1]: `libpq.a' is up to date. >gmake[1]: Leaving directory `/usr/ports/databases/postgresql7/work/postgresql-7.0.3/src/interfaces/libpq' >cc -I../../include -I../../backend -I/usr/local/include -O -pipe -I../../interfaces/libpq -o psql command.o common.o help.o input.o stringutils.o mainloop.o copy.o startup.o prompt.o variables.o large_obj.o print.o describe.o tab-complete.o -L../../interfaces/libpq -lpq -L/usr/local/lib -lcrypt -lcompat -lln -lm -lutil -lhistory -lreadline -ltermcap -lncurses -lsfio -export-dynamic >tab-complete.o: In function `initialize_readline': >tab-complete.o(.text+0x9): undefined reference to `rl_readline_name' >tab-complete.o(.text+0xf): undefined reference to `rl_attempted_completion_function' >tab-complete.o(.text+0x19): undefined reference to `rl_special_prefixes' >tab-complete.o(.text+0x23): undefined reference to `rl_basic_word_break_characters' >tab-complete.o: In function `psql_completion': >tab-complete.o(.text+0x53): undefined reference to `rl_completion_append_character' >tab-complete.o(.text+0x1792): undefined reference to `completion_matches' >tab-complete.o(.text+0x17d0): undefined reference to `completion_matches' >tab-complete.o(.text+0x17df): undefined reference to `rl_completion_append_character' >tab-complete.o: In function `previous_word': >tab-complete.o(.text+0x1b4d): undefined reference to `rl_line_buffer' >tab-complete.o(.text+0x1b61): undefined reference to `rl_line_buffer' >tab-complete.o(.text+0x1b99): undefined reference to `rl_line_buffer' >tab-complete.o(.text+0x1c08): undefined reference to `rl_line_buffer' >gmake: *** [psql] Error 1 >boethius# exit >exit > >Script done on Wed Feb 14 23:54:11 2001 _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message