| Summary: | editors/libreoffice: Fails to build with Python 2.7 | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Mikhail Teterin <mi> |
| Component: | Individual Port(s) | Assignee: | Li-Wen Hsu <lwhsu> |
| Status: | Closed FIXED | ||
| Severity: | Affects Some People | CC: | lwhsu, office, python, vvd, w.schwarzenfeld |
| Priority: | --- | Keywords: | needs-qa |
| Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(office) |
| Hardware: | Any | ||
| OS: | Any | ||
The error: [...] /spare/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/pyuno/source/module/pyuno_util.cxx:45:5: error: static_assert failed "bad assumption" static_assert(sizeof (wchar_t) == Py_UNICODE_SIZE, "bad assumption"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /spare/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/pyuno/source/module/pyuno_util.cxx:46:18: error: no matching function for call to 'PyUnicodeUCS2_FromUnicode' ret = PyRef( PyUnicode_FromUnicode( reinterpret_cast<wchar_t const *>(str.getStr()), str.getLength() ), SAL_NO_ACQUIRE ); ^~~~~~~~~~~~~~~~~~~~~ /opt/include/python2.7/unicodeobject.h:196:32: note: expanded from macro 'PyUnicode_FromUnicode' # define PyUnicode_FromUnicode PyUnicodeUCS2_FromUnicode ^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/include/python2.7/unicodeobject.h:464:23: note: candidate function not viable: no known conversion from 'const wchar_t *' to 'const Py_UNICODE *' (aka 'const unsigned short *') for 1st argument PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( ^ /opt/include/python2.7/unicodeobject.h:196:32: note: expanded from macro 'PyUnicode_FromUnicode' # define PyUnicode_FromUnicode PyUnicodeUCS2_FromUnicode ^ 7 warnings and 2 errors generated. [...]