Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id B8F751E3525D for ; Thu, 12 Jul 2012 14:25:37 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SpN8y-0008GE-Qr for pgsql-bugs@postgresql.org; Thu, 12 Jul 2012 17:25:37 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q6CHPMaw029636; Thu, 12 Jul 2012 13:25:22 -0400 (EDT) From: Tom Lane To: chris@chrullrich.net cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6732: Build issue when using gettext on FreeBSD 9 In-reply-to: References: Comments: In-reply-to chris@chrullrich.net message dated "Thu, 12 Jul 2012 15:25:35 -0000" Date: Thu, 12 Jul 2012 13:25:22 -0400 Message-ID: <29635.1342113922@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/84 X-Sequence-Number: 33560 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