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

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231273

            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@FreeBSD.org
          Reporter: mi@FreeBSD.org
          Assignee: office@FreeBSD.org
             Flags: maintainer-feedback?(office@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) =3D=3D 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 =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.
[...]

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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