Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7QDR-0002kV-FM for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Oct 2018 19:20:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g7QDN-0003B9-Fx for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Oct 2018 19:20:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7QDN-0003B1-6G for pgsql-hackers@lists.postgresql.org; Tue, 02 Oct 2018 19:20:13 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g7QDK-0006WH-76 for pgsql-hackers@lists.postgresql.org; Tue, 02 Oct 2018 19:20:12 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 143-v6so3370278wmf.1 for ; Tue, 02 Oct 2018 12:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=g9HjI52xZBoZMk6YJ38fO6QaOMsSCeDrWaZEHH0usB4=; b=aP5Bn761cx+VxD1dh79Nj5l4EtmCR94wWwVmB61PUaVGKzaE01odcfxxCpp67ebds1 yef6EAkq9QemRo+L+gR2H4FapIbSyNoihZDrL0d5qfia4TUOxdSc1NGVXmMu0FLJlL0O nSPvNVhaBHO84XySiiMw0aaOllj5etwWuXvZDCvnd32BvfeiU/GDzQtfXkGP+vJHOL3X 6+nuYE2BaFRZZ3187b++sMziF+j/dMS6TXyw6JIxkuSlUzvHDfnYZy2TPtVEzRRHkhM8 O7RWrUFoa28SjjtGN+r1yd0rDhgSP3/2m0BbYCZ45//4eUpFArGqVwHelYSILT2UjdDP Mnxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=g9HjI52xZBoZMk6YJ38fO6QaOMsSCeDrWaZEHH0usB4=; b=Hykylp88ZGtCPaNajwZk1boTrOa2wL2q2/0EARBHzEHboimap31+M4ABuaorpLxcmA VnFBeuslJA5I7Mnx1vnDtpZP/yIwGz6n8OAFIRbff/M5NMFhBptZ1fDwBZ2GFICVvAnD I29t+MLqthVsnwrVGjZhLU1cheIKsgX2YbtCKB0U/qBcoWJwQ+etOBwDBcYbnGMntz2U 70MJrHFKMzB6lX40EdekMqumGUlFU2RXBgY94/Hq/90bq4J93M6JtPfwqk/KJrZXUBQl m0ge5r9U2fLWDa6T6hVMeJ3Bi04o9M09M0nbeAKLdqKzTRErblVc6WWDw430UkCNmfyE G4+w== X-Gm-Message-State: ABuFfojIYeluwCcBfWsz03ItxsG5Cr5O4CgBFKTjSsvxUhMPzDqvvI/P HplOnjchi3pSjHArVrTjk+UbqsWf X-Google-Smtp-Source: ACcGV60POxifziu5GvWyk7ymCha9aSQ8M2LD34OpMlEPivEz6iGFGEs89U1IQp9Cmbh245Xzuj33LA== X-Received: by 2002:a1c:890:: with SMTP id 138-v6mr2659822wmi.128.1538508007756; Tue, 02 Oct 2018 12:20:07 -0700 (PDT) Received: from ?IPv6:::1? (p200300EE63D1270151AFE46627BD8878.dip0.t-ipconnect.de. [2003:ee:63d1:2701:51af:e466:27bd:8878]) by smtp.gmail.com with ESMTPSA id g186-v6sm8338482wmf.19.2018.10.02.12.20.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Oct 2018 12:20:07 -0700 (PDT) Subject: Re: Cygwin linking rules To: Tom Lane , Andrew Dunstan Cc: pgsql-hackers@lists.postgresql.org References: <1056.1538235347@sss.pgh.pa.us> <86419508-9d36-36a9-93ff-2a051af7d2e4@2ndQuadrant.com> <257c24fc-effb-871d-4529-e3ff2ea0d436@gmail.com> <27791.1538500041@sss.pgh.pa.us> From: Marco Atzeri Message-ID: Date: Tue, 2 Oct 2018 21:20:06 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <27791.1538500041@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Antivirus: Avast (VPS 181002-1, 01.10.2018), Outbound message X-Antivirus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am 02.10.2018 um 19:07 schrieb Tom Lane: > Andrew Dunstan writes: >> On 09/29/2018 02:13 PM, Marco Atzeri wrote: >>> [ proposed patch ] > >> Yes. So there are a couple of things here. First, the dll has >> SO_MAJORVERSION in the name. And second it stops building any static >> libraries and instead builds windows import libraries with names like >> lippq.a. > > I'm pretty much -1 on adding SO_MAJORVERSION to the library names. > It seems like it will cause churn to library users without really > accomplishing much, because when was the last time we changed the > SO_MAJORVERSION of anything? > > I'd suggest that if we ever do change libpq's SO_MAJORVERSION, > that would be the time to append the suffix (so we'd go from libpq.dll > to libpq-6.dll). For now, let's not fix what isn't broken. On cygwin the library is cygpq-5.dll by long time; around 2013 with 9.2.x we standardized to have the SO_MAJORVERSION in the lib name as all the other packages https://cygwin.com/packages/x86_64/libpq5/libpq5-10.5-1 same as on Unix/Linux https://packages.debian.org/sid/amd64/libpq5/filelist > However, the .a linking definitely is broken, and if this way > of building fixes it, that's great. I do not have the ability > to test it, but we can throw it into the buildfarm to see what > happens. > >> I think we should apply this to HEAD. If it's not too late it would >> probably be a good thing for release 11 - would need a release note. > > I think it's too late for 11; we're too close to RC1, and besides > the problem this is fixing doesn't seem to manifest before my > recent port/common library changes. (If that's not so, maybe it > qualifies as a bug fix for back branches; but it seems rather > high risk.) No problem. It works for my cygwin package release but I could have broken something around and it need to be tested. > regards, tom lane Regards Marco --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr=C3=BCft. https://www.avast.com/antivirus