From owner-freebsd-java@FreeBSD.ORG Mon Apr 5 07:20:54 2004 Return-Path: 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 801DB16A4CE for ; Mon, 5 Apr 2004 07:20:54 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id C0CB343D4C for ; Mon, 5 Apr 2004 07:20:53 -0700 (PDT) (envelope-from christian.hofer@gmx.de) Received: (qmail 766 invoked by uid 65534); 5 Apr 2004 14:20:51 -0000 Received: from p5080E8E9.dip0.t-ipconnect.de (EHLO gmx.de) (80.128.232.233) by mail.gmx.net (mp015) with SMTP; 05 Apr 2004 16:20:51 +0200 X-Authenticated: #2522098 Message-ID: <40716B45.7020600@gmx.de> Date: Mon, 05 Apr 2004 16:20:53 +0200 From: Christian Hofer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031208 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Pullara References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: FreeBSD 5.2.1. - JDK 1.4 installation from ports collection X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 14:20:54 -0000 David Pullara wrote: >As I understand it you need the linux jdk to build the native one. >I noticed I got that same "can't detect" error when running the linux >java before I switched to the native one. However, before I switched >I found these instructions either from this mailing list or with a >google search: > > # kldload linprocfs > # mount -t linprocfs linprocfs /compat/linux/proc > >Once I did that I didn't get that warning anymore. > > > The second time I tried the installation (after getting the error the first time), I got explicit instructions to load the kernel module and mount the linproc pseudo filesystem as described. But if this is the source of the bug, then it has already been to late: the CurrencyData-File was already corrupted by the error message. So I had to manually delete it. It would actually be two bugs then: 1. It seems strange that a compiler warning is inserted in the beginning of a java file, causing the failing to parse this file later, and resulting in a strange "can't detect" error. 2. The port's Makefile has to check, if linprocfs is mounted, already the first time, that "make install" is done, not only in the second attempt. But the actual behaviour (to check only the second time) seems to be rather strange. Thus, my impression was, that the non-mounted Linux proc filesystem is not the cause of the error. I thought that the mounting of this pseudo file system happens automatically the first time you run "make install", and is only forgotten the second time, causing the above message. My explanation would be, that only the warning, which normally would be ignored, is misdirected into the file. But this is only speculation and somebody competent should check it. Chris >So if I'm understanding this correctly and after looking at the >file, CurrencyData.java seems to be generated by a java program; >maybe they redirect the output to a file, hence that warning >showing up in the source. So maybe the solution is to do the >above commands before building the native jdk? (Maybe the build >scripts can check for that, if that is a good idea?) > >d > >