Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2001 22:54:17 -0600
From:      anthony kim <niceshorts@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   SOLVED Re: postgresql7 psql error
Message-ID:  <20010216225416.A31127@yahoo.com>
In-Reply-To: <20010214235559.A84410@yahoo.com>; from anthony@yahoo.com on Wed, Feb 14, 2001 at 11:55:59PM -0600
References:  <20010214235559.A84410@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010216225416.A31127>