From: Andres Freund <andres@2ndquadrant.com>
To: Emre Hasegeli <emre@hasegeli.com>
To: 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: Sun, 30 Jun 2013 15:17:20 +0200
Message-ID: <20130630131720.GM11516@alap2.anarazel.de> (raw)
In-Reply-To: <CAE2gYzzA_GuLONnvJhohi=A3x6+Xmf0mkZaCs0Pqi=KBUi74Bw@mail.gmail.com>
References: <E1UtF6j-0005B2-Ob@wrigleys.postgresql.org>
<20130630111930.GL11516@alap2.anarazel.de>
<CAE2gYzzA_GuLONnvJhohi=A3x6+Xmf0mkZaCs0Pqi=KBUi74Bw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2013-06-30 15:11:24 +0300, Emre Hasegeli wrote:
> 2013/6/30 Andres Freund <andres@2ndquadrant.com>:
> > On 2013-06-30 10:43:49 +0000, emre@hasegeli.com wrote:
> > Could you attach config.log?
>
> Attached.
This seems to be caused by be4585b1c27ac5dbdd0d61740d18f7ad9a00e268. The
fault imo lies with openbsd which doesn't include the prerequisite
sys/param.h header which defines NGROUPS:
http://fxr.watson.org/fxr/source/sys/ucred.h?v=OPENBSD
The other BSD flavors seems to get that right.
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.
It's a bit sad that we didn't notice this despite having spoonbill
reporting it, presumably for a good while:
http://pgbuildfarm.org/cgi-bin/show_stage_log.pl?nm=spoonbill&dt=2013-06-29%2011%3A00%3A04&s...
The reason we presumably missed it is that getpeereid is properly
present.
Andrew: Could we perhaps check for the "Report this to" bit in the
buildfarm?
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-bugsAttachments:sys_ucred_h_openbsd.patch (text/x-patch, 1.5K) downloaddiff --git a/configure.in b/configure.inindex 58ece5b..fa37bda 100644--- a/configure.in+++ b/configure.in@@ -982,7 +982,7 @@ AC_SUBST(OSSP_UUID_LIBS)
##
dnl sys/socket.h is required by AC_FUNC_ACCEPT_ARGTYPES
-AC_CHECK_HEADERS([crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h])+AC_CHECK_HEADERS([crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/param.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h])
# On BSD, cpp test for net/if.h will fail unless sys/socket.h
# is included first.
@@ -993,6 +993,14 @@ AC_CHECK_HEADERS(net/if.h, [], [],
#endif
])
+# On OpenBSD including sys/ucred.h without sys/params.h will fail+AC_CHECK_HEADERS(sys/ucred.h, [], [],+[AC_INCLUDES_DEFAULT+#ifdef HAVE_SYS_PARAM_H+#include <sys/param.h>+#endif+])+
# At least on IRIX, cpp test for netinet/tcp.h will fail unless
# netinet/in.h is included first.
AC_CHECK_HEADERS(netinet/in.h)
@@ -1133,6 +1141,9 @@ PGAC_TYPE_LOCALE_T
AC_CHECK_TYPES([struct cmsgcred], [], [],
[#include <sys/socket.h>
+#ifdef HAVE_SYS_PARAM_H+#include <sys/param.h>+#endif
#ifdef HAVE_SYS_UCRED_H
#include <sys/ucred.h>
#endif])
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, emre@hasegeli.com, andrew@dunslane.net
Subject: Re: BUG #8271: Configure warning: sys/ucred.h: present but cannot be compiled
In-Reply-To: <20130630131720.GM11516@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>
* 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