Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGz1d-0005Jz-Hm for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Jun 2017 02:42:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGz1c-0005sA-Gm for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Jun 2017 02:42:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGyzE-0004Xu-4U for pgsql-bugs@postgresql.org; Sat, 03 Jun 2017 02:40:20 +0000 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dGyzA-00064U-PD for pgsql-bugs@postgresql.org; Sat, 03 Jun 2017 02:40:18 +0000 Received: by mail-qk0-x229.google.com with SMTP id u188so15296610qkd.2 for ; Fri, 02 Jun 2017 19:40:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=PHwR7pvudl7SCiwD578J569BmeEggEcDV/pjCF1SdgQ=; b=LHTo/inKtuhRPUDsvE4ZvZSKJEDlHefXzlJhK6jXJ5kZf9famN4KvQrC2ilPdMiw/C IkIUwNW/PvMz86T5VNBPmBcQBo4TMmfmNn2hksxAiG5RCxU5x4fP0qK3+ySOTllnu4k0 GThPDA4HtAr2DZjnvERc04wIoYuRFOEpWi37HCIPZTTL5ygQaEPERRy0WrG7SBTTgxg8 UQSTk/iGZE1ncT6rq3hiIZfdri76kI6OBjNvtCW/pMYmaYlJYivrztOvWeuvBqW95RtW Lq51nErkJVMTNMD4VSnTFdyPKlgqlkjvdNlsbhMVUGpiSgq2sVmO2/HXnvyUFNTR1cNu 35eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PHwR7pvudl7SCiwD578J569BmeEggEcDV/pjCF1SdgQ=; b=mREktwBm6f35HmcPkTHahft8DvU7k1eZxyBGEtXIlNbJ5y9rzDJPl0n3CnbRQhfB5C jDl5ZSfirc8y+SllOMWU6LYz7M6zo86VmY1yNGNUadXbzTQ0etbD9BZrTPt+k4PkaqO7 9VMbRrtT2R5qRLUCb956PWDGP+oyYovRh7iMJOrJ7nt22T/uxMgcbADRO0v9ZJ33VDO3 zwhpI1mJTDBX0S5azNiEaAOTUR7Y5cPGdPdgeklP348j4CU2zFUNVg2NrcP7BPxoKjtH 0G9gMDHnt1vl0CyFUnwMyJ4DcG6oI7eEAcKQzhmiyhW46PbHx3KBjqNccFPX5OrFjD/5 hlzQ== X-Gm-Message-State: AODbwcBqHk4R5eigPsESnixdqNJk7wpR2Bmjkb+doT796IlJASDQWwD/ P4OU1PCVtzDfSFBlA+U= X-Received: by 10.55.188.135 with SMTP id m129mr10913878qkf.226.1496457615628; Fri, 02 Jun 2017 19:40:15 -0700 (PDT) Received: from [192.168.3.110] (cpe-76-177-138-55.natcky.res.rr.com. [76.177.138.55]) by smtp.gmail.com with ESMTPSA id 101sm13624186qkx.28.2017.06.02.19.40.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 19:40:14 -0700 (PDT) From: Shawn Doyle X-Google-Original-From: Shawn Doyle Subject: Re: HP-UX 11.31 Itanium2 64bit again To: "H.Merijn Brand" , pgsql-bugs@postgresql.org References: <20140311133258.2f10a235@pc09.procura.nl> Message-ID: <50aee370-14df-6dd4-782e-05589898f36e@gmail.com> Date: Fri, 2 Jun 2017 22:40:13 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20140311133258.2f10a235@pc09.procura.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.5 (--) 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 On 3/11/2014 8:32 AM, H.Merijn Brand wrote: > Back in December 2010 I reported to be unable to *use* a postgres build > on HP-UX 11.31 (64bit). The configure/build/test works fine for both HP > C-ANSI-C ( HP C/aC++ B3910B A.06.26 [Apr 12 2011]) or gcc-4.7.2 and for > both the product works fine on itself after installation. > > That however is somewhat useless, as the database is running on another > machine and I only need the installed postgres for its shared libraries > to link against perl for DBD::Pg. (having psql locally is a pre, but it > is not a necessity) > > The available perl is a 64bit build, so my postgresql libraries have to > be 64bit too. As I only have 64bit versions of openssl, that all makes > sense for both postgresql and perl anyway. Another reason perl is built > in 64bit is that I only have 64bit Oracle libs and perl scripts have to > connect to both Oracle and PostgreSQL simultaneously. > > After the installation, DBD::Pg is able to link against libpq.so.5, but > just as in 2010/2011, it is not able to make any connection due to some > socket incompatabilities: > > $ perl -MDBI -wE'DBI->connect ("dbi:Pg:")' > DBI connect('','',...) failed: could not get socket error status: Invalid argument at -e line 1. > > The docs state that HP-UX is one of the platforms postgresql is tested > on, but is it ever tested beyond the product itself? Is there anyone to > guide me in making this work? > > I am now stuck to postgresql-8.4.5 which is the last release I was able > to build to a state that worked with perl. > > I found myself in exactly the same state as in 2010/2011. > Not sure if this is still an outstanding issue, but I was trying to do the same thing and ran into the same issue this week and after much digging, finally managed to find a solution, so wanted to follow up for anyone else who may come across this. There are basically two options: 1) Build the tool connecting (unixODBC in my case) to the HPUX PostgreSQL server with LDFLAGS="-lxnet" 2) Build the PostgreSQL server with these additional parameters for CFLAGS (in addition to existing flags you're using): "-D_XOPEN_SOURCE=600 -D_HPUX_ALT_XOPEN_SOCKET_API" A detailed explanation can be found at https://docstore.mik.ua/manuals/hp-ux/en/B2355-60130/xopen_networking.7.html, but basically PostgreSQL by default is compiled with the xnet library. Option 1 above includes the xnet library in the connecting tool so it has the same Socket styles. Option 2 above builds the PostgreSQL server with support for both socket function styles. Hope this helps, Shawn Doyle -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs