Date: Thu, 16 Feb 2017 17:52:53 +0200 From: vladimirtt@gmail.com To: java@freebsd.org Subject: icedtea-web port build failure Message-ID: <CAJdHfhoXJbQkgNiHRa_8FxD2uPROkAFLcJ2K7NWUx4VO7K2G5g@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello FreeBSD Java Team, i try to build the icedtea-web port on a FreeBSD 11.0R amd64. I have encountered the following error during compilation: */usr/ports/java/icedtea-web/work/icedtea-web-1.6.2/plugin/icedteanp/IcedTeaPluginUtils.cc:1020:29: error: non-constant-expression cannot be narrowed from type 'size_type' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]* * NPString npstr = {utf8, result.size()}; ^~~~~~~~~~~~~/usr/ports/java/icedtea-web/work/icedtea-web-1.6.2/plugin/icedteanp/IcedTeaPluginUtils.cc:1020:29: note: insert an explicit cast to silence this issue NPString npstr = {utf8, result.size()}; ^~~~~~~~~~~~~ static_cast<uint32_t>( )* The issue seems to be caused by size_t type not being the same size as uint32_t on 64bit platforms. I could easily cast size_to to uit32_t, but i'm not sure this is the correct resolution of the issue. Have you encountered the issue before ? Regards, Vladimir
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJdHfhoXJbQkgNiHRa_8FxD2uPROkAFLcJ2K7NWUx4VO7K2G5g>