icedtea-web port build failure
vladimirtt at gmail.com
vladimirtt at gmail.com
Thu Feb 16 15:52:55 UTC 2017
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
More information about the freebsd-java
mailing list