FreeBSD 4.2 readlib issue

Started by PostgreSQL Bugs Listover 25 years ago2 messagesbugs
Jump to latest
#1PostgreSQL Bugs List
pgsql-bugs@postgresql.org

Branson Matheson (branson@ferguson.com) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
FreeBSD 4.2 readlib issue

Long Description
Compiling under freebsd gives this problem:
gcc -I../../include -I../../backend -O2 -m486 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -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 -lcrypt -lcompat -lln -lm -lutil -lreadline -ltermcap -lncurses -export-dynamic
tab-complete.o: In function `psql_completion':
tab-complete.o(.text+0x53): undefined reference to `rl_completion_append_character'
tab-complete.o(.text+0x1496): undefined reference to `rl_completion_append_character'

Sample Code

No file was uploaded with this report

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PostgreSQL Bugs List (#1)
Re: FreeBSD 4.2 readlib issue

pgsql-bugs@postgresql.org writes:

tab-complete.o: In function `psql_completion':
tab-complete.o(.text+0x53): undefined reference to `rl_completion_append_character'
tab-complete.o(.text+0x1496): undefined reference to `rl_completion_append_character'

What Postgres version are you using? There's been a configure test for
ancient libreadlines without rl_completion_append_character in there for
awhile now.

If you don't want to update your postgres, updating your libreadline
would work too ;-)

regards, tom lane