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

From: Murad Nayal <murad(at)godel(dot)bioc(dot)columbia(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, 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-22 21:12:51
Message-ID: 3929A2D3.FCBB0658@godel.bioc.columbia.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-bugs pgsql-hackers pgsql-ports

Tom Lane wrote:
>
> 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.

sys/socket is already included in the test program. and yet all I get
from the cc compiler is a warning!!! But here is a bit of trivia that I
found. the CC compiler (C++ on SGI) won't take it and will generate an
error. I am not sure obviously if this is to be expected of other C++
compilers. This particular warning message on my compiler has the number
1164. you can turn warning messages to error conditions using the flag
-diag_error message_number. So while cc conftest.c in this case
generates a warning. cc -diag_error 1164 conftest.c will generate an
error. Again I don't know if this feature is common in other compilers.

Murad

--
Murad Nayal M.D. Ph.D.
Department of Biochemistry and Molecular Biophysics
College of Physicians and Surgeons of Columbia University
630 West 168th Street. New York, NY 10032
Tel: 212-305-6884 Fax: 212-305-6926

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Murad Nayal 2000-05-22 21:28:16 Re: port v7.0 to SGI-IRIX-6.5.7/64
Previous Message Hans Poo 2000-05-22 21:09:31 Installation of postgre DBD is easy without RMP

Browse pgsql-bugs by date

  From Date Subject
Next Message Murad Nayal 2000-05-22 21:28:16 Re: port v7.0 to SGI-IRIX-6.5.7/64
Previous Message Murad Nayal 2000-05-22 20:53:07 Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64

Browse pgsql-hackers by date

  From Date Subject
Next Message Murad Nayal 2000-05-22 21:28:16 Re: port v7.0 to SGI-IRIX-6.5.7/64
Previous Message Hannu Krosing 2000-05-22 21:07:32 Re: OO Patch

Browse pgsql-ports by date

  From Date Subject
Next Message Murad Nayal 2000-05-22 21:28:16 Re: port v7.0 to SGI-IRIX-6.5.7/64
Previous Message Murad Nayal 2000-05-22 20:53:07 Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64