libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -DOPTIMIZE_X86_64 -Werror=terminate -O2 -pipe -march=native -DNDEBUG -Wa,--noexecstack -c String.cxx -fPIC -DPIC -o .libs/String.o String.cxx: In constructor ‘beecrypt::lang::String::String(char)’: String.cxx:59:33: error: invalid conversion from ‘short unsigned int*’ to ‘UChar* {aka char16_t*}’ [-fpermissive] u_charsToUChars(&c, _value.data(), 1); ~~~~~~~~~~~^~ In file included from /usr/include/unicode/ustring.h:22:0, ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: gnome_20170512-200401 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-6.3.0 * Available Python interpreters, in order of preference: [1] python3.4 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby21 (with Rubygems) [2] ruby22 (with Rubygems) * java-config: The following VMs are available for generation-2: 1) IcedTea JDK 7.2.6.9 [icedtea-bin-7] *) IcedTea JDK 3.3.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-7 [2] icedtea-bin-8 system-vm
Created attachment 472840 [details] emerge-info.txt
Created attachment 472842 [details] config.log.tbz2
Created attachment 472844 [details] dev-libs:beecrypt-4.2.1-r4:20170516-122313.log
Created attachment 472846 [details] emerge-history.txt
Created attachment 472848 [details] environment
Created attachment 472850 [details] etc.portage.tbz2
Created attachment 472852 [details] temp.tbz2
*** Bug 618852 has been marked as a duplicate of this bug. ***
*** Bug 618946 has been marked as a duplicate of this bug. ***
Created attachment 493998 [details, diff] patch: convert all jchar* to UChar* beecrypt's c++ api uses jchar arrays for strings, while ICU 59 expects char16_t type In practice these both seem to be defined as short int on amd64 so it might be okay to just reinterpret_cast them? There's probably no easy way out on a platform where char16_t won't match jchar With this patch, beecrypt builds and passes all tests for me
Anotehr confirmation that the patch works for me.
Works here as well.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e91c58f05f9ebb9cf9d15a1132356051b928fe22 commit e91c58f05f9ebb9cf9d15a1132356051b928fe22 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2017-12-01 20:23:04 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2017-12-01 20:23:04 +0000 dev-libs/beecrypt: Fix compilation with >=dev-libs/icu-59. Closes: https://bugs.gentoo.org/618676 Package-Manager: Portage-2.3.16, Repoman-2.3.6 dev-libs/beecrypt/Manifest | 2 +- dev-libs/beecrypt/beecrypt-4.2.1-r4.ebuild | 1 + .../beecrypt/files/beecrypt-4.2.1-cast-uchar.patch | 214 +++++++++++++++++++++ 3 files changed, 216 insertions(+), 1 deletion(-)
*** Bug 640246 has been marked as a duplicate of this bug. ***