Re: PostgreSQL 9.5 Alpha 1 build fail with perl 5.22

From: Noah Misch <noah(at)leadboat(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Marco Atzeri <marco(dot)atzeri(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: PostgreSQL 9.5 Alpha 1 build fail with perl 5.22
Date: 2015-07-14 05:07:08
Message-ID: 20150714050708.GA1139709@tornado.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-announce pgsql-hackers

On Mon, Jul 13, 2015 at 06:19:49PM -0400, Andrew Dunstan wrote:
> >>>On 7/13/2015 5:36 PM, Andrew Dunstan wrote:
> >>>>hstore_plpython.o: In function `hstore_to_plpython':
> >>>>/home/andrew/bf64/root/HEAD/pgsql/contrib/hstore_plpython/hstore_plpython.c:35:
> >>>>undefined reference to `PLyUnicode_FromStringAndSize'

> The functions are in fact apparently built - the names are present in the
> object file and the DLL.

Per "objdump -x src/pl/plpython/plpython3.dll | less -pOrdinal/Name", those
symbols aren't exported. The Cygwin toolchain appears to export every
function until you mark one with __declspec (dllexport), after which it
exports just the ones so marked. Since plpython3.dll has an explicit
__declspec on PyInit_plpy(), that's the sole function exported. Adding
-Wl,--export-all-symbols to the PL/Python link lets the build complete; I have
not researched whether it is a proper fix.

In response to

Browse pgsql-announce by date

  From Date Subject
Next Message David Fetter 2015-07-19 22:58:24 == PostgreSQL Weekly News - July 19 2015 ==
Previous Message Andrew Dunstan 2015-07-14 01:28:44 Re: PostgreSQL 9.5 Alpha 1 build fail with perl 5.22

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2015-07-14 06:31:35 Re: TABLESAMPLE doesn't actually satisfy the SQL spec, does it?
Previous Message Michael Paquier 2015-07-14 03:00:57 Re: Forensic recovery deleted pgdump custom format file