From: Niclas Gustafsson <Niclas.Gustafsson@codesense.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem with ucred.h building 7.2.1
Date: Sun, 26 May 2002 23:00:51 +0200
Message-ID: <18238029213.20020526230051@codesense.com> (raw)
In-Reply-To: <5642.1022429240@sss.pgh.pa.us>
References: <5016112458.20020526165534@codesense.com>
<5642.1022429240@sss.pgh.pa.us>
> Niclas Gustafsson <Niclas.Gustafsson@codesense.com> writes:
>> I'm having some trouble compiling 7.2.1 on one of our machines,
>> It's a linux box running SuSE 6.0, with kernel version 2.2.14.
>> ...
>> After searching the system I see that I do not have the ucred.h
>> anywhere.
>> However I find the ucred definition in /usr/include/linux/socket.h as
> Yeah, we've heard a couple of prior reports to the effect that this code
> is not sufficiently configurable. I'm a bit confused though ---- hba.c
> pulls in <sys/socket.h>, doesn't that include <linux/socket.h> ? Seems
> like it should work...
Nope, It does not include linux/socket.h.
It only includes the following:
#include <features.h>
#include <stddef.h>
#include <socketbits.h>
And noone of them includes linux/socket.h
I made a rather crude insert into hba.h
struct ucred {
unsigned int pid;
unsigned int uid;
unsigned int gid;
};
And with that it passed both the compilation and regression tests.
Regards,
Niclas Gustafsson
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-admin@postgresql.org
Cc: Niclas.Gustafsson@codesense.com, tgl@sss.pgh.pa.us
Subject: Re: Problem with ucred.h building 7.2.1
In-Reply-To: <18238029213.20020526230051@codesense.com>
References: <5016112458.20020526165534@codesense.com> <5642.1022429240@sss.pgh.pa.us> <18238029213.20020526230051@codesense.com>
* 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