[Bug 231273] editors/libreoffice fails to build with Python-2.7
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Sep 9 22:42:15 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231273
Bug ID: 231273
Summary: editors/libreoffice fails to build with Python-2.7
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: office at FreeBSD.org
Reporter: mi at FreeBSD.org
Assignee: office at FreeBSD.org
Flags: maintainer-feedback?(office at FreeBSD.org)
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.
[...]
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-office
mailing list