Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Murad Nayal <murad(at)godel(dot)bioc(dot)columbia(dot)edu>, pgsql-ports(at)postgresql(dot)org, bugs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
Date: 2000-05-23 01:11:25
Message-ID: 21872.959044285@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-bugs pgsql-hackers pgsql-ports

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2000-05-23 03:59:42 Re: port v7.0 to SGI-IRIX-6.5.7/64
Previous Message Tom Lane 2000-05-23 00:58:57 Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2000-05-23 01:32:32 Re: Just checking on a few bugs...
Previous Message Tom Lane 2000-05-23 00:58:57 Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-05-23 01:39:44 Re: Serious problem within authentication subsystem in 7.0
Previous Message Tom Lane 2000-05-23 00:58:57 Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64

Browse pgsql-ports by date

  From Date Subject
Next Message Tom Lane 2000-05-23 03:59:42 Re: port v7.0 to SGI-IRIX-6.5.7/64
Previous Message Tom Lane 2000-05-23 00:58:57 Re: [PORTS] Re: port v7.0 to SGI-IRIX-6.5.7/64