From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Murad Nayal <murad@godel.bioc.columbia.edu>
Cc: pgsql-ports@postgresql.org
Cc: bugs@postgresql.org
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
Date: Mon, 22 May 2000 21:11:25 -0400
Message-ID: <21872.959044285@sss.pgh.pa.us> (raw)
In-Reply-To: <200005222356.TAA01789@candle.pha.pa.us>
References: <200005222356.TAA01789@candle.pha.pa.us>
Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> 2- configure badly guesses the type of the 3rd argument to accept(). it
>> decided it should be size_t (unsigned int on IRIX) while accept on IRIX
>> takes an int.
> Again, a suggested change?
This is something that's been bugging me for a while; the problem on
most platforms is that int vs unsigned int parameter will only draw a
warning from the compiler, and autoconf's TRY_COMPILE macro is only able
to detect outright errors.
I looked at the standard Autoconf macros just now, and found an example
that may give us the right solution: instead of trying to see whether
a call of accept with "int" or "unsigned int" parameter works, include
<sys/socket.h> and then write an "extern" declaration for accept with
the parameters we think it should have. This relies on the hope that
if the compiler sees two declarations for accept with different
parameter lists, it'll generate an error and not just a warning.
It seems like that should work at least as well, maybe better, as what
we're doing now --- but it's not the kind of change that I want to shove
into 7.0.1 with no beta testing! Probably we should introduce it early
in the 7.1 cycle instead, and see if anyone reports problems.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, murad@godel.bioc.columbia.edu, pgsql-ports@postgresql.org, bugs@postgresql.org, pgsql-hackers@postgresql.org
Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
In-Reply-To: <21872.959044285@sss.pgh.pa.us>
References: <200005222356.TAA01789@candle.pha.pa.us> <21872.959044285@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox