Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOi0A-0005GX-JM for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Aug 2022 16:04:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oOi08-0001ge-Fq for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Aug 2022 16:04:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOi06-0001gI-EQ for pgsql-hackers@lists.postgresql.org; Thu, 18 Aug 2022 16:04:08 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOi03-0001W9-2u for pgsql-hackers@postgresql.org; Thu, 18 Aug 2022 16:04:05 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 84D995C013C; Thu, 18 Aug 2022 12:03:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 18 Aug 2022 12:03:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1660838639; x=1660925039; bh=xd3T3gth1U 7mzYtC+TwYELfaamDYVJyov9fVYba2EiI=; b=P4BhWaSKPfdazlJPOPzVmGNsng ROPPjwby4fQPGEgC3LtArzwxfHxzxb69ppOy7l3drz/VjL9M7TaX/0Y09OSTD8Y0 HHCDElroR2rS1Y7Byh1PaPQokJkW4j+9a5g1CcxI/fl8QSBGXx+hgGxRFxDhMfUF q9rRGaksuTRtlwDDLpsl5R2D2OgfgyfX+H4+tzD0AMEtZLe0+Qp1afyrZF1VhE6D LXCzPQRc2XwHLVyR7ONaDhu4pCcRoy+TchCJAC9uUgHKSIWRUnjd7r5WW4+VFPPw 9qpbZspYlOkPmO58e5cUqNHRkSiuF0NlGjVW2+y7UP25uS+zIw4xwLvnxopw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1660838639; x=1660925039; bh=xd3T3gth1U7mzYtC+TwYELfaamDY VJyov9fVYba2EiI=; b=19z77TPhUD3IxFcOxCySybQ4UxSrd14k2kOyn5qloCJU zJcyCwstmw2a7hjdDcJLKKB9Fdt2IjbVyBz+rS4sGVCw3RJJhbiUbq5+S9wbsZf9 XsoFPSomx/8TL9QOW/IEuHtbN7Vb6fOsqdh4S96vgd0xVIpo5YWHA+DOxnkIgkk2 OB4RN/RV7bar9wLO+jkBN8xn41BnFm0e5f2L2EwCWOSGsbPeBqbxrecEh3WKah1f A2xLE6urOz39mZV8PpFiTNWfj2zj9Hm3WH6uBI61NlFK7bJWYOtA1TH9ajUk/lTW SAmfcqKm7SqjFYMlhFE1hQj8nuK7/oJAkIqxu9IAew== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehledgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Aug 2022 12:03:58 -0400 (EDT) Date: Thu, 18 Aug 2022 09:03:57 -0700 From: Andres Freund To: Noah Misch Cc: pgsql-hackers@postgresql.org, robertmhaas@gmail.com Subject: Re: static libpq (and other libraries) overwritten on aix Message-ID: <20220818160357.w7cbzw6o7eacqe72@awork3.anarazel.de> References: <20220817190154.nnu27rvcleu2764m@awork3.anarazel.de> <20220818045929.GB410601@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220818045929.GB410601@rfd.leadboat.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-08-17 21:59:29 -0700, Noah Misch wrote: > The AIX sections of Makefile.shlib misuse the terms "static" and "shared". > > Imagine s/static library/library ending in .a/ and s/shared library/library > ending in .so/. That yields an accurate description of the makefile rules. I realize that aspect. My point is that we currently, across most of the other platforms, support building a "proper" static library, and install it too. But on AIX (and I think mingw), we don't, but without an explicit comment about not doing so. In fact, the all-static-lib target on those platforms will build a non-static library, which seems not great. > > There could also be > > a race in the buildrules leading to sometimes static libs sometimes shared > > libs winning, I think. > > Not since commit e8564ef, to my knowledge. I'd missed that the $(stlib): ... bit is not defined due to haslibarule being defined... > Along the lines of Robert's comment, it could be a nice code beautification to > use a different suffix for the short-lived .a file. Perhaps _so_inputs.a. Agreed, it'd be an improvement. Afaict we could just stop building the intermediary static lib. Afaict the MKLDEXPORT path isn't needed for libraries without an exports.txt because the linker defaults to exporting "most" symbols, and for symbols with an exports.txt we don't need it either. The only path that really needs MKLDEXPORT is postgres. Not really for the export side either, but for the import side. Greetings, Andres Freund