Skip site navigation (1) Skip section navigation (2)

Re: [Fwd: DBD::Pg on HP-UX 11.31 64bit]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "H(dot)Merijn Brand" <h(dot)m(dot)brand(at)xs4all(dot)nl>
Cc: Simon Riggs <simon(at)2ndQuadrant(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: [Fwd: DBD::Pg on HP-UX 11.31 64bit]
Date: 2010-12-16 17:31:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
I wrote:
> "H.Merijn Brand" <h(dot)m(dot)brand(at)xs4all(dot)nl> 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

In response to


pgsql-bugs by date

Next:From: H.Merijn BrandDate: 2010-12-16 17:39:02
Subject: Re: [Fwd: DBD::Pg on HP-UX 11.31 64bit]
Previous:From: Tom LaneDate: 2010-12-16 17:24:01
Subject: Re: [Fwd: DBD::Pg on HP-UX 11.31 64bit]

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group