Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Sep 2018 22:42:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        office@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 231273] editors/libreoffice fails to build with Python-2.7
Message-ID:  <bug-231273-25061-2SWdOAKt9Y@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-231273-25061@https.bugs.freebsd.org/bugzilla/>
References:  <bug-231273-25061@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-office mailing
list <office@FreeBSD.org> for maintainer-feedback:
Bug 231273: editors/libreoffice fails to build with Python-2.7
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231273



--- Description ---
The error:

[...]
/spare/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/pyuno/source/=
modu
le/pyuno_util.cxx:45:5:
error: static_assert failed "bad assumption"
    static_assert(sizeof (wchar_t) =3D=3D Py_UNICODE_SIZE, "bad assumption"=
);
    ^		  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/spare/usr/ports/editors/libreoffice/work/libreoffice-6.0.5.2/pyuno/source/=
modu
le/pyuno_util.cxx:46:18:
error: no matching function for call to 'PyUnicodeUCS2_FromUnicode'
    ret =3D 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.
[...]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231273-25061-2SWdOAKt9Y>