Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


Le 21/01/16 19:18, Richard PALO a écrit :
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?

Guess I omitted saying this was 5.1.0.2

-- 
Richard PALO


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.