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 1oR4GE-0007MD-Le for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Aug 2022 04:14:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oR4GC-0006kz-9f for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Aug 2022 04:14:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oR4GB-0006kq-Pl for pgsql-hackers@lists.postgresql.org; Thu, 25 Aug 2022 04:14:28 +0000 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oR4G7-0002lF-Px for pgsql-hackers@postgresql.org; Thu, 25 Aug 2022 04:14:27 +0000 Received: by mail-qk1-x732.google.com with SMTP id j6so14286971qkl.10 for ; Wed, 24 Aug 2022 21:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc; bh=tp1ZGWqNjr1FQJSlSLqFJBJvo8E44fO5hl74V3G2BbA=; b=UvzNaJs0ie55aDtI7x6vi1fPSK8ZADgKwDl4BYvzv/ywGoQWKzID/d9GtmKLSGToNC w1WiIFUeUUq0XjFor2DZqitwx/cj225brP3xKUi/oY4w4b0RODXjrfhiFrKpdEOukx1A 7g5NB/ib+tA+vU7bTvoV9ar0JHnXGWQm2tKZ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=tp1ZGWqNjr1FQJSlSLqFJBJvo8E44fO5hl74V3G2BbA=; b=p1F97t9en8tTXsXBTDkr8c+FP3cxiGn5bHk5ti/v9FZ7NeXNE/vDuVO81knKCFfK07 F7xh3r+JY8xlW/YvVM2nJAB86MnOCOqu9p0XYpC7XrDEQ1/vCZiKEgeW+x1B/TKKvmUE Y0RXysehSdv4b2CWu8BTs6CM5Z1AOWU79q9v+VMJCItZyJRcJvn9VvqxN+DuRWKjWDQQ 9kip5h4BdwVjLSjyZexX9KXRq6Gv3riI5cXSabNyiYa5BDfxm/gk1seVLZIQtaHetKWy VqVynn1EdKtsB2Yyptr2bSoValmo1a44ymtErKynNPVxVhGtY28xg7vCZ/+12YF675YT EeRg== X-Gm-Message-State: ACgBeo0dA7tQySbCuSaBq4f7QnN3BYqERNKvlcY5r/bFTNEoqH30pnVG UMoMXOYiFdBVSLtYjEH+YMA1PA== X-Google-Smtp-Source: AA6agR5LUaEgIs3tdwDFVyZEry2FDbPUFnQl485/ENRoIoWzlBIJVOYxDf/Hi60hQpniUzTxhKsUdw== X-Received: by 2002:a05:620a:1343:b0:6bc:139:2fc4 with SMTP id c3-20020a05620a134300b006bc01392fc4mr1718913qkl.637.1661400861939; Wed, 24 Aug 2022 21:14:21 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::2e]) by smtp.gmail.com with ESMTPSA id h15-20020a05620a244f00b006bb9381aee4sm16449606qkn.30.2022.08.24.21.14.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Aug 2022 21:14:20 -0700 (PDT) Date: Wed, 24 Aug 2022 21:14:18 -0700 From: Noah Misch To: Andres Freund Cc: pgsql-hackers@postgresql.org, robertmhaas@gmail.com Subject: Re: static libpq (and other libraries) overwritten on aix Message-ID: <20220825041418.GA748995@rfd.leadboat.com> References: <20220817190154.nnu27rvcleu2764m@awork3.anarazel.de> <20220818045929.GB410601@rfd.leadboat.com> <20220818160357.w7cbzw6o7eacqe72@awork3.anarazel.de> <20220819055643.GB442595@rfd.leadboat.com> <20220820083522.i5wocl3xugarzxcn@awork3.anarazel.de> <20220820174213.d574qde4ptwdzoqz@awork3.anarazel.de> <20220825034304.tb5ogv2fdzfijagw@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825034304.tb5ogv2fdzfijagw@awork3.anarazel.de> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Aug 24, 2022 at 08:43:04PM -0700, Andres Freund wrote: > On 2022-08-20 10:42:13 -0700, Andres Freund wrote: > > 0004 aix: when building with gcc, tell gcc we're building a shared library > > > > That's the gcc -shared issue I explained in the email I'm replying to. > > > > We should probably consider building executables with -shared-libgcc too, > > that shrinks them a decent amount (e.g. 1371684 -> 1126765 for psql). But > > I've not done that here. > > > > > > 0005 aix: No need to use mkldexport when we want to export all symbols > > > > This makes the building of shared libraries a lot more similar to other > > platforms. Export files are only used when an exports.txt is present and > > there's no more intermediary static libraries. > > > > > > 0006 configure: Expand -fvisibility checks to more compilers, add -qvisibility > > > > This isn't strictly speaking part of the same "thread" of work, but I don't > > want to touch aix more often than I have too... I'll post it in the other > > thread too. > > > > I did just test that this passes at least some tests on aix with xlc and > > solaris with sunpro. > > Any comments here? I don't know much about them, but they sound like the sort of thing that can't cause subtle bugs. If they build and test the first time, they're probably valid. You may as well push them.