Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E55B71337BC8 for ; Thu, 16 Dec 2010 13:56:27 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 99502-06-2 for ; Thu, 16 Dec 2010 17:56:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id F1B0D1337BBB for ; Thu, 16 Dec 2010 13:56:14 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oBGHuCUw023793; Thu, 16 Dec 2010 12:56:12 -0500 (EST) To: "H.Merijn Brand" cc: Simon Riggs , pgsql-bugs@postgresql.org Subject: Re: [Fwd: DBD::Pg on HP-UX 11.31 64bit] In-reply-to: <20101216184257.2d19fa5a@pc09.procura.nl> References: <1292355427.2737.4589.camel@ebony> <18189.1292357796@sss.pgh.pa.us> <20101216174803.20b2b6db@pc09.procura.nl> <23253.1292520241@sss.pgh.pa.us> <23387.1292520681@sss.pgh.pa.us> <20101216184257.2d19fa5a@pc09.procura.nl> Comments: In-reply-to "H.Merijn Brand" message dated "Thu, 16 Dec 2010 18:42:57 +0100" Date: Thu, 16 Dec 2010 12:56:12 -0500 Message-ID: <23792.1292522172@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/121 X-Sequence-Number: 28927 "H.Merijn Brand" writes: > On Thu, 16 Dec 2010 12:31:21 -0500, Tom Lane wrote: >> So what I'm thinking is happening is that libpq expects size_t as >> the argument type, but it's getting linked against a libc that >> expects int as the argument type, and whatever HP is doing under >> the hood fails to cope with that case. You might try removing >> -D_XOPEN_SOURCE_EXTENDED from the template file --- I don't know if >> that will have any bad side-effects, but it's worth a try to build >> libpq that way. > I'll try that first after cleaning up my environment. I looked in the git history and found that I added -D_XOPEN_SOURCE_EXTENDED in a patch that made getaddrinfo work correctly: http://git.postgresql.org/gitweb?p=postgresql.git;a=commit;h=1da6eb7fdaa79a93972c290174bd7136672a894f So taking it out may indeed have unpleasant side-effects. regards, tom lane