Re: 7.1.3 compilation failure (libpq or aync?) - Mailing list pgsql-novice

From Tom Lane
Subject Re: 7.1.3 compilation failure (libpq or aync?)
Date
Msg-id 3299.1006278298@sss.pgh.pa.us
Whole thread Raw
In response to Re: 7.1.3 compilation failure (libpq or aync?)  (James Olsen <jamesml@planetolsen.com>)
List pgsql-novice
James Olsen <jamesml@planetolsen.com> writes:
> If I keep the "sys/un.h" include, I get:
> In file included from /usr/include/sys/un.h:1,
>                  from test.c:3:
> /usr/include/linux/un.h:7: parse error before `sa_family_t'
> /usr/include/linux/un.h:7: warning: no semicolon at end of struct or union
> /usr/include/linux/un.h:9: parse error before `}'
> test.c: In function `main':
> test.c:6: storage size of `un' isn't known

It would appear that on your platform, sys/un.h requires another header
file to be included first (whichever one defines sa_family_t).  If you
poke around in /usr/include you should be able to find out which.
If you can derive a working test program please send it along.

            regards, tom lane

pgsql-novice by date:

Previous
From: James Olsen
Date:
Subject: Re: 7.1.3 compilation failure (libpq or aync?)
Next
From: Brian
Date:
Subject: Re: Emergency backup question.