From owner-freebsd-java@FreeBSD.ORG Thu Aug 9 21:12:07 2007 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B683216A41B for ; Thu, 9 Aug 2007 21:12:07 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 38FD013C458 for ; Thu, 9 Aug 2007 21:12:07 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l79LC3AQ075863 for ; Thu, 9 Aug 2007 17:12:03 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-java@FreeBSD.org Date: Thu, 9 Aug 2007 17:11:56 -0400 User-Agent: KMail/1.6.2 References: <20070803053142.GA4434@misty.eyesbeyond.com> <46B5EDF6.3020603@gmail.com> <200708091645.05680.jkim@FreeBSD.org> In-Reply-To: <200708091645.05680.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_gM4uG4EvgvRU/jp" Message-Id: <200708091712.00200.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.90.2/3907/Thu Aug 9 16:17:20 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Subject: Re: JDK 1.6.0 patchset 1 "Brumby" X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2007 21:12:07 -0000 --Boundary-00=_gM4uG4EvgvRU/jp Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thursday 09 August 2007 04:44 pm, Jung-uk Kim wrote: > On Sunday 05 August 2007 11:34 am, Rene Ladan wrote: > > I tried installing this on my i386 FreeBSD-CURRENT SMP box > > (2007-08-04 06:32 UTC) using diablo-jdk15 as bootstrap. The > > build first failed because of GCC 4.2 warnings-as-errors about > > deprecated string conversions. After commenting out a -Werror in > > work/hotspot/build/bsd/makefiles/gcc.make , the hotspot-fastdebug > > server built fine, but it failed in test_gamma. I've attached > > the hs_err log. > > The attached patch should fix the build problem on -CURRENT. Sorry, the attachment was removed. Re-attaching... Jung-uk Kim --Boundary-00=_gM4uG4EvgvRU/jp Content-Type: text/plain; charset="iso-8859-1"; name="patch-jdk16.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-jdk16.diff" --- ../../hotspot/src/os/bsd/vm/jvm_bsd.cpp 28 Mar 2007 04:52:29 -0000 1.1 +++ ../../hotspot/src/os/bsd/vm/jvm_bsd.cpp 9 Aug 2007 16:12:56 -0000 1.3 @@ -116,8 +116,8 @@ */ struct siglabel { - char *name; - int number; + const char *name; + int number; }; struct siglabel siglabels[] = --- ../../hotspot/src/os/bsd/vm/vmError_bsd.cpp 28 Mar 2007 04:52:29 -0000 1.1 +++ ../../hotspot/src/os/bsd/vm/vmError_bsd.cpp 9 Aug 2007 15:52:44 -0000 1.3 @@ -30,7 +30,7 @@ // Unlike system(), this function can be called from signal handler. It // doesn't block SIGINT et al. int VMError::fork_and_exec(char* cmd) { - char * argv[4]; + const char *argv[4]; argv[0] = "sh"; argv[1] = "-c"; argv[2] = cmd; --- ../../hotspot/src/share/vm/opto/escape.cpp 21 Jul 2006 17:22:54 -0000 1.1.1.2 +++ ../../hotspot/src/share/vm/opto/escape.cpp 9 Aug 2007 16:24:59 -0000 1.3 @@ -35,21 +35,21 @@ } #ifndef PRODUCT -static char *node_type_names[] = { +static const char *node_type_names[] = { "UnknownType", "JavaObject", "LocalVar", "Field" }; -static char *esc_names[] = { +static const char *esc_names[] = { "UnknownEscape", "NoEscape ", "ArgEscape ", "GlobalEscape " }; -static char *edge_type_suffix[] = { +static const char *edge_type_suffix[] = { "?", // UnknownEdge "P", // PointsToEdge "D", // DeferredEdge --Boundary-00=_gM4uG4EvgvRU/jp--