From owner-freebsd-java@FreeBSD.ORG Thu Jan 12 23:16:42 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 9948A16A420 for ; Thu, 12 Jan 2006 23:16:42 +0000 (GMT) (envelope-from ddurham@vailsys.com) Received: from dfrobd01.vailsys.com (chrobd01.vailsys.com [63.210.102.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0352743D49 for ; Thu, 12 Jan 2006 23:16:37 +0000 (GMT) (envelope-from ddurham@vailsys.com) Received: from dfsfbd06.vail (dfsfbd06.vail [192.168.129.190]) by dfrobd01.vailsys.com (Postfix) with ESMTP id DD07EFF35 for ; Thu, 12 Jan 2006 17:16:36 -0600 (CST) Received: from [192.168.129.86] (dfwddurham.vail [192.168.129.86]) by dfsfbd06.vail (Postfix) with ESMTP id 230105D3E for ; Thu, 12 Jan 2006 17:11:21 -0600 (CST) Message-ID: <43C6E219.8010107@vailsys.com> Date: Thu, 12 Jan 2006 17:11:21 -0600 From: David Durham User-Agent: Mozilla Thunderbird 1.0.6 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Thu, 12 Jan 2006 23:16:42 -0000 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? -Dave