Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618676 - dev-libs/beecrypt-4.2.1-r4 with ICU >=59: String.cxx:59:33: error: invalid conversion from ‘short unsigned int*’ to ‘UChar* {aka char16_t*}’
Summary: dev-libs/beecrypt-4.2.1-r4 with ICU >=59: String.cxx:59:33: error: invalid co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 618852 618946 640246 (view as bug list)
Depends on:
Blocks: icu-59
  Show dependency tree
 
Reported: 2017-05-16 17:00 UTC by Toralf Förster
Modified: 2017-12-11 19:02 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,6.01 KB, text/plain)
2017-05-16 17:01 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,13.73 KB, application/x-bzip)
2017-05-16 17:01 UTC, Toralf Förster
Details
dev-libs:beecrypt-4.2.1-r4:20170516-122313.log (dev-libs:beecrypt-4.2.1-r4:20170516-122313.log,48.68 KB, text/plain)
2017-05-16 17:01 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,136.72 KB, text/plain)
2017-05-16 17:01 UTC, Toralf Förster
Details
environment (environment,201.75 KB, text/plain)
2017-05-16 17:01 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,22.71 KB, application/x-bzip)
2017-05-16 17:01 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,48.47 KB, application/x-bzip)
2017-05-16 17:01 UTC, Toralf Förster
Details
patch: convert all jchar* to UChar* (0010-cast-uchar.patch,8.44 KB, patch)
2017-09-11 13:56 UTC, Valeriy Malov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-05-16 17:00:58 UTC
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
Comment 1 Toralf Förster gentoo-dev 2017-05-16 17:01:01 UTC
Created attachment 472840 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-05-16 17:01:04 UTC
Created attachment 472842 [details]
config.log.tbz2
Comment 3 Toralf Förster gentoo-dev 2017-05-16 17:01:07 UTC
Created attachment 472844 [details]
dev-libs:beecrypt-4.2.1-r4:20170516-122313.log
Comment 4 Toralf Förster gentoo-dev 2017-05-16 17:01:10 UTC
Created attachment 472846 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-05-16 17:01:13 UTC
Created attachment 472848 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-05-16 17:01:16 UTC
Created attachment 472850 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-05-16 17:01:19 UTC
Created attachment 472852 [details]
temp.tbz2
Comment 8 Pacho Ramos gentoo-dev 2017-06-04 11:17:27 UTC
*** Bug 618852 has been marked as a duplicate of this bug. ***
Comment 9 Pacho Ramos gentoo-dev 2017-06-04 11:17:36 UTC
*** Bug 618946 has been marked as a duplicate of this bug. ***
Comment 10 Valeriy Malov 2017-09-11 13:56:59 UTC
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
Comment 11 Jack 2017-10-27 21:31:25 UTC
Anotehr confirmation that the patch works for me.
Comment 12 Austin English (RETIRED) gentoo-dev 2017-11-30 19:59:16 UTC
Works here as well.
Comment 13 Larry the Git Cow gentoo-dev 2017-12-01 20:25:18 UTC
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(-)
Comment 14 Pacho Ramos gentoo-dev 2017-12-11 19:02:37 UTC
*** Bug 640246 has been marked as a duplicate of this bug. ***