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 1oRZx6-0005Kj-EG for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Aug 2022 14:04:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oRZx5-0003jc-9I for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Aug 2022 14:04:51 +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 1oRZx4-0003jN-VZ for pgsql-hackers@lists.postgresql.org; Fri, 26 Aug 2022 14:04:50 +0000 Received: from relay2-d.mail.gandi.net ([2001:4b98:dc4:8::222]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRZx2-0006qd-Ct for pgsql-hackers@postgresql.org; Fri, 26 Aug 2022 14:04:49 +0000 Received: (Authenticated sender: adsend@dunslane.net) by mail.gandi.net (Postfix) with ESMTPSA id AE53C40004; Fri, 26 Aug 2022 14:04:38 +0000 (UTC) Message-ID: Date: Fri, 26 Aug 2022 10:04:35 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Strip -mmacosx-version-min options from plperl build Content-Language: en-US To: Andres Freund Cc: Tom Lane , Peter Eisentraut , pgsql-hackers References: <843fbed9-0749-bba4-b6b0-e3e7d1244b0d@enterprisedb.com> <1009406.1661347818@sss.pgh.pa.us> <65922608-fe34-fee0-a0be-82b6cd7daaea@dunslane.net> <1181344.1661381760@sss.pgh.pa.us> <27e1214f-26e8-7970-ad08-6da1bccdf985@dunslane.net> <1465158.1661434999@sss.pgh.pa.us> <20220825214739.wfn6qrkkinfex5c3@awork3.anarazel.de> <20220825221325.ribntcagils2fltx@awork3.anarazel.de> From: Andrew Dunstan In-Reply-To: <20220825221325.ribntcagils2fltx@awork3.anarazel.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-08-25 Th 18:13, Andres Freund wrote: > Hi, > > On 2022-08-25 18:04:34 -0400, Andrew Dunstan wrote: >> On 2022-08-25 Th 17:47, Andres Freund wrote: >>>> $ egrep '_PG_init|Pg_magic_func'  plperl.i >>>> extern __attribute__((visibility("default"))) void _PG_init(void); >>>> extern __attribute__((visibility("default"))) const Pg_magic_struct >>>> *Pg_magic_func(void); const Pg_magic_struct * Pg_magic_func(void) { >>>> static const Pg_magic_struct Pg_magic_data = { sizeof(Pg_magic_struct), >>>> 160000 / 100, 100, 32, 64, >>>> _PG_init(void) >>> Could you show objdump -t of the library? Perhaps once with the flags as now, >>> and once relinking with the "old" flags that we're now omitting? >> >> current: >> >> >> $ objdump -t plperl.dll | egrep '_PG_init|Pg_magic_func' >> [103](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000000040a0 >> Pg_magic_func >> [105](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000000040b0 _PG_init >> >> >> from July 11th build: >> >> >> $ objdump -t plperl.dll | egrep '_PG_init|Pg_magic_func' >> [101](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000000040d0 >> Pg_magic_func >> [103](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000000040e0 _PG_init > Thanks. > > So it looks like it's not the symbol not being exported. I wonder if the image > base thing is somehow the problem? Sounds like it should just be an efficiency > difference, by avoiding some relocations, not a functional difference. > > Can you try adding just that to the flags for building and whether that then > allows a LOAD 'plperl' to succeed? > Adding what? cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com