[blfs-dev] Libreoffice breakage

Ken Moffat zarniwhoop at ntlworld.com
Thu Aug 2 19:07:49 PDT 2018


On Thu, Aug 02, 2018 at 11:47:16PM +0100, Ken Moffat wrote:
> With book versions from 31st July libreoffice craps out:
> 
> [build CXX] pyuno/source/module/pyuno.cxx
> In file included from /scratch/working/libreoffice-6.0.1.1/pyuno/source/module/pyuno.cxx:44:
> /scratch/working/libreoffice-6.0.1.1/pyuno/source/module/pyuno_impl.hxx: In function 'char* PyStr_AsString(PyObject*)':
> /scratch/working/libreoffice-6.0.1.1/pyuno/source/module/pyuno_impl.hxx:85:28: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
>      return PyUnicode_AsUTF8(object);
>             ~~~~~~~~~~~~~~~~^~~~~~~~
> /scratch/working/libreoffice-6.0.1.1/pyuno/source/module/pyuno.cxx: At global scope:
> /scratch/working/libreoffice-6.0.1.1/pyuno/source/module/pyuno.cxx:1551:59: warning: cast between incompatible function types from 'PyObject* (*)(PyObject*)' {aka '_object* (*)(_object*)'} to 'PyCFunction' {aka '_object* (*)(_object*, _object*)'} [-Wcast-function-type]
>      {"__dir__",    reinterpret_cast<PyCFunction>(PyUNO_dir),    METH_NOARGS,  nullptr},
>                                                            ^
> google has no matches, no idea if this is a gcc or python3 change.
> Any ideas ?
> 
Probably python.  Fedora had a patch for LO-6.0.5.2 (they dropped it
for 6.0.6.1).

https://src.fedoraproject.org/rpms/libreoffice/tree/b0c6e99a6b1a9147f1eb8c767c1e264dc45ee94e

(0001-const-fixes-for-python3-devel-3.7.0-1.fc29.x86_64.patch)

-- 
           Entropy not found, thump keyboard to continue



More information about the blfs-dev mailing list