Re: Problem with ucred.h building 7.2.1

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Niclas Gustafsson <Niclas(dot)Gustafsson(at)codesense(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Problem with ucred.h building 7.2.1
Date: 2002-06-07 22:44:13
Message-ID: 200206072244.g57MiD802302@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


In the only other creds failure I can remember on Linux, it was caused
by someone updating their partially system headers, but not completely.

---------------------------------------------------------------------------

Niclas Gustafsson wrote:
> > Niclas Gustafsson <Niclas(dot)Gustafsson(at)codesense(dot)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
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tim Ellis 2002-06-07 23:40:33 Re: What err ???
Previous Message Nick Fankhauser 2002-06-07 21:44:16 Re: What err ???