From owner-freebsd-java@FreeBSD.ORG Fri Jan 13 09:44:52 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 2DC8716A41F for ; Fri, 13 Jan 2006 09:44:52 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2496B43D49 for ; Fri, 13 Jan 2006 09:44:49 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id k0D9ilAF074851; Fri, 13 Jan 2006 11:44:48 +0200 (EET) (envelope-from past@ebs.gr) Received: from [10.1.1.158] (pc158.ebs.gr [10.1.1.158]) by ebs.gr (8.13.3/8.12.11) with ESMTP id k0D9jY1i046391; Fri, 13 Jan 2006 11:45:39 +0200 (EET) (envelope-from past@ebs.gr) Message-ID: <43C7768A.7090608@ebs.gr> Date: Fri, 13 Jan 2006 11:44:42 +0200 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051223) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Durham References: <43C6E219.8010107@vailsys.com> In-Reply-To: <43C6E219.8010107@vailsys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: jdk15 build fail 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: Fri, 13 Jan 2006 09:44:52 -0000 David Durham wrote: > Hi all-- > > I posted previously, and I'm rereposting that I'm still unable to build > jdk15. I'll try again to provide more details. One question is where > can I find a guide to the installation process? I've been using this > list and the freebsd java page: http://www.freebsd.org/java/. If I > don't get help soon, I'm switching to Linux... just kidding. So, here > goes again, these are the steps I've taken and the error details are at > the end. > > > 1) Linux compatability > > I added this on initial installation of FreeBSD 6.0-release. I have the > following in /etc/fstab: > > linprocfs /compat/linux/proc linprocfs rw 0 0 > > and this seems to be working properly. > > 2) cvsup of ports-base and ports-java to release=cvs, tag=. > > 3) make install of linux-sun-jdk14 ran successfully. > > $ java > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack > location > > Usage ... > > > 4) make install of jdk15 fails. /usr/ports/distfiles contains: > > bsd-jdk15-patches-2.tar.bz2 > jdk-1_5_0-bin-scsl.zip > > > Error details follow: > ---------------------- > Patching file j2se/src/solaris/transport/socket/socket_md.c using Plan A... > Hunk #1 succeeded at 17. > Hunk #2 succeeded at 264. > done > ===> Applying FreeBSD patches for jdk-1.5.0p2_3 > Ignoring previously applied (or reversed) patch. > 1 out of 1 hunks ignored--saving rejects to > ../../hotspot/src/os/bsd/vm/os_bsd.inline.hpp.rej > => Patch patch-hotspot-vm-os_bsd.inline.hpp failed to apply cleanly. > => Patch(es) patch-control::common::Defs-bsd.gmk > patch-deploy::common::Defs-bsd.gmk > patch-deploy::common::DeployRules-solaris.gmk > patch-deploy::native::msgString.c patch-deploy::native::system_md.c > patch-deploy::native::system_md.h patch-deploy::ns7-adapter::Makefile > applied cleanly. > *** Error code 1 > > Stop in /usr/ports/java/jdk15. > --------------------------- > > > Here's the contents of os_bsd.inline.hpp.rej: > --------------------------- > *************** > *** 29,38 **** > > inline bool os::allocate_stack_guard_pages() { > assert(uses_stack_guard_pages(), "sanity check"); > - // XXXBSD: ?? > - // return thr_main(); > - // return pthread_main_np(); > - return true; > } > > > --- 29,37 ---- > > inline bool os::allocate_stack_guard_pages() { > assert(uses_stack_guard_pages(), "sanity check"); > + // Since FreeBSD 4 uses malloc() for allocating the thread stack > + // there is no need to do anything extra to allocate the guard pages > + return false; > } > ------------------------------- > > > Does anyone see what I'm doing wrong? Remove the offending file from ports/java/jdk15/files/ or even better remove the entire directory and re-cvsup. Cheers, Panagiotis