pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Browne <cbbrowne@acm.org>
To: pgsql-ports@postgresql.org
Subject: Re: pthreads issue when compiling 7.4.8 on AIX 5.3  -- RESOLVED
Date: Thu, 14 Jul 2005 11:02:37 -0400
Message-ID: <60fyuhjur6.fsf@dba2.int.libertyrms.com> (raw)
References: <CC74E7E10A8A054798B6611BD1FEF4D307967008@vamail01.thexchange.com>

RMohan@arbinet.com ("Mohan, Ross") writes:
> *thank you* !!
>
> Please keep us posted on socket bug progress, is that possible? 

More news today...

---------------------------------------------------------------------
"We have escalated PMR29657 and now have a resolution.  

We have spoken directly with the lead developer of the socket.h header
files: 

The immediate resolution is to alter _SS_MAXSIZE to = 1025 in
/usr/include/sys/socket.h (as was suggested by Chris Browne).  

This will resolve the immediate problem.  

IBM will be providing a fix in the next maintenance release with an
updated socket.h."
-----------------------------------------------------------------------

That differs a bit from what Bull suggested a while back, though I
wouldn't be surprised (and would be quite pleased) if the next AIX 5.3
maintenance release used some sort of calculated value rather than
1025.

In any case, s/128/1025/ seems to be the resolution to the problem,
for now.  It'll presumably have the same effect for PostgreSQL 8.x
too.

I'm not sure if it's worth adding a test case into the PostgreSQL
configure script to watch for this issue; if it is, the following
would characterize the test...

---------------------------------------------------------------
#include <stdio.h>
#include <sys/un.h>
#include <sys/socket.h>
int main (int argc, char *argv[]) {
        struct sockaddr_storage a;
        struct sockaddr_un b;
        printf("Size of sockadr_storage: %d\n", sizeof(a));
        printf ("Size of sockaddr_un:%d\n", sizeof(b));

        if (sizeof(a) >= sizeof(b))
                printf ("Conformant to RFC 3493\n");
        else
                printf ("Non-conformant to RFC 3493\n");
}
---------------------------------------------------------------

I suppose I should submit a patch to the AIX FAQ to reflect this
issue...
-- 
(format nil "~S@~S" "cbbrowne" "acm.org")
http://www.ntlug.org/~cbbrowne/sap.html
Rules of the Evil Overlord #78.  "I will not tell my Legions of Terror
"And he must  be taken alive!" The command will be:  ``And try to take
him alive if it is reasonably practical.''"
<http://www.eviloverlord.com/;



view thread (13+ messages)

Message-ID: <60fyuhjur6.fsf@dba2.int.libertyrms.com>
Permalink:  ../60fyuhjur6.fsf@dba2.int.libertyrms.com/
Also on:    postgresql.org/message-id/60fyuhjur6.fsf@dba2.int.libertyrms.com

 · 

reply

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-ports@postgresql.org
  Cc: cbbrowne@acm.org
  Subject: Re: pthreads issue when compiling 7.4.8 on AIX 5.3  -- RESOLVED
  In-Reply-To: <60fyuhjur6.fsf@dba2.int.libertyrms.com>
  References: <CC74E7E10A8A054798B6611BD1FEF4D307967008@vamail01.thexchange.com> <60fyuhjur6.fsf@dba2.int.libertyrms.com>

* 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