pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Emre Hasegeli <emre@hasegeli.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8271: Configure warning: sys/ucred.h: present but cannot be compiled
Date: Mon, 1 Jul 2013 15:49:45 +0200
Message-ID: <20130701134945.GS11516@alap2.anarazel.de> (raw)
In-Reply-To: <18842.1372684763@sss.pgh.pa.us>
References: <20130630131720.GM11516@alap2.anarazel.de>
	<20130630132032.GN11516@alap2.anarazel.de>
	<51D034CE.2050608@dunslane.net>
	<7051.1372600177@sss.pgh.pa.us>
	<51D03E0E.7020908@dunslane.net>
	<20130630150701.GO11516@alap2.anarazel.de>
	<51D04C96.3030108@dunslane.net>
	<20130630152612.GP11516@alap2.anarazel.de>
	<51D17FD5.2030400@gmx.net>
	<18842.1372684763@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2013-07-01 09:19:23 -0400, Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > On 6/30/13 11:26 AM, Andres Freund wrote:
> >> If we would treat that warning as an error unconditionally - and I am
> >> not sure how easy that is given the way it's emitted - users
> >> encountering them, which usually will be on less common platforms, will
> >> have to patch configure.in to make things work for them. Which is a high
> >> bar.
> 
> > We could also look into updating Autoconf.  Newer versions proceed with
> > the compiler's result.  At that point, you can essentially ignore the
> > warning.

While it has other benefits, changing whether autoconf believes the
precompiler or the compiler doesn't seem to fix the issue of tests that
fail silently (as in, don't abort autoconf) because we missed to include
prerequisite headers.
And it doesn't seem to make it neither easier, nor harder for users to
fix configure.in, so unconditionally throwing an hard error even if we
could manage it would still not a good solution.

> AFAICT, the result in this case would be that the script comes to the
> wrong conclusion about whether ucred.h is available.  Wouldn't that
> result in a build failure, or at least missing features?  IOW, don't
> we need to fix this test anyway?

Yes, we need to. I vote for applying something similar to what I
proposed upthread. If we can get rid of some redundancy by using a newer
autoconf we need to touch far more than this tiny bit...

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (26+ messages)  latest in thread

Message-ID: <20130701134945.GS11516@alap2.anarazel.de>
Permalink:  ../20130701134945.GS11516@alap2.anarazel.de/
Also on:    postgresql.org/message-id/20130701134945.GS11516@alap2.anarazel.de

 · 

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: andres@2ndquadrant.com, tgl@sss.pgh.pa.us, peter_e@gmx.net, andrew@dunslane.net, emre@hasegeli.com
  Subject: Re: BUG #8271: Configure warning: sys/ucred.h: present but cannot be compiled
  In-Reply-To: <20130701134945.GS11516@alap2.anarazel.de>
  References: <20130630131720.GM11516@alap2.anarazel.de> <20130630132032.GN11516@alap2.anarazel.de> <51D034CE.2050608@dunslane.net> <7051.1372600177@sss.pgh.pa.us> <51D03E0E.7020908@dunslane.net> <20130630150701.GO11516@alap2.anarazel.de> <51D04C96.3030108@dunslane.net> <20130630152612.GP11516@alap2.anarazel.de> <51D17FD5.2030400@gmx.net> <18842.1372684763@sss.pgh.pa.us> <20130701134945.GS11516@alap2.anarazel.de>

* 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