Re: Can't run configure

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Williams, Travis L, NPONS" <tlw(at)att(dot)com>
Cc: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>, "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can't run configure
Date: 2002-09-14 15:54:48
Message-ID: 27285.1032018888@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Williams, Travis L, NPONS" <tlw(at)att(dot)com> writes:
> I attached my config.log.

Here's the problem: all the attempts to check accept() are failing with:

configure:6079: gcc -c -O2 conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, void *, int *);
int main() {

; return 0; }

My guess is that the 11.20 sys/socket.h requires some other header to be
included first to provide some typedef. Can you look at the referenced
lines to see what type name(s) appear there, and then grep to see what
system include file defines it/them?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Williams, Travis L, NPONS 2002-09-14 16:07:04 Re: Can't run configure
Previous Message Williams, Travis L, NPONS 2002-09-14 15:49:21 Re: Can't run configure