Py_hash_t on python27

Richard PALO richard at netbsd.org
Thu Jan 21 10:18:52 PST 2016


HI, came across some issues on SunOS with python2.7.

> [build LNK] Library/libbasegfxlo.so
> /tmp/pkgsrc/misc/libreoffice/work/libreoffice-5.1.0.2/pyuno/source/module/pyuno.cxx:387:1: error: 'Py_hash_t' does not name a type
>  Py_hash_t PyUNO_hash( PyObject *self )
>  ^
> /tmp/pkgsrc/misc/libreoffice/work/libreoffice-5.1.0.2/pyuno/source/module/pyuno.cxx:1660:5: error: 'PyUNO_hash' was not declared in this scope
>      PyUNO_hash,
>      ^

The following seems to get over that:
> --- /tmp/pkgsrc/misc/libreoffice/work/libreoffice-5.1.0.2/pyuno/source/module/pyuno_impl.hxx.orig	2016-01-13 01:56:20.000000000 +0000
> +++ /tmp/pkgsrc/misc/libreoffice/work/libreoffice-5.1.0.2/pyuno/source/module/pyuno_impl.hxx
> @@ -26,7 +26,7 @@
>  
>  #include <Python.h>
>  
> -#if PY_VERSION_HEX < 0x02070000
> +#if PY_VERSION_HEX <= 0x02071100
>  typedef long Py_hash_t;
>  #endif

Isn't this a python3 feature?
-- 
Richard PALO




More information about the LibreOffice mailing list