Re: 7.1.3 compilation failure (libpq or aync?)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: James Olsen <jamesml(at)planetolsen(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: 7.1.3 compilation failure (libpq or aync?)
Date: 2001-11-20 17:44:58
Message-ID: 3299.1006278298@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

James Olsen <jamesml(at)planetolsen(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Francisco Reyes 2001-11-20 18:15:16 Re: If function available?
Previous Message Brian 2001-11-20 17:42:45 Re: Emergency backup question.