pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: chris@chrullrich.net
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6732: Build issue when using gettext on FreeBSD 9
Date: Thu, 12 Jul 2012 13:25:22 -0400
Message-ID: <29635.1342113922@sss.pgh.pa.us> (raw)
In-Reply-To: <E1SpLGp-0004cp-1w@wrigleys.postgresql.org>
References: <E1SpLGp-0004cp-1w@wrigleys.postgresql.org>

chris@chrullrich.net writes:
> PostgreSQL 9.1 does not build on FreeBSD 9 if --enable-nls and a Heimdal
> Kerberos build from ports is used. The build fails due to undefined
> references to functions from gettext's libintl.

Ugh.

> Proposed workaround: Do not use --as-needed at all.

Not really acceptable ...

> 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).

... and I'm not sure I like either of those either.  The first seems
likely to introduce as many problems as it fixes, and I don't see a
reasonable way for the script to test whether --as-needed "works"
(for a value of "works" that's rather unclear anyway).

> ... configure therefore fails to detect libintl as required; the check
> program links correctly because libintl is pulled in as an indirect
> dependency via libgssapi.

Could we make the problem go away for you if we changed the order in
which these libraries are probed for?  That's a hack, surely, but it
seems like one much less likely to break other working cases than any
of the alternatives you suggest.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <29635.1342113922@sss.pgh.pa.us>
Permalink:  ../29635.1342113922@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29635.1342113922@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, chris@chrullrich.net
  Subject: Re: BUG #6732: Build issue when using gettext on FreeBSD 9
  In-Reply-To: <29635.1342113922@sss.pgh.pa.us>
  References: <E1SpLGp-0004cp-1w@wrigleys.postgresql.org> <29635.1342113922@sss.pgh.pa.us>

* 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