pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Niclas Gustafsson <Niclas.Gustafsson@codesense.com>
To: pgsql-admin@postgresql.org
Subject: Problem with ucred.h building 7.2.1
Date: Sun, 26 May 2002 16:55:34 +0200
Message-ID: <5016112458.20020526165534@codesense.com> (raw)

Hi,

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.

I'm configuring with:
./configure  --enable-locale --enable-multibyte=LATIN1 --with-openssl
(even tried with a clean ./configure)

Compiling goes fine until the hba.c file:
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include -I/usr/local/ssl/include  -c crypt.c -o crypt.o
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include -I/usr/local/ssl/include  -c hba.c -o hba.o
hba.c: In function `ident_unix':
hba.c:885: storage size of `peercred' isn't known
hba.c:885: warning: unused variable `peercred'
make[3]: *** [hba.o] Error 1
make[3]: Leaving directory `/usr/src/postgresql-7.2.1/src/backend/libpq'
make[2]: *** [libpq-recursive] Error 2
make[2]: Leaving directory `/usr/src/postgresql-7.2.1/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/postgresql-7.2.1/src'
make: *** [all] Error 2

line 885 looks like:
        struct ucred peercred;

When inspecting the config.log file I encounter the
following:

configure:5878: checking for struct cmsgcred
configure:5892: gcc -c -O2   -I/usr/local/ssl/include conftest.c 1>&5
configure:5886: sys/ucred.h: No such file or directory
configure: failed program was:
#line 5883 "configure"
#include "confdefs.h"
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/ucred.h>
int main() {
struct cmsgcred sockcred;
; return 0; }
configure:5912: checking for struct fcred
configure:5926: gcc -c -O2   -I/usr/local/ssl/include conftest.c 1>&5
.
.
.
No wonder it couldn't find the storage size of peercred.
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
struct ucred {
        __u32   pid;
        __u32   uid;
        __u32   gid;
};

So does anyone have a workaround this problem? Anyone tried to compile
7.2.1 on a SuSE 6.0? :)
I'm not that thrilled at the idea of installing another dist. on the
machine, as it is up and running a lot of services that is important to me.


Regards,

Niclas Gustafsson





view thread (4+ messages)  latest in thread

Message-ID: <5016112458.20020526165534@codesense.com>
Permalink:  ../5016112458.20020526165534@codesense.com/
Also on:    postgresql.org/message-id/5016112458.20020526165534@codesense.com

 · 

reply

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
  Subject: Re: Problem with ucred.h building 7.2.1
  In-Reply-To: <5016112458.20020526165534@codesense.com>
  References: <5016112458.20020526165534@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