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.


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to