From: Andrew Dunstan <andrew@dunslane.net>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Strip -mmacosx-version-min options from plperl build
Date: Fri, 26 Aug 2022 10:04:35 -0400
Message-ID: <aea9bb91-2359-e5be-0fbf-3f721af4cbe4@dunslane.net> (raw)
In-Reply-To: <20220825221325.ribntcagils2fltx@awork3.anarazel.de>
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>
<c4afec71-ba16-c589-b094-66c2514afa4c@enterprisedb.com>
<1465158.1661434999@sss.pgh.pa.us>
<a9c57fe2-085d-7037-4178-f821c8148159@dunslane.net>
<20220825214739.wfn6qrkkinfex5c3@awork3.anarazel.de>
<e64be5d0-e38a-8eae-b083-f977b5dfd4bc@dunslane.net>
<20220825221325.ribntcagils2fltx@awork3.anarazel.de>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: andrew@dunslane.net, andres@anarazel.de, tgl@sss.pgh.pa.us, peter.eisentraut@enterprisedb.com
Subject: Re: Strip -mmacosx-version-min options from plperl build
In-Reply-To: <aea9bb91-2359-e5be-0fbf-3f721af4cbe4@dunslane.net>
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> <c4afec71-ba16-c589-b094-66c2514afa4c@enterprisedb.com> <1465158.1661434999@sss.pgh.pa.us> <a9c57fe2-085d-7037-4178-f821c8148159@dunslane.net> <20220825214739.wfn6qrkkinfex5c3@awork3.anarazel.de> <e64be5d0-e38a-8eae-b083-f977b5dfd4bc@dunslane.net> <20220825221325.ribntcagils2fltx@awork3.anarazel.de> <aea9bb91-2359-e5be-0fbf-3f721af4cbe4@dunslane.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox