Re: Problem with ucred.h building 7.2.1

Поиск
Список
Период
Сортировка
От Niclas Gustafsson
Тема Re: Problem with ucred.h building 7.2.1
Дата
Msg-id 18238029213.20020526230051@codesense.com
обсуждение исходный текст
Ответ на Re: Problem with ucred.h building 7.2.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Problem with ucred.h building 7.2.1
Список pgsql-admin
> 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



В списке pgsql-admin по дате отправления:

Предыдущее
От: Manuel Sugawara
Дата:
Сообщение: Re: databases and RAID ...
Следующее
От: "shreedhar"
Дата:
Сообщение: Doubt in Plpgsql