Re: Re: Add support for <xti.h>

From: Pete Forman <gsez020(at)kryten(dot)bedford(dot)waii(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Larry Rosenman <ler(at)lerctr(dot)org>
Subject: Re: Re: Add support for <xti.h>
Date: 2000-10-24 09:40:34
Message-ID: 14837.22802.804952.781575@kryten.bedford.waii.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:
> >> Actually, given your description of the problem, I'm half
> >> inclined to revert the whole patch and instead make configure's
> >> test for availability of <netinet/tcp.h> first include
> >> <netinet/in.h>, so that that configure test will succeed on IRIX
> >> etc.
>
> Pete,
> After looking at this I'm confused again. The configure test
> consists of seeing whether cpp will process
>
> #include <netinet/tcp.h>
>
> without complaint. I can well believe that the full C compilation
> process will generate errors if <netinet/tcp.h> is included without
> also including <netinet/in.h>, but it's a little harder to believe
> that cpp alone will complain. Could you double-check this?
>
> It would be useful to look at the config.log file generated by the
> configure run that's reporting tcp.h isn't found. It should
> contain the error messages generated by failed tests.

On IRIX 6.5.5m I get the following error. The header <standards.h> is
included by (nearly!) all of the standard headers. It is the IRIX
equivalent of config.h if you will.

In order to preprocess this test on IRIX a system header such as
<stdio.h> must precede <netinet/tcp.h>. The logical choice of header
to use is <netinet/in.h> as tcp.h is supplying values for levels
defined in in.h.

This is an IRIX bug but I think that we need to work around it.

configure:4349: checking for netinet/tcp.h
configure:4359: cc -E conftest.c >/dev/null 2>conftest.out
cc-1035 cc: WARNING File = /usr/include/sys/endian.h, Line = 32
#error directive: "<standards.h> must be included before <sys/endian.h>."

#error "<standards.h> must be included before <sys/endian.h>."
^
configure: failed program was:
#line 4354 "configure"
#include "confdefs.h"
#include <netinet/tcp.h>

--
Pete Forman -./\.- Disclaimer: This post is originated
Western Geophysical -./\.- by myself and does not represent
pete(dot)forman(at)westgeo(dot)com -./\.- the opinion of Baker Hughes or
http://www.crosswinds.net/~petef -./\.- its divisions.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2000-10-24 09:41:48 AW: AW: BLERe: AW: AW: relation ### modified while in u se
Previous Message Hiroshi Inoue 2000-10-24 09:31:07 Re: AW: BLERe: AW: AW: relation ### modified while in use