linking with readline

Поиск
Список
Период
Сортировка
От PC Drew
Тема linking with readline
Дата
Msg-id 008d01c1323e$30246fe0$0200000a@FSI.FARRAGUT.COM
обсуждение исходный текст
Ответы Re: linking with readline
Список pgsql-bugs
I did the usual ./configure; make; make install and everything worked like a
charm.  I continued to install the way the INSTALL file said and went to
connect to the database using psql and here's what happened:

[big:~] > ./psql www
Welcome to psql, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

/usr/libexec/ld.so: Undefined symbol "_tgetent" called from
psql:/usr/lib/libreadline.so.4.2 at 0x40089934

I tried upgrading the stock version of libreadline on OpenBSD to the latest
version, recompiled PostgreSQL and the same thing happened.

After doing a little research, I found that tgetent is in the termcap
library.  When I added -ltermcap to the following line in
src/Makefile.global:

LIBS = -lz -lresolv -lcompat -lm -lutil -ltermcap -lreadline

then recompiled psql, here's what happend:

[big:~/postgresql-7.1.3/src/bin/psql] > ./psql www
Welcome to psql, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

www=#

and ldd shows:

[big:~/postgresql-7.1.3/src/bin/psql] > ldd psql
psql:
        -lpq.2 => /usr/local/pgsql/lib/libpq.so.2.1 (0x40034000)
        -lz.1 => /usr/lib/libz.so.1.3 (0x40041000)
        -lm.0 => /usr/lib/libm.so.0.1 (0x4004d000)
        -lutil.6 => /usr/lib/libutil.so.6.0 (0x40061000)
        -ltermcap.8 => /usr/lib/libtermcap.so.8.0 (0x4006b000)
        -lreadline.4 => /usr/lib/libreadline.so.4.2 (0x400aa000)
        -lc.26 => /usr/lib/libc.so.26.2 (0x400cd000)

I don't know if this will help or if it's a legitimate bug, but it works for
me!

--
PC Drew

Superior Communications
1455 Dixon Ave, Suite 310
Lafayette, CO 80026

Phone: (720) 841-4543
Email: pc@superiorcomm.net

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Bug #432: Macaddr accepts empty string
Следующее
От: lmailles@visionforisrael.com
Дата:
Сообщение: Non-escaped single quotes in pgaccess