From owner-freebsd-java@freebsd.org Thu Feb 16 15:52:55 2017 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B07ACE2577 for ; Thu, 16 Feb 2017 15:52:55 +0000 (UTC) (envelope-from vladimirtt@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0D0FA1246 for ; Thu, 16 Feb 2017 15:52:55 +0000 (UTC) (envelope-from vladimirtt@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0C689CE2576; Thu, 16 Feb 2017 15:52:55 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C0A6CE2575 for ; Thu, 16 Feb 2017 15:52:55 +0000 (UTC) (envelope-from vladimirtt@gmail.com) Received: from mail-ua0-x22a.google.com (mail-ua0-x22a.google.com [IPv6:2607:f8b0:400c:c08::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BCC581245 for ; Thu, 16 Feb 2017 15:52:54 +0000 (UTC) (envelope-from vladimirtt@gmail.com) Received: by mail-ua0-x22a.google.com with SMTP id y9so13269697uae.2 for ; Thu, 16 Feb 2017 07:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=D3t4dbkw+/4xq9YsWUvtAh9qZc/w7hDfEEK6epsVH4U=; b=c6bu+f0TViliEAtU3Ab7CBWL+QVur+IyWVrdNZZEREqSbeIQra72XBk4lSEeLq3uX1 5G/HYvATXVY4N3iClmZJzLijtnkwcpVjW3z/pk6XkdFkOr1FI3JGLQHZnB3Q3THdCSRW 8rmpDujRUXWC+7DxyAcHBmmDc7wTkykIIQue+2n0KiRQU040w6nx6/eO6FpH9m+SdVOD 3xL4zCKXA8jknXTTJwRY4WxebnXgmj5BNgbPyCf51qbB3mx/0cZAIToagdTtFi9uJnkk q1cWXtJ4qXrZqVuMklBlmEJ4Jg/X16u33dtQDwaSCupAMwlPac6EY6fCrdl5wcVh6bD7 AKfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=D3t4dbkw+/4xq9YsWUvtAh9qZc/w7hDfEEK6epsVH4U=; b=RLUIp32SjdWFOxgmuaNYY3CYI1OewWp9E9mYrGq/OdhNvCKSstQLJIEyvq4Hd/5cmG l9UT6mMvEkcsRjo9DEbqnRZxpOdEyx8CbA6Y5VXLnjW+1Ox586yn/8tk/98iBuyT5Ifk jABlpiXqEo8drD8k6dcImX3dY90hPzgs1lC+jks6ZzHG07fYqMEWz65JuFDWuloraoH8 9N4b8/Uv2NMBzy2ldxGwd16NWLxXwpwoPIwUcx/pu9ig+UkvixE8+9FfPtY8nVQ5vCZ9 71ZzwuPA9llSgGJZ6ST1Am8epxR4xIUzvbxnE9j7du5Se4kScl/NpGCw35RWtIspoIDD wGig== X-Gm-Message-State: AMke39nL5NUaVelevYo7KpBOaP0eZoa7gj9QRHdmHJT4wMDg4ZukNnMKeDmRsHsThP++wNxW4SD36nCKqLmwqQ== X-Received: by 10.159.37.37 with SMTP id 34mr591722uaz.2.1487260373745; Thu, 16 Feb 2017 07:52:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.147.216 with HTTP; Thu, 16 Feb 2017 07:52:53 -0800 (PST) From: vladimirtt@gmail.com Date: Thu, 16 Feb 2017 17:52:53 +0200 Message-ID: Subject: icedtea-web port build failure To: java@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2017 15:52:55 -0000 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( )* 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