Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 5043B1337B88 for ; Thu, 16 Dec 2010 13:43:54 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 92909-02-5 for ; Thu, 16 Dec 2010 17:43:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by mail.postgresql.org (Postfix) with ESMTP id 41BFD1337BA4 for ; Thu, 16 Dec 2010 13:43:05 -0400 (AST) Received: from pc09.procura.nl (procura.xs4all.nl [82.95.216.29]) (authenticated bits=0) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id oBGHgvYV069461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 16 Dec 2010 18:43:03 +0100 (CET) (envelope-from h.m.brand@xs4all.nl) Date: Thu, 16 Dec 2010 18:42:57 +0100 From: "H.Merijn Brand" To: Tom Lane Cc: Simon Riggs , pgsql-bugs@postgresql.org Subject: Re: [Fwd: DBD::Pg on HP-UX 11.31 64bit] Message-ID: <20101216184257.2d19fa5a@pc09.procura.nl> In-Reply-To: <23387.1292520681@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> <23387.1292520681@sss.pgh.pa.us> X-Mailer: Claws Mail 3.7.8cvs1 (GTK+ 2.18.6; x86_64-unknown-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwEAIAAACI8LKTAAAACXBIWXMAAABIAAAASABGyWs+AAAC JElEQVRo3u2aMY4CMQxFczZ6RItEzRm4DBINDbRUSPRInIRbsNK6+dJfezN4kokn48IaCSjysL8d e9Knoj2fr9f9/gllqQ6U9/vxWK3EdwdIEGjRIVCu18NhuxUfK46SH81+fzrdbuKPx/P5ctHQdAdI TKAgpvV6s9ntBEfXEYSGgMQzIHnuFBBjkshCNJ2KtJZ04hHNAugP8bZr3NIHhbcF0AKoK0CoaHXU LUWBIs1n+jV+Fl8CVqOApEXAwyMO/DSR4XVntoAYDR7eBjQupuYAYTMph8Rj21D4m7MChN02tpqs NSnb/KqU2oHCXu5xDCgflj/RAgBiKBIXnICzAsSjWBsTz5K4/HeXYvb8yK5lY3VGEwPi2aONKT+5 AlcxrTPOwcTiraGRChgMEKJh0bVVifGVTq6qgBiNVl8QE29EsK6VE+YJAOG2wz5AvsqUS6uqgHCA n4NGvBYpnJ64Jgg27sCtxtBk1CJIA4S/GhdWKh07QxUB48jWGhZ4jKamRRr/T8/M0AaEyctry6YB 4dTGj9iWZNs3DahES5kPCJOu0RQbF/fQOBprsB9gaO9JtPDzII9U5ySXX7AnuIt91y54AAW7rPpT LCe5gt3F+CLqr2UarGB3MXvMylWGq4+9RCx3TW1oJq1t3HPQlFs6N1fFNEB4s8dn7Ne7ACSm7TPQ I5quAWmw6qBpulHM33B0Csge4Nd8JTTYG2b1XyRe3lH8x34ABJ6aePuQ2N4AAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner 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, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/118 X-Sequence-Number: 28924 On Thu, 16 Dec 2010 12:31:21 -0500, Tom Lane wrote: > 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. I'll try that first after cleaning up my environment. I always compile with -Ae: -Ae In aC++, invokes aCC as an ANSI-C compiler, with additional support for HP-C language extensions. Refer to the HP-C compiler documentation for details of the HP-C language extensions. In C, this is the default, Extended ANSI C99 mode. Which is almost the same as -Aa -D_HPUX_SOURCE -ext. This would define the names (macros and typedefs) provided by the HP-UX Operating System and, in addition, allows extensions such as C99 features in this release (complex and imaginary data types, STDC pragmas), $ characters in identifier names, sized enums, and sized bit-fields, and 64-bit integral types. Additional extensions may be added to this option in the future. - -Aa For aC++, turns on newly supported ANSI C++ Standard features like Koenig lookup and correct scoping for variables declared in conditional statements like for- loops. Additional features may be enabled by this option in the future. For C, compile under strict ANSI mode (ANSI programming language C standard ISO 9899:1990). When compiling under ANSI mode, the header files would define only those names (macros and typedefs) specified by the Standard. To access macros and typedefs that are not defined by the ANSI Standard but are provided by the HP-UX Operating System, define the symbol _HPUX_SOURCE; or use the extension option, -Ae described below. -ext Allow various C/C++ extensions. Currently -ext enables the 64 bit integer (long long) data type. This is a synonym for the +e option. -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using 5.00307 through 5.12 and porting perl5.13.x on HP-UX 10.20, 11.00, 11.11, 11.23 and 11.31, OpenSuSE 10.1, 11.0 .. 11.3 and AIX 5.2 and 5.3. http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/