Re: foreign key from array element

Поиск
Список
Период
Сортировка
Искать
От
Rafal Pietrak
Тема
Re: foreign key from array element
Дата
Msg-id
1348085135.21898.301.camel@localhost.localdomain
Ответ на
Список
Дерево обсуждения
foreign key from array element Rafal Pietrak <rafal@zorro.isa-geek.com>
Re: foreign key from array element Craig Ringer <ringerc@ringerc.id.au>
Re: foreign key from array element Rafal Pietrak <rafal@zorro.isa-geek.com>
Re: foreign key from array element Merlin Moncure <mmoncure@gmail.com>
Re: foreign key from array element Rafal Pietrak <rafal@zorro.isa-geek.com>
Re: foreign key from array element "Albe Laurenz" <laurenz.albe@wien.gv.at>
Re: foreign key from array element Rafal Pietrak <rafal@zorro.isa-geek.com>
Re: foreign key from array element Gabriele Bartolini <gabriele.bartolini@2ndQuadrant.it>
Re: foreign key from array element Rafal Pietrak <rafal@zorro.isa-geek.com>
Re: foreign key from array element "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: foreign key from array element Rafal Pietrak <rafal@zorro.isa-geek.com>
Re: foreign key from array element Tom Lane <tgl@sss.pgh.pa.us>
Re: foreign key from array element Rafal Pietrak <rafal@zorro.isa-geek.com>
Re: foreign key from array element Gabriele Bartolini <Gabriele.Bartolini@2ndQuadrant.it>
Re: foreign key from array element Chris Travers <chris.travers@gmail.com>
Re: foreign key from array element Gabriele Bartolini <Gabriele.Bartolini@2ndQuadrant.it>
Re: foreign key from array element Chris Travers <chris.travers@gmail.com>
Re: foreign key from array element Rafal Pietrak <rafal@zorro.isa-geek.com>
Re: foreign key from array element Gabriele Bartolini <gabriele.bartolini@2ndQuadrant.it>
Re: foreign key from array element Chris Travers <chris.travers@gmail.com>
On Tue, 2012-09-18 at 18:39 -0400, Tom Lane wrote:
> Rafal Pietrak  writes:
> > postmaster/postmaster.o: In function `PostmasterMain':^M
> > postmaster.c:(.text+0x4bc8): undefined reference to `optreset'^M
> > tcop/postgres.o: In function `process_postgres_switches':^M
> > postgres.c:(.text+0x1422): undefined reference to `optreset'^M
> > utils/misc/ps_status.o: In function `set_ps_display':^M
> > ps_status.c:(.text+0xd4): undefined reference to `setproctitle'^M
> > collect2: ld returned 1 exit status^M
> > make[2]: *** [postgres] Error 1^M
> 
> We've heard of this happening as a result of libedit pulling in libbsd,
> which provides (broken) versions of these symbols and thus confuses
> configure into thinking they're present.  The "-ledit" in your link line
> suggests that you are linking to libedit, but the rest of that is just
> guesswork.  I'd suggest installing readline to see if the problem goes
> away.
> 
> Here's a previous report:
> http://archives.postgresql.org/pgsql-general/2011-11/msg00790.php
> 
> 			regards, tom lane

Thenx. The readline trail worked for me too, but in a somewhat different
way (I haven't read the full thread before trying):

1. in my case: this is debian-squeeze, not ubuntu; but this should not
really matter.

2. initially, I've pulled all the build dependencies for postgresql-8.4,
as they are in debian source package. This installed libedit-dev, and
consequently my initial failure.

3. so after having this libedit/readline hint, I've purged libedit-dev,
and installed readline6-dev instead (didn't have to build it from
sources).

4. this didn't help

5. but running ./configure --with-readline did. and the build ended up
cleanly.

What puzzles me, is that in "configure.in:675", the selection of libedit
v.s. readline is commented with a timemark dated 2004 - since then
things should have changed in those libs, shouldn't they? And then, the
comment proceeds a test which is only taken on win32 architecture, but
then follows libedit preference for everybody. Was this libedit/readline
issue just the case for win32? and is it still valid? 

-R


В списке pgsql-general по дате отправления
От: Mike Roest
Дата:
От: hubert depesz lubaczewski
Дата:
FAQ