From owner-freebsd-java@FreeBSD.ORG Mon Sep 11 18:45:12 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D45B116A403 for ; Mon, 11 Sep 2006 18:45:12 +0000 (UTC) (envelope-from patl+freebsd@volant.org) Received: from smtp.volant.org (gate.volant.org [207.111.218.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA29543D53 for ; Mon, 11 Sep 2006 18:45:11 +0000 (GMT) (envelope-from patl+freebsd@volant.org) Received: from adsl-065-081-071-131.sip.gnv.bellsouth.net ([65.81.71.131] helo=[192.168.1.103]) by smtp.volant.org with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34 (FreeBSD)) id 1GMqm8-000BaH-G8; Mon, 11 Sep 2006 11:45:06 -0700 Date: Mon, 11 Sep 2006 14:44:21 -0400 From: Pat Lashley To: Bruce Burden , freebsd-java@freebsd.org Message-ID: In-Reply-To: <20060906155059.GB1045@tigerfish2.my.domain> References: <44FEB496.1060908@radier.ca> <20060906155059.GB1045@tigerfish2.my.domain> X-Mailer: Mulberry/4.0.5 (Mac OS X) MIME-Version: 1.0 X-Scan-Signature: 6b0e88a2c241b3f507ba844e87d2895d20d5d2b3 X-Spam-User: nobody X-Spam-Score: -4.4 (----) X-Spam-Score-Int: -43 X-Spam-Report: This mail has matched the spam-filter tests listed below. See http://spamassassin.org/tag/ for details about the specific tests reported. In general, the higher the number of total points, the more likely that it actually is spam. (The 'required' number of points listed below is the arbitrary number above which the message is normally considered spam.) Content analysis details: (-4.4 points total, 5.0 required) 0.1 HTML_MESSAGE BODY: HTML included in message 0.1 HTML_FONTCOLOR_RED BODY: HTML font color is red -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.3 AWL AWL: Auto-whitelist adjustment Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Compiling java jdk15 on AMD64 FreeBSD 6.1 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: Mon, 11 Sep 2006 18:45:12 -0000 --On 6 September, 2006 10:50:59 -0500 Bruce Burden wrote: > > On Wed, Sep 06, 2006 at 07:44:22AM -0400, Dmitriy Fitisov wrote: > > Hello everyone, > > I may not compile java on FreeBSD 6.1 AMD64 > > > > ... > > Why are you (still) using linux_base-8 for you Linux > emulation? This is a very old, dated port. > > I have JDK1.5 installed with linux_base-fc4 on AMD64, and > things seem to work. It did take a few tries on the compilation, > but in the end... If you're trying to build the native jdk15, you don't actually have to use linux at all. Install the amd64 version of the diablo-jdk15 port; then apply the following patch to java/jdk15/Makefile and build jdk15: --- Makefile.dist Tue Aug 1 14:38:25 2006 +++ Makefile Wed Sep 6 09:31:08 2006 @@ -59,6 +59,8 @@ .if !defined(WITH_LINUX_BOOTSTRAP) .if ${MACHINE_ARCH} == "i386" NATIVE_BOOTSTRAP_JDKS+= ${LOCALBASE}/diablo-jdk1.5.0 +.elif ${MACHINE_ARCH} == "amd64" +NATIVE_BOOTSTRAP_JDKS+= ${LOCALBASE}/diablo-jdk1.5.0 .endif NATIVE_BOOTSTRAP_JDKS+= ${LOCALBASE}/jdk1.5.0 \ ${LOCALBASE}/jdk1.4.2 (That probably isn't the cleanest way to do that; but it's a simple copy-and-paste with a one-word replacement; which reduces the chances of introducing a typo. And it does allow for the possibility of [hopefully temporary] divergence between the amd64 and i386 version numbers on the diablo port.) I haven't yet tested the result thoroughly; but it builds OK and seems to work... -Pat