Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlzyG-005D88-Ub for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Sep 2023 22:59:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qlzyF-00H5DW-EK for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Sep 2023 22:58:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlzyF-00H5Cx-45 for pgsql-hackers@lists.postgresql.org; Thu, 28 Sep 2023 22:58:59 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlzy8-007Bz0-AG for pgsql-hackers@lists.postgresql.org; Thu, 28 Sep 2023 22:58:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 38SMwn9H1111722; Thu, 28 Sep 2023 18:58:49 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org Subject: Re: Annoying build warnings from latest Apple toolchain In-reply-to: <20230928222248.jw6s7yktpfsfczha@alap3.anarazel.de> References: <467042.1695766998@sss.pgh.pa.us> <673900.1695841549@sss.pgh.pa.us> <687188.1695847964@sss.pgh.pa.us> <20230928203213.47bn2pv45mkmxtz7@alap3.anarazel.de> <1095659.1695933968@sss.pgh.pa.us> <20230928222248.jw6s7yktpfsfczha@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 28 Sep 2023 15:22:48 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1111720.1695941929.1@sss.pgh.pa.us> Date: Thu, 28 Sep 2023 18:58:49 -0400 Message-ID: <1111721.1695941929@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2023-09-28 16:46:08 -0400, Tom Lane wrote: >> Well, it's only important on platforms where we can't restrict >> libpq.so from exporting all symbols. I don't know how close we are >> to deciding that such cases are no longer interesting to worry about. >> Makefile.shlib seems to know how to do it everywhere except Windows, >> and I imagine we know how to do it over in the MSVC scripts. > Hm, then I'd argue that we don't need to care about it anymore. The meson > build does the necessary magic on windows, as do the current msvc scripts. If we take that argument seriously, then I'm inclined to adjust my upthread patch for Makefile.global.in so that it removes the extra inclusions of libpgport/libpgcommon everywhere, not only macOS. The rationale would be that it's not worth worrying about ABI stability details on any straggler platforms. > I think right now it doesn't work as-is on sonoma, because apple decided to > change the option syntax, which is what causes the -e warning below, so the > relevant option is just ignored. Hmm, we'd better fix that then. Or is it their bug? It looks to me like clang's argument is -exported_symbols_list=/path/to/exports.list, so it must be translating that to "-e". regards, tom lane