Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2Non-0005is-Fn for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jul 2013 15:51:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V2Nom-0000Zq-1g for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jul 2013 15:51:04 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2Nod-0000Lt-8p for pgsql-bugs@postgresql.org; Thu, 25 Jul 2013 15:50:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2Noa-0005Q2-2S for pgsql-bugs@postgresql.org; Thu, 25 Jul 2013 15:50:54 +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 r6PFolrX019792; Thu, 25 Jul 2013 11:50:47 -0400 (EDT) From: Tom Lane To: Andres Freund cc: Emre Hasegeli , Andrew Dunstan , pgsql-bugs@postgresql.org Subject: Re: BUG #8271: Configure warning: sys/ucred.h: present but cannot be compiled In-reply-to: <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> <20130725135854.GD15081@alap2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 25 Jul 2013 15:58:54 +0200" Date: Thu, 25 Jul 2013 11:50:47 -0400 Message-ID: <19791.1374767447@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Andres Freund writes: > 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. BTW, after committing this I re-reviewed the thread and realized that actually this problem is strictly cosmetic. The net effect of the configure bug is is that it (1) doesn't set HAVE_SYS_UCRED_H and as a consequence (2) doesn't set HAVE_STRUCT_CMSGCRED. However, that's only examined in one place in libpq, which says: * Note: this is dead code as of Postgres 9.1, because current backends will * never send this challenge. But we must keep it as long as libpq needs to * interoperate with pre-9.1 servers. It is believed to be needed only on * Debian/kFreeBSD (ie, FreeBSD kernel with Linux userland, so that the * getpeereid() function isn't provided by libc). So on an OpenBSD build that code wouldn't be used anyway (not even when talking to a pre-9.1 server, if I'm interpreting the comment correctly). regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs