Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2M4K-0001Bb-1Z for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jul 2013 13:59:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V2M4J-00082g-Eg for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jul 2013 13:58:59 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2M4I-00082a-Pw for pgsql-bugs@postgresql.org; Thu, 25 Jul 2013 13:58:58 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2M4F-0003KC-B5 for pgsql-bugs@postgresql.org; Thu, 25 Jul 2013 13:58:58 +0000 Received: from intern.anarazel.de (p54AF4DFA.dip0.t-ipconnect.de [84.175.77.250]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 9119C4E8003; Thu, 25 Jul 2013 15:58:54 +0200 (CEST) Date: Thu, 25 Jul 2013 15:58:54 +0200 From: Andres Freund To: Tom Lane Cc: Emre Hasegeli , Andrew Dunstan , pgsql-bugs@postgresql.org Subject: Re: BUG #8271: Configure warning: sys/ucred.h: present but cannot be compiled Message-ID: <20130725135854.GD15081@alap2.anarazel.de> References: <20130630111930.GL11516@alap2.anarazel.de> <20130630131720.GM11516@alap2.anarazel.de> <20130725133200.GB15081@alap2.anarazel.de> <8197.1374760111@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8197.1374760111@sss.pgh.pa.us> X-Pg-Spam-Score: -0.7 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2013-07-25 09:48:31 -0400, Tom Lane wrote: > Andres Freund 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