pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: chris@chrullrich.net
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6732: Build issue when using gettext on FreeBSD 9
Date: Mon, 16 Jul 2012 21:13:18 +0300
Message-ID: <1342462398.7129.5.camel@vanquo.pezone.net> (raw)
In-Reply-To: <E1SpLGp-0004cp-1w@wrigleys.postgresql.org>
References: <E1SpLGp-0004cp-1w@wrigleys.postgresql.org>

On tor, 2012-07-12 at 15:25 +0000, chris@chrullrich.net wrote:
> The PostgreSQL configure script indiscriminately enables the --as-needed
> option to the linker if the linker supports it, which GNU ld 2.17.50 in
> FreeBSD 9 does. It does not, however, use it in its own library checks. The
> configure script therefore fails to detect libintl as required; the check
> program links correctly because libintl is pulled in as an indirect
> dependency via libgssapi.

> Proposed fix: Use --as-needed during configure as well, or make its use
> predicated on a working linker version (GNU ld 2.22 or later).

Over the weekend I was investigating a separate but related issue on
Debian, which goes like this:

configure with --with-libedit-preferred, or have libedit but not
libreadline installed.  Because libedit is linked with libbsd, which
provides setproctitle, the check for function setproctitle succeeds.
Thus, ps_status.c is compiled using the setproctitle variant.  When
postgres is linked, however, we don't put libedit on the command line,
so the link fails.

The workaround/solution I came up with was also to put
LDFLAGS=-Wl,--as-needed on the configure command line to run the tests
with that flag as well.  With that, the setproctitle test fails.

To add insult to injury, the setproctitle implementation in libbsd is a
stub that doesn't do anything, so we definitely don't want to arrive at
a solution that ends up using it.





view thread (5+ messages)

Message-ID: <1342462398.7129.5.camel@vanquo.pezone.net>
Permalink:  ../1342462398.7129.5.camel@vanquo.pezone.net/
Also on:    postgresql.org/message-id/1342462398.7129.5.camel@vanquo.pezone.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: peter_e@gmx.net, chris@chrullrich.net
  Subject: Re: BUG #6732: Build issue when using gettext on FreeBSD 9
  In-Reply-To: <1342462398.7129.5.camel@vanquo.pezone.net>
  References: <E1SpLGp-0004cp-1w@wrigleys.postgresql.org> <1342462398.7129.5.camel@vanquo.pezone.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox