Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 9B5804759C6 for ; Fri, 7 Jun 2002 18:44:22 -0400 (EDT) Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 33D20475939 for ; Fri, 7 Jun 2002 18:44:21 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g57MiD802302; Fri, 7 Jun 2002 18:44:13 -0400 (EDT) From: Bruce Momjian Message-Id: <200206072244.g57MiD802302@candle.pha.pa.us> Subject: Re: Problem with ucred.h building 7.2.1 In-Reply-To: <18238029213.20020526230051@codesense.com> To: Niclas Gustafsson Date: Fri, 7 Jun 2002 18:44:13 -0400 (EDT) Cc: Tom Lane , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200206/52 X-Sequence-Number: 4487 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 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 , doesn't that include ? Seems > > like it should work... > > Nope, It does not include linux/socket.h. > It only includes the following: > > #include > #include > #include > > 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@postgresql.org > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026