From: Andres Freund <andres@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Emre Hasegeli <emre@hasegeli.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8271: Configure warning: sys/ucred.h: present but cannot be compiled
Date: Thu, 25 Jul 2013 15:58:54 +0200
Message-ID: <20130725135854.GD15081@alap2.anarazel.de> (raw)
In-Reply-To: <8197.1374760111@sss.pgh.pa.us>
References: <E1UtF6j-0005B2-Ob@wrigleys.postgresql.org>
<20130630111930.GL11516@alap2.anarazel.de>
<CAE2gYzzA_GuLONnvJhohi=A3x6+Xmf0mkZaCs0Pqi=KBUi74Bw@mail.gmail.com>
<20130630131720.GM11516@alap2.anarazel.de>
<20130725133200.GB15081@alap2.anarazel.de>
<8197.1374760111@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2013-07-25 09:48:31 -0400, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
> >> Before that commit the checks for cmsgcred which includes sys/ucred.h
> >> happened to include params.h... Patch attached, missing the configure
> >> update since I don't have a compatible autoconf on my laptop, to produce
> >> a minimal diff.
>
> > Could somebody apply the fix (including regenerating /configure)?
>
> The proposed patch seems a bit overcomplicated --- isn't the real
> problem that I changed the ordering of the header probes in
> be4585b1c27ac5dbdd0d61740d18f7ad9a00e268? I think I just alphabetized
> them in a fit of neatnik-ism, not realizing that there were order
> dependencies on some platforms.
Hm. It very well might be too complicated. I am not exactly a autoconf
expert...
The problem is that you can't include sys/ucred.h on some platforms
(e.g. openbsd) without first including sys/params.h because the
resulting file won't compile. Unless I misunderstood what you propose a
different order in that AC_CHECK_HEADERS() shouldn't help getting it
there?
Maybe we could get rid of the two separate tests that now use
HAVE_SYS_PARAM_H - I just tried to followed the surrounding patterns.
FWIW I have confirmation via private emails that the patch works at
least on openbsd...
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
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, emre@hasegeli.com, andrew@dunslane.net
Subject: Re: BUG #8271: Configure warning: sys/ucred.h: present but cannot be compiled
In-Reply-To: <20130725135854.GD15081@alap2.anarazel.de>
References: <E1UtF6j-0005B2-Ob@wrigleys.postgresql.org> <20130630111930.GL11516@alap2.anarazel.de> <CAE2gYzzA_GuLONnvJhohi=A3x6+Xmf0mkZaCs0Pqi=KBUi74Bw@mail.gmail.com> <20130630131720.GM11516@alap2.anarazel.de> <20130725133200.GB15081@alap2.anarazel.de> <8197.1374760111@sss.pgh.pa.us> <20130725135854.GD15081@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