9.1 (git head) does not compile using --with-libedit-preferred on Ubuntu 10.10

Поиск
Список
Период
Сортировка
От Mark Kirkwood
Тема 9.1 (git head) does not compile using --with-libedit-preferred on Ubuntu 10.10
Дата
Msg-id 4D5B2C5A.8090506@catalyst.net.nz
обсуждение исходный текст
Ответы Re: 9.1 (git head) does not compile using --with-libedit-preferred on Ubuntu 10.10  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Since libedit is getting some attention right now, I figured I'd try 
using building with it instead of readline. configuring using:

./configure --prefix=/usr/local/pgsql/9.1 --enable-debug 
--enable-cassert --with-libedit-preferred

I get this linking postgres:

postmaster/postmaster.o: In function `PostmasterMain':
/home/postgres/develop/c/postgresql/src/backend/postmaster/postmaster.c:755: 
undefined reference to `optreset'
tcop/postgres.o: In function `process_postgres_switches':
/home/postgres/develop/c/postgresql/src/backend/tcop/postgres.c:3457: 
undefined reference to `optreset'
utils/misc/ps_status.o: In function `set_ps_display':
/home/postgres/develop/c/postgresql/src/backend/utils/misc/ps_status.c:314: 
undefined reference to `setproctitle'

What seems to be going on is that libedit defines optreset, which then 
messes up the various other bits of logic in utils/misc/ps_status.c so 
it thinks it has setproctitle on Linux. The other files 
postmaster/postmaster.c and tcop/postgres.c get tricked into thinking 
they have optreset.

I'm not sure how important this is, given that even if I (bodge) these 
errors away, I merely confirm that libedit multi-byte input is busted in 
the version shipped with Ubuntu 10.10.

Cheers

Mark



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: updated patch for foreach stmt
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 9.1 (git head) does not compile using --with-libedit-preferred on Ubuntu 10.10