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 1n77Z9-0008FR-Kd for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Jan 2022 03:11:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n77Z7-0004Ii-58 for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Jan 2022 03:11:17 +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 1n77Z6-0004IY-Ny for pgsql-hackers@lists.postgresql.org; Tue, 11 Jan 2022 03:11:16 +0000 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n77Yz-0002cT-Gt for pgsql-hackers@postgresql.org; Tue, 11 Jan 2022 03:11:15 +0000 Received: by mail-io1-xd2e.google.com with SMTP id 19so20518506ioz.4 for ; Mon, 10 Jan 2022 19:11:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HivAxWXFFKwgLUwDHEoV+yfinqTw5Z2L9IeJgG7Wonw=; b=0j4OPxRhdRBLVd/QVc7XWipGLw3hq/PkjwXVlKxSEIxkavQvYQ+Cy+BthkKDRbtdIh EtFNmYjFtkjQvWjGCjfnSH18EoM27BdWSmEWWA/TcTyB/SZX0bJO3/JAtWK86y7KJs2F 4EXHkUe4aaoQReoNPNnv2uPsw+f+pQ9gXBfR5sTzqxynGm035fg3j8d0af4erFbaTg0r FrFVHnczYpME5T+Ae27ovqGw+uqWyPMMMmO9I0mjkS/axMpXd9MhELBocJ6iF2ZaSww0 KRidsm/vrK7oa8m66WWKE7bMxqdW7WG8aeyshCec+Z6Zg1jwvIi9tvu30zopqMPEC6M+ 9jbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HivAxWXFFKwgLUwDHEoV+yfinqTw5Z2L9IeJgG7Wonw=; b=YS2Q7NG/4dQJX9PnhvBr0uYm1eWoUvhUkMl0rtj6UkUGFggRXwkMWay5RGkJExftHd Rsk78ysLiCAkbZRTwIbrZxKcLuugvIXzGe2RC4X8bktY0RBBxfetIg0DBDNJKZRqTxEJ 2voSFPgvtnk07hJoHhq7QERVpTgCHVBJeUkhZB0jKA+5BPrnRDWr20V0oqTNF+Lm+cM5 Bd9Rq7Pe1iALhPG3TXR4abD1MRME4IOMpXL611URsY/rh/Qp2Ky4SoG5qrBtMgDsDWw2 2g7LagASxOzIn9EWNSODD68GI9FHkZoT5fS9kff9mN6wHzARnWENqmknpkkBz0PmoWyW cGUQ== X-Gm-Message-State: AOAM531xrI7YmRg7/ZAsK4a06AHTzdVOaSHvP3C3YoMNkOtRLeUGMTwV hWK4vggVHFMgRJSDeJuGN6yUPlsCb//rRw== X-Google-Smtp-Source: ABdhPJzILIHsNLY7heKbsQl/yPXBrmLtlGGCfL47frxL4Gf42YxBOZcipPLViIL+NuqHgYapvDgXyQ== X-Received: by 2002:a05:6638:35a4:: with SMTP id v36mr1496847jal.112.1641870668660; Mon, 10 Jan 2022 19:11:08 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id d3sm5101796ilu.28.2022.01.10.19.11.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jan 2022 19:11:08 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 8E049800783; Mon, 10 Jan 2022 21:11:07 -0600 (CST) Date: Mon, 10 Jan 2022 21:11:07 -0600 From: Justin Pryzby To: Tom Lane Cc: Andres Freund , Laurenz Albe , pgsql-hackers@postgresql.org Subject: Re: Use -fvisibility=hidden for shared libraries Message-ID: <20220111031107.GU14051@telsasoft.com> References: <20211101020311.av6hphdl6xbjbuif@alap3.anarazel.de> <20211101054700.z3jzmc5lnxlad4y7@alap3.anarazel.de> <2499085.1641859296@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2499085.1641859296@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jan 10, 2022 at 07:01:36PM -0500, Tom Lane wrote: > Andres Freund writes: > > [ v2-0001-Use-hidden-visibility-for-shared-libraries-where-.patch ] > > This seems like a good idea, but it's failing to apply right now, > mainly because of some cleanup I did in e04a8059a. As far as I can > tell given the now-clarified meanings of PGDLLIMPORT/PGDLLEXPORT, > this patch shouldn't be touching PGDLLIMPORT. The attached revision > works for me under gcc 8.5 and clang 13. > > Also, it seemed like you'd maybe been more enthusiastic than necessary > about plastering PGDLLEXPORT on things. I got through check-world > cleanly without the diffs in either ltree.h or worker_spi.c (although > I confess being confused why I didn't need the latter). I didn't try > individually removing other diffs. Those diffs are still in v3 below, > but we should clarify exactly which functions need marking. Without the patch, it fails under windows like: https://cirrus-ci.com/task/6171477065072640 [01:44:45.399] c:\cirrus\contrib\ltree\ltree.h(193): message : see declaration of '_ltree_isparent' [c:\cirrus\ltree.vcxproj] [01:44:45.399] c:\cirrus\contrib\ltree\_ltree_op.c(16,1): error C2375: '_ltree_risparent': redefinition; different linkage [c:\cirrus\ltree.vcxproj] -- Justin