Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNR75-0003K9-Ci for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Mar 2014 18:09:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WNR74-0003Lc-S5 for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Mar 2014 18:09:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNR73-0003LU-V7 for pgsql-bugs@postgresql.org; Tue, 11 Mar 2014 18:09:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNR71-00050K-Il for pgsql-bugs@postgresql.org; Tue, 11 Mar 2014 18:09:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s2BI9A8f017093; Tue, 11 Mar 2014 14:09:10 -0400 From: Tom Lane To: "H.Merijn Brand" cc: pgsql-bugs@postgresql.org Subject: Re: HP-UX 11.31 Itanium2 64bit again In-reply-to: <20140311174922.613ef28d@pc09.procura.nl> References: <20140311133258.2f10a235@pc09.procura.nl> <13789.1394552320@sss.pgh.pa.us> <20140311174922.613ef28d@pc09.procura.nl> Comments: In-reply-to "H.Merijn Brand" message dated "Tue, 11 Mar 2014 17:49:22 +0100" Date: Tue, 11 Mar 2014 14:09:10 -0400 Message-ID: <17092.1394561350@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org "H.Merijn Brand" writes: > On Tue, 11 Mar 2014 11:38:40 -0400, Tom Lane wrote: >> Was Perl itself built with _XOPEN_SOURCE_EXTENDED? > Just to make sure, building postgres with that define removed does NOT > make it pass the tests. I wouldn't expect it to. You'd at least have to go around and change all the getsockopt calls to pass integer rather than ACCEPT_TYPE_ARG3 last arguments. Possibly setsockopt and some other calls would be affected too; I don't have the means or desire to research that myself. It's not really clear that this is the source of the issue, though. For it to be that, the surrounding Perl executable would have to be determining which flavor of getsockopt() libpq.so is getting linked to. I don't know what method HPUX11 uses to control that, but on systems that I *am* familiar with, it's done with a differently named link symbol, so that no such bugs should arise. Still, you could try hacking the one place in fe-connect.c and see whether the Perl test gets any further; that would give some evidence to tell whether it's worth trying to fix things enough to have a completely working Postgres build without _XOPEN_SOURCE_EXTENDED. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs