Hello,
I have just finished installing libreoffice, but noticed early on in the build
that it failed with the following error:
/usr/include/c++/9.1.0/memory:179:3: error: template with C linkage
179 | template<typename _Tp, typename __ = _Require<__not_<__is_pair<_Tp>>>,
| ^~~~~~~~
After typing that error into google, I found that a gentoo user had filed a bug
report:
https://lists.freedesktop.org/archives/libreoffice/2019-March/082342.html
It seems that this is a bug or change introduced by icu developers. The link
in the above list to the patch, seems to only be for the binary version that
gentoo uses. A further search found that there are a few files that need to be
patched in icu, to allow it to successfully build libreoffice. Before I tried
the suggested patches, I tested the build with the "internal" version of icu
and the build failed with the same error.
I have not been able to find normal ".patch" files for the needed changes,
however, manually editing each of the files with the contents found below,
allow a successful compile and install of libreoffice:
https://github.com/unicode-org/icu/pull/572/files
Please note that this is on a clean install of lfs/blfs, so there are NO
versions earlier than what is published in the current svn version of the book.
That is the ONLY way to fairly test this.
Regards,
Christopher.
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page