Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D86371336B42 for ; Thu, 16 Dec 2010 13:42:03 -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 15535-01-7 for ; Thu, 16 Dec 2010 17:41:55 +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 2D83C1337F1C for ; Thu, 16 Dec 2010 13:31:27 -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 oBGHVLmi023388; Thu, 16 Dec 2010 12:31:22 -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: <23253.1292520241@sss.pgh.pa.us> References: <1292355427.2737.4589.camel@ebony> <18189.1292357796@sss.pgh.pa.us> <20101216174803.20b2b6db@pc09.procura.nl> <23253.1292520241@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 16 Dec 2010 12:24:01 -0500" Date: Thu, 16 Dec 2010 12:31:21 -0500 Message-ID: <23387.1292520681@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/117 X-Sequence-Number: 28923 I wrote: > "H.Merijn Brand" writes: >> the includes tell me >> src/include/pg_config.h:#define ACCEPT_TYPE_ARG3 size_t > Hmm, that suggests that configure was already seeing the socklen_t > variant ... Actually, the reason that happens is probably that src/template/hpux forcibly adds -D_XOPEN_SOURCE_EXTENDED to CPPFLAGS. At least on my old HPUX box, that's sufficient to select the more modern prototype for accept and getsockopt; probably the same on yours. 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. regards, tom lane