From owner-freebsd-java@FreeBSD.ORG Sun Aug 17 15:06:29 2003 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 657AD37B401 for ; Sun, 17 Aug 2003 15:06:29 -0700 (PDT) Received: from cableaz.com (mail.cableaz.com [66.218.238.20]) by mx1.FreeBSD.org (Postfix) with SMTP id B0A6543F75 for ; Sun, 17 Aug 2003 15:06:28 -0700 (PDT) (envelope-from desertfox@cableaz.com) Received: (qmail 25588 invoked by uid 0); 17 Aug 2003 22:06:27 -0000 Received: from unknown (HELO CopperLeafAngel) (66.218.239.229) by 0 with SMTP; 17 Aug 2003 22:06:27 -0000 From: Erick Smith To: freebsd-java@freebsd.org Date: Sun, 17 Aug 2003 15:06:24 -0700 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308171506.24910.desertfox@cableaz.com> Subject: Large ClientServer app...some info 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: Sun, 17 Aug 2003 22:06:29 -0000 OK, at this time I can't be too specific, but I'm working on it. The reason I can't be too specific is because the jdk doesn't actually report any errors, it simply hangs. The Details: This is a client-Server app with the client delivered via an Applet (JApplet actually) in a web page. Accessible from the internet. You can check it out yourself at: http://www.manifestdestinygame.com/testMD-BSD.html Bear in mind the version running on the web page is using the linux-sun-jdk1.4.1 because this works, albeit slow. When using the native jdk, the server locks up before clients can even access it. It locks up parsing text files using the tokenizer. It hangs usually during the second use of my parser class (I can make the code accessible if you need it, it's not too complicated). However, if I do less reporting to the console, the parser will last til the 3rd run through (3 seperate txt files, same parser code), so perhaps this is a garbage collection issue. The text files are quite long (>10000 entries in some cases), and the Parser seems to lock generally after about 3000 tokens processed, again though, this can be manipulated to hang during the second or third pass. The client side hangs waiting for information from the socket. I'm not sure how relavant this is though, because the only time I can get the native-jdk to connect is when the server is using the linux-sun base because otherwise the server hangs before sockets are set up. Again, the JVM says nothing to the console or otherwise, the system just hangs. I hope this helps some. As I said, I'd be willing to post code if necc., so long as it isn't redistributed for any other purpose than fixing the native jdk. Thanks, Erick Smith From owner-freebsd-java@FreeBSD.ORG Sun Aug 17 22:59:36 2003 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 4063A37B401 for ; Sun, 17 Aug 2003 22:59:36 -0700 (PDT) Received: from gddsn.org.cn (mail.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 836E643F3F for ; Sun, 17 Aug 2003 22:59:35 -0700 (PDT) (envelope-from hwh@gddsn.org.cn) Received: from gddsn.org.cn (gw [210.21.6.34]) by gddsn.org.cn (Postfix) with ESMTP id AB26538CB01 for ; Mon, 18 Aug 2003 13:59:28 +0800 (CST) Message-ID: <3F406B40.9020109@gddsn.org.cn> Date: Mon, 18 Aug 2003 13:59:28 +0800 From: Huang wen hui User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; zh-CN; rv:1.4) Gecko/20030705 X-Accept-Language: zh-cn, zh-tw, en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Subject: JDK1.4 status ? 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, 18 Aug 2003 05:59:36 -0000 hi, Just curious, what status of JDK1.4 ? Can patchset 4 release recently ? Can we expect to have binary distribution of JDK1.4 in FreeBSD 5.2R ? Thanks, --hwh From owner-freebsd-java@FreeBSD.ORG Mon Aug 18 07:10:08 2003 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 D9F0B37B408 for ; Mon, 18 Aug 2003 07:10:07 -0700 (PDT) Received: from puget.esil.univ-mrs.fr (puget.esil.univ-mrs.fr [139.124.41.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBD7A43F75 for ; Mon, 18 Aug 2003 07:10:05 -0700 (PDT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from puget.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1]) by puget.esil.univ-mrs.fr (8.12.9/8.12.6) with ESMTP id h7IEAXFE056723 for ; Mon, 18 Aug 2003 16:10:33 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from localhost (rv@localhost)h7IEAWiJ056720 for ; Mon, 18 Aug 2003 16:10:32 +0200 (CEST) X-Authentication-Warning: puget.esil.univ-mrs.fr: rv owned process doing -bs Date: Mon, 18 Aug 2003 16:10:31 +0200 (CEST) From: Herve Quiroz X-X-Sender: rv@puget.esil.univ-mrs.fr To: freebsd-java@FreeBSD.ORG In-Reply-To: <20030618221505.GA39813@misty.eyesbeyond.com> Message-ID: <20030818154837.P56591@puget.esil.univ-mrs.fr> References: <20030514.125107.74756915.haro@kgt.co.jp> <20030523072854.GA61661@misty.eyesbeyond.com> <20030529175837.GA31122@misty.eyesbeyond.com> <20030618221505.GA39813@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: bsd.java.mk 2.0 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, 18 Aug 2003 14:10:09 -0000 Hi, I'm in the process of getting this bsd.java.mk 2.0 working together with a demonstration java lib port. I've managed to stay compatible with the former bsd.java.mk (that I call 1.0), which means we don't have to change all java ports at once, but rather mark the old features as "deprecated". BTW, is there something in portlint(1) regarding java ports ? If so, that would be the right place to check those "deprecated" statements. Anyway, that's not the main goal of my mail. Instead, I'm asking for help, not Java related but Make related... So far, JDK/JRE dependency is resolved as follow: It first builds a list of all JDK/JRE ports suitable according to their version number in _JAVA_PORTS_BY_VERSION. Then, the same for _JAVA_PORTS_BY_OS and _JAVA_PORTS_BY_VENDOR. I was trying to build a list which is the intersection of those 3 above lists. So far, the only answer I have found to this problem is using three for/do/done nested loops. But IMHO it relies too much on the underlying shell, which is subject to change depending on machines. I know GNU Make better than the BSD one (PMake IIRC) and I know that GNU Make provides 'for' loops on its own. I can't find anything similar with PMake... There may be another solution. If anyone has any idea, or just knows how to do 'for' loops (or even lists intersections) in a generic (that is not shell dependent) fashion, please let me know about it. Regards, Herve On Wed, 18 Jun 2003, Greg Lewis wrote: > On Wed, Jun 18, 2003 at 08:21:41PM +0200, Herve Quiroz wrote: > > Hi Greg and all, > > > > No feedback so far... Should I make and provide a patch for bsd.java.mk > > and some java ports for testing with what we have discussed so far ? > > Sure! Knock yourself out :). I'll be on holidays for a few weeks, so I > won't be able to provide feedback until I get back. > From owner-freebsd-java@FreeBSD.ORG Mon Aug 18 11:02:07 2003 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 4E71637B401 for ; Mon, 18 Aug 2003 11:02:07 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5287543FE1 for ; Mon, 18 Aug 2003 11:02:06 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7II26Up068740 for ; Mon, 18 Aug 2003 11:02:06 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7II24nt068724 for freebsd-java@freebsd.org; Mon, 18 Aug 2003 11:02:04 -0700 (PDT) Date: Mon, 18 Aug 2003 11:02:04 -0700 (PDT) Message-Id: <200308181802.h7II24nt068724@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Subject: Current problem reports assigned to you 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, 18 Aug 2003 18:02:07 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/08/22] java/41913 java JniHandler and ChannelUn Errors 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/02/25] java/35320 java linux-jdk-1.4 JVM fails when running Tomc 1 problem total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/10/11] java/43929 java linux-ibm-jdk core dumps without System.e o [2002/10/18] java/44219 java Update port: textproc/cocoon to 2.0.3 o [2002/10/18] java/44251 java Create stylebook port o [2002/11/04] java/44922 java JVM crash o [2003/07/29] java/55032 java SVr4 emulation interferes with install 5 problems total. From owner-freebsd-java@FreeBSD.ORG Tue Aug 19 20:20:43 2003 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 5739216A4BF for ; Tue, 19 Aug 2003 20:20:43 -0700 (PDT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 615C543F3F for ; Tue, 19 Aug 2003 20:20:42 -0700 (PDT) (envelope-from jonc@chen.org.nz) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.9/8.12.9) with ESMTP id h7K3KepI054769 for ; Wed, 20 Aug 2003 15:20:40 +1200 (NZST) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.9/8.12.9/Submit) id h7K3Ke9K054768 for freebsd-java@freebsd.org; Wed, 20 Aug 2003 15:20:40 +1200 (NZST) (envelope-from jonc) Date: Wed, 20 Aug 2003 15:20:40 +1200 From: Jonathan Chen To: freebsd-java@freebsd.org Message-ID: <20030820032040.GA54716@grimoire.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: /usr/local/jdk1.4.1/jre/lib/security/cacerts 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: Wed, 20 Aug 2003 03:20:43 -0000 Hi, I'm trying out my hand on Java+SSL, and have discovered that: /usr/local/jdk1.4.1/jre/lib/security/cacerts is only 32 bytes long. This can't be correct; shouldn't it have the CA for people like Verisign and Thawte? I substituted it with one I got off a Windows box (which was about 11k big), and that seemed to work fine. Is this a packaging bug? Or some deliberate thing I don't know about? Cheers. -- Jonathan Chen ---------------------------------------------------------------------- "Only the meek get pinched. The bold survive." - Ferris Bueller From owner-freebsd-java@FreeBSD.ORG Tue Aug 19 22:27:34 2003 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 F33D216A4BF for ; Tue, 19 Aug 2003 22:27:33 -0700 (PDT) Received: from mgr4.xmission.com (mgr4.xmission.com [198.60.22.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F65A43F93 for ; Tue, 19 Aug 2003 22:27:31 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr4.xmission.com with spam-scanned (Exim 3.35 #1) id 19pLVJ-0006tR-04 for freebsd-java@freebsd.org; Tue, 19 Aug 2003 23:27:30 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr4.xmission.com with esmtp (Exim 3.35 #1) id 19pLUz-0006m9-04; Tue, 19 Aug 2003 23:27:10 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.12.9/8.12.9) with ESMTP id h7K5ZGC5008172; Tue, 19 Aug 2003 23:35:25 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.9/8.12.9/Submit) id h7K5YwtC008163; Tue, 19 Aug 2003 23:34:58 -0600 (MDT) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 19 Aug 2003 23:34:54 -0600 From: Greg Lewis To: Herve Quiroz Message-ID: <20030820053454.GB7208@misty.eyesbeyond.com> References: <20030514.125107.74756915.haro@kgt.co.jp> <20030523072854.GA61661@misty.eyesbeyond.com> <20030529175837.GA31122@misty.eyesbeyond.com> <20030618221505.GA39813@misty.eyesbeyond.com> <20030818154837.P56591@puget.esil.univ-mrs.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030818154837.P56591@puget.esil.univ-mrs.fr> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-9.9 required=8.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT,X_AUTH_WARNING autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-java@freebsd.org Subject: Re: bsd.java.mk 2.0 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: Wed, 20 Aug 2003 05:27:34 -0000 On Mon, Aug 18, 2003 at 04:10:31PM +0200, Herve Quiroz wrote: > I'm in the process of getting this bsd.java.mk 2.0 working together with > a demonstration java lib port. I've managed to stay compatible with the > former bsd.java.mk (that I call 1.0), which means we don't have to > change all java ports at once, but rather mark the old features as > "deprecated". Cool :). > BTW, is there something in portlint(1) regarding java ports ? If so, > that would be the right place to check those "deprecated" statements. > > Anyway, that's not the main goal of my mail. Instead, I'm asking for > help, not Java related but Make related... > > So far, JDK/JRE dependency is resolved as follow: > > It first builds a list of all JDK/JRE ports suitable according to their > version number in _JAVA_PORTS_BY_VERSION. > > Then, the same for _JAVA_PORTS_BY_OS and _JAVA_PORTS_BY_VENDOR. > > I was trying to build a list which is the intersection of those 3 above > lists. So far, the only answer I have found to this problem is using > three for/do/done nested loops. But IMHO it relies too much on the > underlying shell, which is subject to change depending on machines. I > know GNU Make better than the BSD one (PMake IIRC) and I know that GNU > Make provides 'for' loops on its own. I can't find anything similar with > PMake... > > There may be another solution. If anyone has any idea, or just knows > how to do 'for' loops (or even lists intersections) in a generic (that > is not shell dependent) fashion, please let me know about it. As per make(1): .for variable in expression .endfor You can find many example usages in the various makefiles across the system, e.g. /usr/share/mk, /usr/ports/Mk, etc. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Tue Aug 19 23:51:50 2003 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 C448716A4C0 for ; Tue, 19 Aug 2003 23:51:50 -0700 (PDT) Received: from titan.exolab.org (smtp.intalio.com [65.222.219.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 213C343FAF for ; Tue, 19 Aug 2003 23:51:50 -0700 (PDT) (envelope-from boisvert@intalio.com) Received: from intalio.com (fwin.intalio.com [65.222.219.17]) by titan.exolab.org (8.11.1/8.11.1) with ESMTP id h7K6pm500746 for ; Tue, 19 Aug 2003 23:51:48 -0700 Message-ID: <3F431A84.2000102@intalio.com> Date: Tue, 19 Aug 2003 23:51:48 -0700 From: Alex Boisvert User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 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: vmark hangs with libthr and libkse 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: Wed, 20 Aug 2003 06:51:51 -0000 Hello, I'd like to report that the VolanoMark Benchmark hangs with both libthr and libkse when run under 5-CURRENT (as of yesterday) and the latest JDK 1.4.1 patchset (experimental). The VolanoMark Benchmark can be downloaded from: http://www.volano.com/benchmarks.html I've run the network client/server scalability test: ./startup.sh server net blackdown14 and ./startup.sh client net blackdown14 on the same computer. It works without native threads (I've run it to over 3,000 clients connections) but hangs very quickly (under 1,000 clients connections) with both libthr and libkse. Let me know if you need more information or how I can help further diagnose the problem. cheers, alex From owner-freebsd-java@FreeBSD.ORG Tue Aug 19 23:57:40 2003 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 B444116A4BF for ; Tue, 19 Aug 2003 23:57:40 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D32F43FA3 for ; Tue, 19 Aug 2003 23:57:39 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.21) id 19pMuP-0005kI-8i; Wed, 20 Aug 2003 08:57:29 +0200 Date: Wed, 20 Aug 2003 08:57:29 +0200 From: Sheldon Hearn To: Alex Boisvert Message-ID: <20030820065729.GL736@starjuice.net> Mail-Followup-To: Alex Boisvert , freebsd-java@freebsd.org References: <3F431A84.2000102@intalio.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F431A84.2000102@intalio.com> User-Agent: Mutt/1.5.4i Sender: Sheldon Hearn cc: freebsd-java@freebsd.org Subject: Re: vmark hangs with libthr and libkse 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: Wed, 20 Aug 2003 06:57:41 -0000 On (2003/08/19 23:51), Alex Boisvert wrote: > I'd like to report that the VolanoMark Benchmark hangs with both libthr > and libkse when run under 5-CURRENT (as of yesterday) and the latest JDK > 1.4.1 patchset (experimental). That's nothing. JBoss panics my system when I use libkse, and "locks it up" when I use libthr. :-) I just do what my old man told me when I complained that banging my head against the wall hurt... "Don't do that, then". :-) Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Wed Aug 20 06:17:51 2003 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 30F7716A4BF; Wed, 20 Aug 2003 06:17:51 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5438943F85; Wed, 20 Aug 2003 06:17:50 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h7KDHluN006964; Wed, 20 Aug 2003 09:17:49 -0400 (EDT) Date: Wed, 20 Aug 2003 09:17:47 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Sheldon Hearn In-Reply-To: <20030820065729.GL736@starjuice.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: freebsd-java@freebsd.org Subject: Re: vmark hangs with libthr and libkse X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 13:17:51 -0000 On Wed, 20 Aug 2003, Sheldon Hearn wrote: > On (2003/08/19 23:51), Alex Boisvert wrote: > > > I'd like to report that the VolanoMark Benchmark hangs with both libthr > > and libkse when run under 5-CURRENT (as of yesterday) and the latest JDK > > 1.4.1 patchset (experimental). > > That's nothing. JBoss panics my system when I use libkse, and "locks it > up" when I use libthr. :-) Any messages on the console or break-to-debugger info? Are you using SCHED_4BSD or SCHED_ULE? > > I just do what my old man told me when I complained that banging my head > against the wall hurt... "Don't do that, then". :-) No, please do that and give us some more info. We claim there are no bugs in libkse, so it's up to you to prove us wrong :-) -- Dan Eischen From owner-freebsd-java@FreeBSD.ORG Wed Aug 20 07:11:33 2003 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 528A416A4BF; Wed, 20 Aug 2003 07:11:33 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id B497743FA3; Wed, 20 Aug 2003 07:11:31 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.21) id 19pTgO-0000el-P2; Wed, 20 Aug 2003 16:11:28 +0200 Date: Wed, 20 Aug 2003 16:11:28 +0200 From: Sheldon Hearn To: deischen@freebsd.org Message-ID: <20030820141128.GG736@starjuice.net> Mail-Followup-To: deischen@freebsd.org, freebsd-java@freebsd.org, threads@freebsd.org References: <20030820065729.GL736@starjuice.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i Sender: Sheldon Hearn cc: threads@freebsd.org cc: freebsd-java@freebsd.org Subject: Re: vmark hangs with libthr and libkse 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: Wed, 20 Aug 2003 14:11:33 -0000 On (2003/08/20 09:17), Daniel Eischen wrote: > Any messages on the console or break-to-debugger info? Are you using > SCHED_4BSD or SCHED_ULE? I think it was SCHED_4BSD. I scribbled the panic down on a piece of paper, but can't find it now. *sigh* > > I just do what my old man told me when I complained that banging my head > > against the wall hurt... "Don't do that, then". :-) > > No, please do that and give us some more info. We claim there > are no bugs in libkse, so it's up to you to prove us wrong :-) Okay, let me finish my work, sync my disks and give it another whirl this afternoon. :-) Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Wed Aug 20 10:56:53 2003 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 200C316A4BF for ; Wed, 20 Aug 2003 10:56:53 -0700 (PDT) Received: from puget.esil.univ-mrs.fr (puget.esil.univ-mrs.fr [139.124.41.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E04043FDD for ; Wed, 20 Aug 2003 10:56:50 -0700 (PDT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from puget.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1]) h7KHvbFE011552; Wed, 20 Aug 2003 19:57:37 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from localhost (rv@localhost)h7KHvafK011549; Wed, 20 Aug 2003 19:57:36 +0200 (CEST) X-Authentication-Warning: puget.esil.univ-mrs.fr: rv owned process doing -bs Date: Wed, 20 Aug 2003 19:57:35 +0200 (CEST) From: Herve Quiroz X-X-Sender: rv@puget.esil.univ-mrs.fr To: Greg Lewis In-Reply-To: <20030820053454.GB7208@misty.eyesbeyond.com> Message-ID: <20030820195123.W11521@puget.esil.univ-mrs.fr> References: <20030514.125107.74756915.haro@kgt.co.jp> <20030529175837.GA31122@misty.eyesbeyond.com> <20030818154837.P56591@puget.esil.univ-mrs.fr> <20030820053454.GB7208@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-java@freebsd.org Subject: Re: bsd.java.mk 2.0 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: Wed, 20 Aug 2003 17:56:53 -0000 On Tue, 19 Aug 2003, Greg Lewis wrote: > > There may be another solution. If anyone has any idea, or just knows > > how to do 'for' loops (or even lists intersections) in a generic (that > > is not shell dependent) fashion, please let me know about it. > > As per make(1): > > .for variable in expression > > .endfor As per make(1): For loops are expanded before tests, so a fragment such as: .for TMACHINE in ${SHARED_ARCHS} .if ${TMACHINE} = ${MACHINE} ... .endif .endfor won't work, and should be rewritten the other way around. So no .if in .for loops :( But I found a solution. Rather complex but hopefuly working (will test tonight): echo | tr | sort | uniq | grep | awk I'm pretty sure there's another (somewhat more simple) solution but if I can get it to work as-is then we might improve it later. Herve From owner-freebsd-java@FreeBSD.ORG Wed Aug 20 23:57:33 2003 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 AFA2416A4BF; Wed, 20 Aug 2003 23:57:33 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9CC843F93; Wed, 20 Aug 2003 23:57:31 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.21) id 19pjNx-0001P9-Rg; Thu, 21 Aug 2003 08:57:29 +0200 Date: Thu, 21 Aug 2003 08:57:29 +0200 From: Sheldon Hearn To: deischen@freebsd.org, freebsd-java@freebsd.org, threads@freebsd.org Message-ID: <20030821065729.GC5288@starjuice.net> Mail-Followup-To: deischen@freebsd.org, freebsd-java@freebsd.org, threads@freebsd.org References: <20030820065729.GL736@starjuice.net> <20030820141128.GG736@starjuice.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030820141128.GG736@starjuice.net> User-Agent: Mutt/1.5.4i Sender: Sheldon Hearn Subject: Re: vmark hangs with libthr and libkse 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: Thu, 21 Aug 2003 06:57:34 -0000 On (2003/08/20 16:11), Sheldon Hearn wrote: > > Any messages on the console or break-to-debugger info? Are you using > > SCHED_4BSD or SCHED_ULE? > > I think it was SCHED_4BSD. I scribbled the panic down on a piece of > paper, but can't find it now. *sigh* Nope, it's SCHED_ULE. > > > I just do what my old man told me when I complained that banging my head > > > against the wall hurt... "Don't do that, then". :-) > > > > No, please do that and give us some more info. We claim there > > are no bugs in libkse, so it's up to you to prove us wrong :-) > > Okay, let me finish my work, sync my disks and give it another whirl > this afternoon. :-) I tried with libkse and now I don't even get a useful panic. Just "page fault" and disk sync! I've found my scrap of paper, though. Here's what I got last week: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 code = supervisor write, page not present processor eflags = interrupt enabled, resume, IOPL = 0 current process = 4 (g_down) I don't have DDB in my kernel I could reinstall a kernel with DDB enabled. But then what do I do when I get my "page fault" followed by disk sync? I realize that the person seeing the problem is usually the person who should diagnose it, but I'm under hard pressure on a deadline for work. Perhaps someone else with a bit more free time could try this out? Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Thu Aug 21 02:01:48 2003 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 BFADC16A4BF; Thu, 21 Aug 2003 02:01:48 -0700 (PDT) Received: from exchhz01.viatech.com.cn (ip-167-164-97-218.anlai.com [218.97.164.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2B9B43FB1; Thu, 21 Aug 2003 02:01:38 -0700 (PDT) (envelope-from davidxu@viatech.com.cn) Received: from [192.168.1.240] (ip-240-1-168-192.rev.dyxnet.com [192.168.1.240]) by exchhz01.viatech.com.cn with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id RKXCQ85L; Thu, 21 Aug 2003 16:43:04 +0800 Date: Thu, 21 Aug 2003 17:05:26 +0800 From: David Xu To: Sheldon Hearn , deischen@freebsd.org , freebsd-java@freebsd.org , threads@freebsd.org Message-Id: <20030821165727.C1C0.DAVIDXU@viatech.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Mail 1.0 Subject: Re: vmark hangs with libthr and libkse 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: Thu, 21 Aug 2003 09:01:49 -0000 ----- Original Message ----- From: "Sheldon Hearn" To: ; ; Sent: Thursday, August 21, 2003 2:57 PM Subject: Re: vmark hangs with libthr and libkse > On (2003/08/20 16:11), Sheldon Hearn wrote: > > > > Any messages on the console or break-to-debugger info? Are you using > > > SCHED_4BSD or SCHED_ULE? > > > > I think it was SCHED_4BSD. I scribbled the panic down on a piece of > > paper, but can't find it now. *sigh* > > Nope, it's SCHED_ULE. > ULE does not work with KSE, I have uploaded a patch, please try it. http://people.freebsd.org/~davidxu/kse/kse_ule.diff You can not get cpu affinity for KSE process with this scheduler, The patch only let KSE process work under ULE scheduler. I have not fully tested it, for some reason, I won't commit the patch. > > > > I just do what my old man told me when I complained that banging my head > > > > against the wall hurt... "Don't do that, then". :-) > > > > > > No, please do that and give us some more info. We claim there > > > are no bugs in libkse, so it's up to you to prove us wrong :-) > > > > Okay, let me finish my work, sync my disks and give it another whirl > > this afternoon. :-) > > I tried with libkse and now I don't even get a useful panic. Just "page > fault" and disk sync! > > I've found my scrap of paper, though. Here's what I got last week: > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x0 > code = supervisor write, page not present > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 4 (g_down) > > I don't have DDB in my kernel > > I could reinstall a kernel with DDB enabled. But then what do I do when > I get my "page fault" followed by disk sync? > > I realize that the person seeing the problem is usually the person who > should diagnose it, but I'm under hard pressure on a deadline for work. > > Perhaps someone else with a bit more free time could try this out? > > Ciao, > Sheldon. > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" -- David Xu From owner-freebsd-java@FreeBSD.ORG Thu Aug 21 02:06:26 2003 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 0621916A4BF; Thu, 21 Aug 2003 02:06:26 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82E0243F3F; Thu, 21 Aug 2003 02:06:22 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.21) id 19plOe-0001mY-3D; Thu, 21 Aug 2003 11:06:20 +0200 Date: Thu, 21 Aug 2003 11:06:20 +0200 From: Sheldon Hearn To: David Xu Message-ID: <20030821090620.GM5288@starjuice.net> Mail-Followup-To: David Xu , "deischen@freebsd.org" , "freebsd-java@freebsd.org" , "threads@freebsd.org" References: <20030821165727.C1C0.DAVIDXU@viatech.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030821165727.C1C0.DAVIDXU@viatech.com.cn> User-Agent: Mutt/1.5.4i Sender: Sheldon Hearn cc: "deischen@freebsd.org" cc: "threads@freebsd.org" cc: "freebsd-java@freebsd.org" Subject: Re: vmark hangs with libthr and libkse 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: Thu, 21 Aug 2003 09:06:26 -0000 On (2003/08/21 17:05), David Xu wrote: > ULE does not work with KSE, I have uploaded a patch, please try it. > http://people.freebsd.org/~davidxu/kse/kse_ule.diff > You can not get cpu affinity for KSE process with this scheduler, > The patch only let KSE process work under ULE scheduler. > I have not fully tested it, for some reason, I won't commit the patch. Good to know. I'll try to test your patch at the end of the day, if I finish my work. Realistically, I'll probably only have feedback for you late tomorrow. Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Thu Aug 21 08:56:00 2003 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 67FA816A4BF for ; Thu, 21 Aug 2003 08:56:00 -0700 (PDT) Received: from puget.esil.univ-mrs.fr (puget.esil.univ-mrs.fr [139.124.41.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13BC143FF2 for ; Thu, 21 Aug 2003 08:55:59 -0700 (PDT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from puget.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1]) h7LFutFE034517; Thu, 21 Aug 2003 17:56:55 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from localhost (rv@localhost)h7LFurtb034514; Thu, 21 Aug 2003 17:56:53 +0200 (CEST) X-Authentication-Warning: puget.esil.univ-mrs.fr: rv owned process doing -bs Date: Thu, 21 Aug 2003 17:56:53 +0200 (CEST) From: Herve Quiroz X-X-Sender: rv@puget.esil.univ-mrs.fr To: Herve Quiroz In-Reply-To: <20030820195123.W11521@puget.esil.univ-mrs.fr> Message-ID: <20030821151753.R32852@puget.esil.univ-mrs.fr> References: <20030514.125107.74756915.haro@kgt.co.jp> <20030818154837.P56591@puget.esil.univ-mrs.fr> <20030820195123.W11521@puget.esil.univ-mrs.fr> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-441575913-1061481413=:32852" X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: Greg Lewis cc: freebsd-java@freebsd.org Subject: Re: bsd.java.mk 2.0 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: Thu, 21 Aug 2003 15:56:00 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-441575913-1061481413=:32852 Content-Type: TEXT/PLAIN; charset=US-ASCII Here it is! Finally, I had to remove some of Ernst's JDK port detection. Enrst told that in was quite complex to maintain anyway (even sent a PR BTW). So what v2.0 just does is to first detect if we are using v1.0 or v2.0. In the former case, it sets the right variables to be able to use v2.0 for the rest of JDK port detection. Then as I said in a previous mail, it builds a list of all suitable JDK ports: _JAVA_PORTS_BY_VERSION contains all JDK ports that are suitable according to their version number. _JAVA_PORTS_BY_OS contains all JDK ports that are suitable according to the OS they use (native, linux). _JAVA_PORTS_BY_VENDOR contains all JDK ports that are suitable according to their vendor (freebsd, sun, blackdown, ibm) Then we put in _JAVA_PORTS_POSSIBLE any port that is present in each of BY_VERSION, BY_OS and BY_VENDOR (which means it's a suitable JDK port on every aspect). We first try to find an already installed JDK port that is in present in _JAVA_PORTS_POSSIBLE. If we find one, we mark it as the JDK port to use as a dependcy. If we can't find one, we take the first one from the list. Implement a mechanism to enforce a particular order of preference between possible ports. For now, we just use alphanumeric sorting which has (we get lucky here) all of the native/FreeBSD JDK ports first. But we should do something to avoid mistakes in the future. When we have elected our JDK port, we set the variables relative to version, JAVA_HOME, OS, vendor... JAVA_PORT is the name of the port (ex: java/jdk14) JAVA_HOME is the home of the port in the local base. JAVA_PORT_VERSION is the version of the port (ex: 1.4) JAVA_PORT_OS is the OS used by the port (ex: Linux) JAVA_PORT_VENDOR is the vendor of the prot (ex: Sun) Everything is extracted from some JDK port metadata stored in bsd.java.mk itself. BTW, I changed all JAVA_PORT_SUN_LINUX_n_n to JAVA_PORT_LINUX_SUN_n_n (the same goes for IBM_LINUX and BLACKDOWN_LINUX) so the name of the variables used in bsd.java.mk match the actual name of the JDK ports. That's just internal stuff so it won't change anything for the porters or end-users. The final stage (dependency issues such as CLASSPATH, javac/jikes...) is unchanged, altough I fixed a few things (when NO_BUILD is set, NO_BUILD_DEPENDS_JAVA is implicit). ----------------- HOWTO for porters: You may use bsd.java.mk v2.0 as v1.0, as it is fully backward compatible. Anyway, you should note that I strongly encourage the use of the 2.0 features (as I spent quite some of my sleeping time on it those last two days). Regarding v2.0 JDK port dependency automated detection: When USE_JAVA is set and does not reference a version number (in such a case it sould mean we are still using v1.0), the following vaariables may be set in order to give to precision of the requirements of the port: - JAVA_VERSION: A list of space-separated suitable java versions for the port building/running. As it was the case with v1.0, an optinal "+" allows you to specify a range of versions. For example, JAVA_VERSION= 1.1 1.3+ means that all Java 1.1 ports as well as all Java ports with a version number greater or equal to 1.3 are suitable. Which means the following versions are okay: 1.1 1.3 1.4 When nothing is specified, bsd.java.mk considers that all version numbers are suitable. - JAVA_OS: A list of space-separated suitable JDK port OS for the port building/running. Currently, two values are supported: 'native' and 'linux'. For example, JAVA_OS= native means that all native ports are suitable for this port. When nothing is specified, bsd.java.mk considers that all JDK are suitable according to their OS. - JAVA_VENDOR: A list of space-sperated suitable JDK port vendors for the port building/running. Currently, four values are supported: 'freebsd', 'sun', 'ibm' and 'blackdown' (warning it is currently case-sensitive but may be improved in a future release). When nothing is specified, bsd.java.mk considers that all JDK are suitable according to their vendor. - JAVA_BUILD: When set, it means that the elected JDK port should be added to build dependencies for the port as it will be needed to build it. In future releases of bsd.java.mk v2.0, it is planned to support two values for JAVA_BUILD: 'jdk' and 'jre' to specify the nature of the Java port used to build the current port. For now, we just have JDKs so it is not so important IMHO. - JAVA_RUN: This variable works exactly the same as JAVA_BUILD but regarding run dependencies. Currently, and for backward compatibilty with v1.0, when neither JAVA_RUN nor JAVA_BUILD is set, we assume that we still use v1.0 way of specifying build/run Java dependencies. In such a case, we refer to the variables NO_RUN_DEPENDS_JAVA and NO_BUILD_DEPENDS_JAVA for this purpose. ----------- Now I will speak about the testing phase. This will probably be trivial because of the backward compatibility. I encourage people to just change their Mk/bsd.java.mk and try to deinstall/reinstall Java ports to see if it still works. I have only got two FreeBSD machines (and one is my office system which is quite critical) so I couldn't test it further. To test the new features in v2.0, I have included in the archive a patch for two existing ports, java/jakarta-commons-cli and java/trove4j. The former is a demonstration of "build and run" Java dependency and the later is "run only" Java dependency. In my opinion, as soon as we get things okay for ports, we will be able to use bsd.java.mk for JDK ports themselves. That was the idea for bsd.java.mk in the first as it refers to a PR regarding "java/jdk13 does not correctly detects itself for native bootstrap" IIRC (I am too lazy to scan the PR and mailing archives at the moment). On the TODO list is also the portlint issue. We could possibly contact the maintainer of devel/portlint to have all bsd.java.mk v1.0 uses in a port generating a warning ("Deprecated feature"). But maybe the quick patch of all java ports actually using bsd.java.mk will be faster. A quick grep(1) in /usr/ports would detect all of them and I am pretty sure there are not so many. By that I mean I could handle it on my own if I had to. That would also be the right time to check if some Java ports do not use bsd.java.mk yet (v1.0)... But that could also be checked with portlint IMHO (so that even new ports would have to use bsd.java.mk). In my opinion, we could reduce the size (and complexity) of bsd.java.mk v2.0 by changing something in the "Installed JDK ports detection" stage by using the JDK port metadata I used in later stages. But that will make for another release. That's all for now. Let me know about your opinions. Regards, Herve --0-441575913-1061481413=:32852-- From owner-freebsd-java@FreeBSD.ORG Thu Aug 21 09:06:42 2003 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 7341716A4BF for ; Thu, 21 Aug 2003 09:06:42 -0700 (PDT) Received: from puget.esil.univ-mrs.fr (puget.esil.univ-mrs.fr [139.124.41.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 779D243F75 for ; Thu, 21 Aug 2003 09:06:41 -0700 (PDT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from puget.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1]) by puget.esil.univ-mrs.fr (8.12.9/8.12.6) with ESMTP id h7LG7cFE034626 for ; Thu, 21 Aug 2003 18:07:38 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from localhost (rv@localhost)h7LG7cvs034623 for ; Thu, 21 Aug 2003 18:07:38 +0200 (CEST) X-Authentication-Warning: puget.esil.univ-mrs.fr: rv owned process doing -bs Date: Thu, 21 Aug 2003 18:07:38 +0200 (CEST) From: Herve Quiroz X-X-Sender: rv@puget.esil.univ-mrs.fr To: freebsd-java@freebsd.org In-Reply-To: <20030821151753.R32852@puget.esil.univ-mrs.fr> Message-ID: <20030821180403.R34609@puget.esil.univ-mrs.fr> References: <20030514.125107.74756915.haro@kgt.co.jp> <20030820195123.W11521@puget.esil.univ-mrs.fr> <20030821151753.R32852@puget.esil.univ-mrs.fr> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1189016455-1061482058=:34609" X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: bsd.java.mk 2.0 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: Thu, 21 Aug 2003 16:06:43 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1189016455-1061482058=:34609 Content-Type: TEXT/PLAIN; charset=US-ASCII Well apparently, the attachement got left in the process (I received my own mail with the attachement but the one in the list doesn't have it). BTW, here is a short disclaimer (just in case): DISCLAIMER: The use of anything in the archive could possibly detroy important files on your computer and probably ruin your entire life, even break a hole in the universe. You've been warned, use it at your own risk. (Just to warn people: it is a testing version)... Herve --0-1189016455-1061482058=:34609-- From owner-freebsd-java@FreeBSD.ORG Thu Aug 21 09:23:51 2003 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 4339616A4BF for ; Thu, 21 Aug 2003 09:23:51 -0700 (PDT) Received: from puget.esil.univ-mrs.fr (puget.esil.univ-mrs.fr [139.124.41.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 326D743FE9 for ; Thu, 21 Aug 2003 09:23:50 -0700 (PDT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from puget.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1]) h7LGOlFE034705; Thu, 21 Aug 2003 18:24:47 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from localhost (rv@localhost)h7LGOle8034702; Thu, 21 Aug 2003 18:24:47 +0200 (CEST) X-Authentication-Warning: puget.esil.univ-mrs.fr: rv owned process doing -bs Date: Thu, 21 Aug 2003 18:24:46 +0200 (CEST) From: Herve Quiroz X-X-Sender: rv@puget.esil.univ-mrs.fr To: Herve Quiroz In-Reply-To: <20030821180403.R34609@puget.esil.univ-mrs.fr> Message-ID: <20030821182308.Q34670@puget.esil.univ-mrs.fr> References: <20030514.125107.74756915.haro@kgt.co.jp> <20030821151753.R32852@puget.esil.univ-mrs.fr> <20030821180403.R34609@puget.esil.univ-mrs.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-java@freebsd.org Subject: Re: bsd.java.mk 2.0 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: Thu, 21 Aug 2003 16:23:51 -0000 Okay... so no attachements :( Here is a link then: http://www.esil.univ-mrs.fr/~hquiroz/bsd.java.mk-2.0-dev-20030821.tgz Herve On Thu, 21 Aug 2003, Herve Quiroz wrote: > Well apparently, the attachement got left in the process (I received my > own mail with the attachement but the one in the list doesn't have it). > > BTW, here is a short disclaimer (just in case): > > DISCLAIMER: The use of anything in the archive could possibly detroy > important files on your computer and probably ruin your entire life, > even break a hole in the universe. You've been warned, use it at your > own risk. > > (Just to warn people: it is a testing version)... > > Herve > From owner-freebsd-java@FreeBSD.ORG Fri Aug 22 00:30:06 2003 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 A03B716A4D9 for ; Fri, 22 Aug 2003 00:30:06 -0700 (PDT) Received: from smtp0.euronet.nl (smtp0.euronet.nl [194.134.35.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64F6D43FE0 for ; Fri, 22 Aug 2003 00:30:05 -0700 (PDT) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp0.euronet.nl (Postfix) with ESMTP id 5FF7124A06; Fri, 22 Aug 2003 09:30:03 +0200 (MEST) From: Ernst de Haan Organization: Wanadoo Nederland B.V. To: Herve Quiroz Date: Fri, 22 Aug 2003 09:30:03 +0200 User-Agent: KMail/1.5.2 References: <20030514.125107.74756915.haro@kgt.co.jp> <20030821180403.R34609@puget.esil.univ-mrs.fr> <20030821182308.Q34670@puget.esil.univ-mrs.fr> In-Reply-To: <20030821182308.Q34670@puget.esil.univ-mrs.fr> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308220930.04028.ernst.dehaan@nl.wanadoo.com> cc: freebsd-java@freebsd.org Subject: Re: bsd.java.mk 2.0 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: Fri, 22 Aug 2003 07:30:06 -0000 At this point it's IMO very important that this be tested by as many people as possible, on different systems. I'll test this on FreeBSD 4.8-S and 5.1-R here... Thanks for all the work, Herve! Ernst On Thursday 21 August 2003 18:24, Herve Quiroz wrote: > Okay... so no attachements :( > > Here is a link then: > > http://www.esil.univ-mrs.fr/~hquiroz/bsd.java.mk-2.0-dev-20030821.tgz > > Herve > > On Thu, 21 Aug 2003, Herve Quiroz wrote: > > Well apparently, the attachement got left in the process (I received my > > own mail with the attachement but the one in the list doesn't have it). > > > > BTW, here is a short disclaimer (just in case): > > > > DISCLAIMER: The use of anything in the archive could possibly detroy > > important files on your computer and probably ruin your entire life, > > even break a hole in the universe. You've been warned, use it at your > > own risk. > > > > (Just to warn people: it is a testing version)... > > > > Herve > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" From owner-freebsd-java@FreeBSD.ORG Fri Aug 22 01:03:23 2003 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 02E9F16A4BF for ; Fri, 22 Aug 2003 01:03:23 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42E8F43F75 for ; Fri, 22 Aug 2003 01:03:19 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.21) id 19q6t0-000729-Ko; Fri, 22 Aug 2003 10:03:06 +0200 Date: Fri, 22 Aug 2003 10:03:06 +0200 From: Sheldon Hearn To: Ernst de Haan Message-ID: <20030822080306.GT5288@starjuice.net> Mail-Followup-To: Ernst de Haan , Herve Quiroz , freebsd-java@freebsd.org References: <20030514.125107.74756915.haro@kgt.co.jp> <20030821180403.R34609@puget.esil.univ-mrs.fr> <20030821182308.Q34670@puget.esil.univ-mrs.fr> <200308220930.04028.ernst.dehaan@nl.wanadoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200308220930.04028.ernst.dehaan@nl.wanadoo.com> User-Agent: Mutt/1.5.4i Sender: Sheldon Hearn cc: Herve Quiroz cc: freebsd-java@freebsd.org Subject: Re: bsd.java.mk 2.0 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: Fri, 22 Aug 2003 08:03:23 -0000 On (2003/08/22 09:30), Ernst de Haan wrote: > At this point it's IMO very important that this be tested by as many people > as possible, on different systems. > > I'll test this on FreeBSD 4.8-S and 5.1-R here... Some of that will have to wait until jdk14 native compiles on recent 5.1-CURRENT, with its new gcc. :-( Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Fri Aug 22 01:10:00 2003 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 1F38D16A4BF for ; Fri, 22 Aug 2003 01:10:00 -0700 (PDT) Received: from smtp1.euronet.nl (smtp1.euronet.nl [194.134.35.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A69D43F93 for ; Fri, 22 Aug 2003 01:09:59 -0700 (PDT) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp1.euronet.nl (Postfix) with ESMTP id 9DCA3672F2; Fri, 22 Aug 2003 10:09:56 +0200 (MEST) From: Ernst de Haan Organization: Wanadoo Nederland B.V. To: Herve Quiroz Date: Fri, 22 Aug 2003 10:09:57 +0200 User-Agent: KMail/1.5.2 References: <20030514.125107.74756915.haro@kgt.co.jp> <20030821182308.Q34670@puget.esil.univ-mrs.fr> <200308220930.04028.ernst.dehaan@nl.wanadoo.com> In-Reply-To: <200308220930.04028.ernst.dehaan@nl.wanadoo.com> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308221009.57844.ernst.dehaan@nl.wanadoo.com> cc: freebsd-java@freebsd.org Subject: Re: bsd.java.mk 2.0 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: Fri, 22 Aug 2003 08:10:00 -0000 Below is the output of an install of java/cryptix-jce on FreeBSD 5.1. Shouldn't I get a message explaining what JDK it depends on, or is that no longer shown? And I noticed there was a debug output section in the bsd.java.mk 2.0, but I see no output from that... Basically, how can I make the process more verbose? Ernst PS. The output: # cd /usr/ports/java/cryptix-jce/ # make install >> cryptix-jce-20011118-snap.zip doesn't seem to exist in /usr/ports/distfiles/. >> Attempting to fetch from http://opensores.thebunker.net/pub/mirrors/cryptix/dist/. Receiving cryptix-jce-20011118-snap.zip (784903 bytes): 100% 784903 bytes transferred in 4.8 seconds (160.85 kBps) ===> Extracting for cryptix-jce-20011118 >> Checksum OK for cryptix-jce-20011118-snap.zip. ===> cryptix-jce-20011118 depends on executable: unzip - found ===> Patching for cryptix-jce-20011118 ===> Configuring for cryptix-jce-20011118 ===> Installing for cryptix-jce-20011118 ===> cryptix-jce-20011118 depends on file: /usr/local/jdk1.4.1/bin/java - found ===> Generating temporary packing list ===> Checking if java/cryptix-jce already installed install -o root -g wheel -m 444 /usr/ports/java/cryptix-jce/work/bin/cryptix-jce-api.jar /usr/local/share/java/classes/ install -o root -g wheel -m 444 /usr/ports/java/cryptix-jce/work/bin/cryptix-jce-compat.jar /usr/local/share/java/classes/ install -o root -g wheel -m 444 /usr/ports/java/cryptix-jce/work/bin/cryptix-jce-provider.jar /usr/local/share/java/classes/ install -o root -g wheel -m 444 /usr/ports/java/cryptix-jce/work/bin/cryptix-jce-tests.jar /usr/local/share/java/classes/ ===> Registering installation for cryptix-jce-20011118 On Friday 22 August 2003 09:30, Ernst de Haan wrote: > At this point it's IMO very important that this be tested by as many > people as possible, on different systems. > > I'll test this on FreeBSD 4.8-S and 5.1-R here... > > Thanks for all the work, Herve! > > Ernst > > On Thursday 21 August 2003 18:24, Herve Quiroz wrote: > > Okay... so no attachements :( > > > > Here is a link then: > > > > http://www.esil.univ-mrs.fr/~hquiroz/bsd.java.mk-2.0-dev-20030821.tgz > > > > Herve > > > > On Thu, 21 Aug 2003, Herve Quiroz wrote: > > > Well apparently, the attachement got left in the process (I received > > > my own mail with the attachement but the one in the list doesn't have > > > it). > > > > > > BTW, here is a short disclaimer (just in case): > > > > > > DISCLAIMER: The use of anything in the archive could possibly detroy > > > important files on your computer and probably ruin your entire life, > > > even break a hole in the universe. You've been warned, use it at your > > > own risk. > > > > > > (Just to warn people: it is a testing version)... > > > > > > Herve > > > > _______________________________________________ > > freebsd-java@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-java > > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" From owner-freebsd-java@FreeBSD.ORG Fri Aug 22 02:29:51 2003 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 F26F016A4BF for ; Fri, 22 Aug 2003 02:29:50 -0700 (PDT) Received: from smtp0.euronet.nl (smtp0.euronet.nl [194.134.35.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75B2543F75 for ; Fri, 22 Aug 2003 02:29:50 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp0.euronet.nl (Postfix) with ESMTP id 4425C248B3; Fri, 22 Aug 2003 11:29:48 +0200 (MEST) From: Ernst de Haan To: java@FreeBSD.org Date: Fri, 22 Aug 2003 11:29:49 +0200 User-Agent: KMail/1.5.2 X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308221129.49627.znerd@FreeBSD.org> cc: Peter Troon Subject: OT: Special letter chars 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: Fri, 22 Aug 2003 09:29:51 -0000 Hi freebsd-java, Off-topic question: I'd like to convert all Unicode special letter characters to a normal US-ASCII letter char. Do you know any utility classes that do that? For example, I'd like this function to convert the Unicode for e-umlaut to an 'e'... Any hints would be appreciated. Ernst From owner-freebsd-java@FreeBSD.ORG Fri Aug 22 06:25:36 2003 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 3AB8D16A4C0 for ; Fri, 22 Aug 2003 06:25:36 -0700 (PDT) Received: from puget.esil.univ-mrs.fr (puget.esil.univ-mrs.fr [139.124.41.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 577F543FE5 for ; Fri, 22 Aug 2003 06:25:34 -0700 (PDT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from puget.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1]) h7MDQcFE073478; Fri, 22 Aug 2003 15:26:38 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from localhost (rv@localhost)h7MDQcDs073475; Fri, 22 Aug 2003 15:26:38 +0200 (CEST) X-Authentication-Warning: puget.esil.univ-mrs.fr: rv owned process doing -bs Date: Fri, 22 Aug 2003 15:26:37 +0200 (CEST) From: Herve Quiroz X-X-Sender: rv@puget.esil.univ-mrs.fr To: Ernst de Haan In-Reply-To: <200308221009.57844.ernst.dehaan@nl.wanadoo.com> Message-ID: <20030822152039.Q73405@puget.esil.univ-mrs.fr> References: <20030514.125107.74756915.haro@kgt.co.jp> <200308220930.04028.ernst.dehaan@nl.wanadoo.com> <200308221009.57844.ernst.dehaan@nl.wanadoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-java@freebsd.org Subject: Re: bsd.java.mk 2.0 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: Fri, 22 Aug 2003 13:25:36 -0000 Use 'make java-debug' to get some info about the JDK port selection. I'll make a patch to get some of the info displayed regardless. Please tell me what kind of info you would like to see (amongst those that are displayed by the java-debug target or anything else if you wish). Herve On Fri, 22 Aug 2003, Ernst de Haan wrote: > Below is the output of an install of java/cryptix-jce on FreeBSD 5.1. > Shouldn't I get a message explaining what JDK it depends on, or is that no > longer shown? > > And I noticed there was a debug output section in the bsd.java.mk 2.0, but I > see no output from that... > > Basically, how can I make the process more verbose? > > Ernst > From owner-freebsd-java@FreeBSD.ORG Fri Aug 22 06:37:32 2003 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 2122216A4C2 for ; Fri, 22 Aug 2003 06:37:32 -0700 (PDT) Received: from puget.esil.univ-mrs.fr (puget.esil.univ-mrs.fr [139.124.41.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8EC043FE1 for ; Fri, 22 Aug 2003 06:37:29 -0700 (PDT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from puget.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1]) h7MDcZFE073536; Fri, 22 Aug 2003 15:38:35 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from localhost (rv@localhost)h7MDcWSj073533; Fri, 22 Aug 2003 15:38:34 +0200 (CEST) X-Authentication-Warning: puget.esil.univ-mrs.fr: rv owned process doing -bs Date: Fri, 22 Aug 2003 15:38:31 +0200 (CEST) From: Herve Quiroz X-X-Sender: rv@puget.esil.univ-mrs.fr To: Joe Shevland In-Reply-To: <5.2.1.1.0.20030822192900.00b2bd50@mail.ozemail.com.au> Message-ID: <20030822152903.H73405@puget.esil.univ-mrs.fr> References: <20030821182308.Q34670@puget.esil.univ-mrs.fr> <20030821180403.R34609@puget.esil.univ-mrs.fr> <20030821182308.Q34670@puget.esil.univ-mrs.fr> <5.2.1.1.0.20030822192900.00b2bd50@mail.ozemail.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-java@FreeBSD.ORG Subject: Re: bsd.java.mk 2.0 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: Fri, 22 Aug 2003 13:37:32 -0000 (This mail is CC'ed to freebsd-java) Hi Joe, Basically, what you just have to do (if you've got a system that is not critical) is just replace /usr/ports/Mk/bsd.java.mk by the one I provided and try installing/desinstalling/reinstalling some Java ports (not JDK ones here) using either the standard way with make(1) or using pkg tools such as portupgrade(1). Then tell us about the results. You may test it by installing/desintalling JDK ports also and see if the dependencies of the Java ports are set correctly. To check without actually building a port, just use: make run-depends-list make build-depends-list or even: make all-depends-list to check port dependencies recursively. Whenever you feel the behaviour is weird, you may investigate by using: make java-debug to get values of some of the variables bsd.java.mk is using to select the JDK port. Herve On Fri, 22 Aug 2003, Joe Shevland wrote: > Hi Ernst and Herve, > > I'd be happy to try this on our systems, they're all 4.8-S. > > What's required? Pull down the new bsd.java.mk file and build some ports? > > If I can help with anything wrt to all of this native porting stuff, let me > know, I've now got a bit of time I can dedicate back to FBSD. Tech docs, > coding (C, Java, whatever) and anything else really that might help. Given > I'm no master of BSD internals, I'll help out where I can but I don't think > it'll be in the porting effort. > > Maybe if there's nothing I can help with wrt the port, if there's any > other FBSD development related work you can think of, let me know, I'd > like to pour a bit of my time back into the project. > > Cheers, > Joe > From owner-freebsd-java@FreeBSD.ORG Fri Aug 22 19:33:29 2003 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 6D53616A4BF for ; Fri, 22 Aug 2003 19:33:29 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A75AC44003 for ; Fri, 22 Aug 2003 19:33:28 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h7N2XRUK014001 for ; Fri, 22 Aug 2003 22:33:27 -0400 (EDT) Date: Fri, 22 Aug 2003 22:33:27 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: java@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: jdk14 on -current X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2003 02:33:29 -0000 Has anyone tried building jdk14 on -current. I've never been lucky enough to get it to build. It seems to be failing now because of the compiler: Compiling /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/memory/javaClasses.cpp Compiling /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp:929:50: pasting "." and "i" does not give a valid preprocessing token /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp:929:50: pasting "." and "i" does not give a valid preprocessing token /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp:929:50: pasting [ and lots more of the same ] -- Dan Eischen From owner-freebsd-java@FreeBSD.ORG Sat Aug 23 01:52:41 2003 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 67A5A16A4E9; Sat, 23 Aug 2003 01:52:41 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D5CC44498; Sat, 23 Aug 2003 00:57:57 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.21) id 19qTHS-000CIj-Bn; Sat, 23 Aug 2003 09:57:50 +0200 Date: Sat, 23 Aug 2003 09:57:50 +0200 From: Sheldon Hearn To: deischen@freebsd.org Message-ID: <20030823075750.GB47245@starjuice.net> References: <20030823075556.GA47245@starjuice.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030823075556.GA47245@starjuice.net> User-Agent: Mutt/1.5.4i Sender: Sheldon Hearn cc: java@freebsd.org Subject: Re: jdk14 on -current 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: Sat, 23 Aug 2003 08:52:42 -0000 On (2003/08/23 09:55), Sheldon Hearn wrote: > On (2003/08/22 22:33), Daniel Eischen wrote: > > > Has anyone tried building jdk14 on -current. I've never been > > lucky enough to get it to build. It seems to be failing now > > because of the compiler: > > It built fine before the second-last gcc upgrade to 3.3.1. :-( There was supposed to be more. I meant that the build failures started with gcc version 3.3.1 [FreeBSD] 20030711 (prerelease). It may be that 3.3.1 release magically resupports the broken C++ syntax, but I'm not hopeful. I recall that someone said he was working on this, but can't remember who. I may be wrong. Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Sat Aug 23 01:52:43 2003 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 3CFAB16A510; Sat, 23 Aug 2003 01:52:42 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B4044470; Sat, 23 Aug 2003 00:55:59 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.21) id 19qTFc-000CIV-Dv; Sat, 23 Aug 2003 09:55:56 +0200 Date: Sat, 23 Aug 2003 09:55:56 +0200 From: Sheldon Hearn To: deischen@freebsd.org Message-ID: <20030823075556.GA47245@starjuice.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i Sender: Sheldon Hearn cc: java@freebsd.org Subject: Re: jdk14 on -current 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: Sat, 23 Aug 2003 08:52:47 -0000 On (2003/08/22 22:33), Daniel Eischen wrote: > Has anyone tried building jdk14 on -current. I've never been > lucky enough to get it to build. It seems to be failing now > because of the compiler: It built fine before the second-last gcc upgrade to 3.3.1. :-( Ciao, Sheldon. From owner-freebsd-java@FreeBSD.ORG Sat Aug 23 05:38:56 2003 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 ECBC216A4BF for ; Sat, 23 Aug 2003 05:38:56 -0700 (PDT) Received: from king.mcs.drexel.edu (king.mcs.drexel.edu [129.25.6.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDE2C43F3F for ; Sat, 23 Aug 2003 05:38:55 -0700 (PDT) (envelope-from jsmith@drexel.edu) Received: from vorpal.mcs.drexel.edu (vorpal.mcs.drexel.edu [129.25.6.250]) by king.mcs.drexel.edu (8.12.9/8.12.8) with ESMTP id h7NCcrfb001456 for ; Sat, 23 Aug 2003 08:38:54 -0400 (EDT) Received: from [127.0.0.1] (vorpal.mcs.drexel.edu [129.25.6.250]) h7NCcwMb052937 for ; Sat, 23 Aug 2003 08:38:59 -0400 (EDT) (envelope-from jsmith@drexel.edu) From: Justin Smith To: java@freebsd.org Content-Type: text/plain Organization: Drexel University Message-Id: <1061642326.2866.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Sat, 23 Aug 2003 08:38:47 -0400 Content-Transfer-Encoding: 7bit Subject: Problem building jdk1.3 solved 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: Sat, 23 Aug 2003 12:38:57 -0000 FreeBSD jsmith.org 5.1-RELEASE-p2 FreeBSD 5.1-RELEASE-p2 #0: Sun Aug 17 07:01:29 EDT 2003 jsmith@jsmith.org:/usr/src/sys/i386/compile/MYKERNEL i386 About a week ago I mentioned that I couldn't build jdk1.3 on my system because gmake crashed. Since then, I: 1. cvsup'ed to 5.1 stable 2. recompiled the kernel and 3. did buildworld and installworld. And now jdk1.3 builds without any problems. -- From owner-freebsd-java@FreeBSD.ORG Sat Aug 23 07:19:32 2003 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 9613A16A4BF for ; Sat, 23 Aug 2003 07:19:32 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2AF943F85 for ; Sat, 23 Aug 2003 07:19:31 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h7NEJUUK021285; Sat, 23 Aug 2003 10:19:31 -0400 (EDT) Date: Sat, 23 Aug 2003 10:19:30 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Sheldon Hearn In-Reply-To: <20030823075750.GB47245@starjuice.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: java@freebsd.org Subject: Re: jdk14 on -current X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2003 14:19:32 -0000 On Sat, 23 Aug 2003, Sheldon Hearn wrote: > On (2003/08/23 09:55), Sheldon Hearn wrote: > > > On (2003/08/22 22:33), Daniel Eischen wrote: > > > > > Has anyone tried building jdk14 on -current. I've never been > > > lucky enough to get it to build. It seems to be failing now > > > because of the compiler: > > > > It built fine before the second-last gcc upgrade to 3.3.1. :-( > > There was supposed to be more. > > I meant that the build failures started with gcc version 3.3.1 [FreeBSD] > 20030711 (prerelease). > > It may be that 3.3.1 release magically resupports the broken C++ syntax, > but I'm not hopeful. As our base compiler, I doubt it. The port may; IIRC, the port is not as strict as our base compiler. > I recall that someone said he was working on this, but can't remember > who. I may be wrong. I think it's just improper use of concatenation, as in foo##bar, where foo is . I think the fix is to just remove ##. -- Dan Eischen From owner-freebsd-java@FreeBSD.ORG Sat Aug 23 07:32:19 2003 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 ADC0B16A4C0 for ; Sat, 23 Aug 2003 07:32:19 -0700 (PDT) Received: from mgr6.xmission.com (mgr6.xmission.com [198.60.22.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97E3443FCB for ; Sat, 23 Aug 2003 07:32:18 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr6.xmission.com with spam-scanned (Exim 3.35 #1) id 19qZRC-0006Ab-06 for java@freebsd.org; Sat, 23 Aug 2003 08:32:18 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr6.xmission.com with esmtp (Exim 3.35 #1) id 19qZR7-000671-06; Sat, 23 Aug 2003 08:32:14 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.12.9/8.12.9) with ESMTP id h7NEeSC5091593; Sat, 23 Aug 2003 08:40:45 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.9/8.12.9/Submit) id h7NEds98091588; Sat, 23 Aug 2003 08:39:54 -0600 (MDT) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sat, 23 Aug 2003 08:39:48 -0600 From: Greg Lewis To: deischen@freebsd.org Message-ID: <20030823143947.GA91554@misty.eyesbeyond.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-10.4 required=8.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT,X_AUTH_WARNING version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: java@freebsd.org Subject: Re: jdk14 on -current 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: Sat, 23 Aug 2003 14:32:19 -0000 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Aug 22, 2003 at 10:33:27PM -0400, Daniel Eischen wrote: > Has anyone tried building jdk14 on -current. I've never been > lucky enough to get it to build. It seems to be failing now > because of the compiler: > > Compiling > /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/memory/javaClasses.cpp > Compiling > /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp > /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp:929:50: > pasting "." and "i" does not give a valid preprocessing token > /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp:929:50: > pasting "." and "i" does not give a valid preprocessing token > /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp:929:50: > pasting Please try the attached patch (from CVS). Let me know if it works and I'll get something like it committed. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gcc331.diff" Index: hotspot/src/share/vm/prims/jni.cpp =================================================================== RCS file: /var/jcvs/javasrc_1_4_scsl/hotspot/src/share/vm/prims/jni.cpp,v retrieving revision 1.1.1.2 retrieving revision 1.2 diff -u -r1.1.1.2 -r1.2 --- hotspot/src/share/vm/prims/jni.cpp 23 Jan 2003 12:48:13 -0000 1.1.1.2 +++ hotspot/src/share/vm/prims/jni.cpp 6 Aug 2003 20:56:29 -0000 1.2 @@ -902,7 +902,7 @@ JNI_ArgumentPusherVaArg ap(methodID, args); \ jni_invoke_nonstatic(env, &jvalue, obj, JNI_VIRTUAL, methodID, &ap, CHECK_0); \ va_end(args); \ - return (ResultType)(jvalue._value.##unionType); \ + return (ResultType)(jvalue._value.unionType); \ JNI_END \ \ \ @@ -912,7 +912,7 @@ JavaValue jvalue(Tag); \ JNI_ArgumentPusherVaArg ap(methodID, args); \ jni_invoke_nonstatic(env, &jvalue, obj, JNI_VIRTUAL, methodID, &ap, CHECK_0); \ - return (ResultType)(jvalue._value.##unionType); \ + return (ResultType)(jvalue._value.unionType); \ JNI_END \ \ \ @@ -922,7 +922,7 @@ JavaValue jvalue(Tag); \ JNI_ArgumentPusherArray ap(methodID, args); \ jni_invoke_nonstatic(env, &jvalue, obj, JNI_VIRTUAL, methodID, &ap, CHECK_0); \ - return (ResultType)(jvalue._value.##unionType); \ + return (ResultType)(jvalue._value.unionType); \ JNI_END // the runtime type of subword integral basic types is integer @@ -976,7 +976,7 @@ JNI_ArgumentPusherVaArg ap(methodID, args); \ jni_invoke_nonstatic(env, &jvalue, obj, JNI_NONVIRTUAL, methodID, &ap, CHECK_0); \ va_end(args); \ - return (ResultType)(jvalue._value.##unionType); \ + return (ResultType)(jvalue._value.unionType); \ JNI_END \ \ \ @@ -986,7 +986,7 @@ JavaValue jvalue(Tag); \ JNI_ArgumentPusherVaArg ap(methodID, args); \ jni_invoke_nonstatic(env, &jvalue, obj, JNI_NONVIRTUAL, methodID, &ap, CHECK_0); \ - return (ResultType)(jvalue._value.##unionType); \ + return (ResultType)(jvalue._value.unionType); \ JNI_END \ \ \ @@ -996,7 +996,7 @@ JavaValue jvalue(Tag); \ JNI_ArgumentPusherArray ap(methodID, args); \ jni_invoke_nonstatic(env, &jvalue, obj, JNI_NONVIRTUAL, methodID, &ap, CHECK_0); \ - return (ResultType)(jvalue._value.##unionType); \ + return (ResultType)(jvalue._value.unionType); \ JNI_END // the runtime type of subword integral basic types is integer @@ -1051,7 +1051,7 @@ JNI_ArgumentPusherVaArg ap(methodID, args); \ jni_invoke_static(env, &jvalue, NULL, JNI_STATIC, methodID, &ap, CHECK_0); \ va_end(args); \ - return (ResultType)(jvalue._value.##unionType); \ + return (ResultType)(jvalue._value.unionType); \ JNI_END \ \ \ @@ -1061,7 +1061,7 @@ JavaValue jvalue(Tag); \ JNI_ArgumentPusherVaArg ap(methodID, args); \ jni_invoke_static(env, &jvalue, NULL, JNI_STATIC, methodID, &ap, CHECK_0); \ - return (ResultType)(jvalue._value.##unionType); \ + return (ResultType)(jvalue._value.unionType); \ JNI_END \ \ \ @@ -1071,7 +1071,7 @@ JavaValue jvalue(Tag); \ JNI_ArgumentPusherArray ap(methodID, args); \ jni_invoke_static(env, &jvalue, NULL, JNI_STATIC, methodID, &ap, CHECK_0); \ - return (ResultType)(jvalue._value.##unionType); \ + return (ResultType)(jvalue._value.unionType); \ JNI_END // the runtime type of subword integral basic types is integer @@ -1204,7 +1204,7 @@ /* and creates a ResetNoHandleMark. */ \ if (jvmdi::enabled()) { \ jvalue field_value; \ - field_value.##unionType = value; \ + field_value.unionType = value; \ o = jvmdi::jni_SetField_probe_nh(thread, obj, o, k, fieldID, false, SigType, (jvalue *)&field_value); \ } \ o->Fieldname##_field_put(offset, value); \ @@ -1333,7 +1333,7 @@ /* jni_SetField_probe() assumes that is okay to create handles. */ \ if (jvmdi::enabled()) { \ jvalue field_value; \ - field_value.##unionType = value; \ + field_value.unionType = value; \ jvmdi::jni_SetField_probe(thread, NULL, NULL, id->holder(), fieldID, true, SigType, (jvalue *)&field_value); \ } \ id->holder()-> Fieldname##_field_put (id->offset(), value); \ Index: hotspot/src/share/vm/runtime/jvmdiInterfaceSupport.hpp =================================================================== RCS file: /var/jcvs/javasrc_1_4_scsl/hotspot/src/share/vm/runtime/jvmdiInterfaceSupport.hpp,v retrieving revision 1.1.1.2 retrieving revision 1.2 diff -u -r1.1.1.2 -r1.2 --- hotspot/src/share/vm/runtime/jvmdiInterfaceSupport.hpp 23 Jan 2003 12:48:15 -0000 1.1.1.2 +++ hotspot/src/share/vm/runtime/jvmdiInterfaceSupport.hpp 6 Aug 2003 20:55:55 -0000 1.2 @@ -24,7 +24,7 @@ result_type JNICALL methodName signature { \ JavaThread* thread = (JavaThread*) ThreadLocalStorage::thread(); \ TransitionClass __tiv(thread); \ - __ENTRY(result_type, methodName##signature, thread) \ + __ENTRY(result_type, methodName signature, thread) \ debug_only(VMNativeEntryWrapper __vew;) \ debug_only(const char* const _jvmdi_methodName_ = #methodName;) \ debug_only(bool _trace_ = trace; ); \ Index: hotspot/src/share/vm/runtime/mutexLocker.cpp =================================================================== RCS file: /var/jcvs/javasrc_1_4_scsl/hotspot/src/share/vm/runtime/mutexLocker.cpp,v retrieving revision 1.1.1.2 retrieving revision 1.2 diff -u -r1.1.1.2 -r1.2 --- hotspot/src/share/vm/runtime/mutexLocker.cpp 23 Jan 2003 12:48:15 -0000 1.1.1.2 +++ hotspot/src/share/vm/runtime/mutexLocker.cpp 6 Aug 2003 20:55:15 -0000 1.2 @@ -95,7 +95,7 @@ #endif #define def(var, type, pri, vm_block) \ - var = new type(Mutex::##pri, #var, vm_block) + var = new type(Mutex::pri, #var, vm_block) void mutex_init() { def(Event_lock , Mutex , event, true ); // allow to lock in VM --GvXjxJ+pjyke8COw-- From owner-freebsd-java@FreeBSD.ORG Sat Aug 23 09:06:46 2003 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 42D4F16A4BF for ; Sat, 23 Aug 2003 09:06:46 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0C1343FE0 for ; Sat, 23 Aug 2003 09:06:45 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h7NG6dUK006596; Sat, 23 Aug 2003 12:06:39 -0400 (EDT) Date: Sat, 23 Aug 2003 12:06:39 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Greg Lewis In-Reply-To: <20030823143947.GA91554@misty.eyesbeyond.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: java@freebsd.org Subject: Re: jdk14 on -current X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2003 16:06:46 -0000 On Sat, 23 Aug 2003, Greg Lewis wrote: > On Fri, Aug 22, 2003 at 10:33:27PM -0400, Daniel Eischen wrote: > > Has anyone tried building jdk14 on -current. I've never been > > lucky enough to get it to build. It seems to be failing now > > because of the compiler: > > > > Compiling > > /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/memory/javaClasses.cpp > > Compiling > > /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp > > /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp:929:50: > > pasting "." and "i" does not give a valid preprocessing token > > /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp:929:50: > > pasting "." and "i" does not give a valid preprocessing token > > /opt/FreeBSD/src/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp:929:50: > > pasting > > Please try the attached patch (from CVS). Let me know if it works and I'll > get something like it committed. I won't be able to test it until Monday. The patch looks to be doing the right thing, so feel free to commit it; otherwise, I'll get back to you on Monday. Thanks, -- Dan Eischen From owner-freebsd-java@FreeBSD.ORG Sat Aug 23 09:38:39 2003 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 EDECF16A4C0 for ; Sat, 23 Aug 2003 09:38:39 -0700 (PDT) Received: from 141.com (mail.141.com [65.168.139.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3851443FBD for ; Sat, 23 Aug 2003 09:38:39 -0700 (PDT) (envelope-from arlankfo@141.com) Date: Sat, 23 Aug 2003 10:42:32 -0600 Message-Id: <200308231042.AA1507524852@141.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "Andrew Lankford" To: Daniel Eischen , Greg Lewis X-Mailer: X-Declude-Sender: arlankfo@141.com [127.0.0.1] X-Note: This E-mail was scanned for spam. cc: java@freebsd.org Subject: Re: jdk14 on -current X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: arlankfo@141.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2003 16:38:40 -0000 Yeah, I noticed that problem while attempting to build jdk13 with hotspot. BTW, I noticed that "setenv DEBUG_PROG gdb" doesn't work because of the way DEBUG_PROG is used in the .java_wrapper script: exec $DEBUG_PROG "$prog" "$vmopt" "$@" >From a quick look at the gdb manpage, I understand that gdb isn't supposed to pass on the values of vmopt and $@ over to $prog. Instead it just complains about them and exits. I guess the other alternatives are to create a .gdbinit script on the fly or just do a " shell java YourProblematicJavaProggy " from gdb (neither of which help very much with the other problem I've encountered with running jdk13, oh vey ). Andrew Lankford From owner-freebsd-java@FreeBSD.ORG Sat Aug 23 21:40:43 2003 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 249B516A4BF; Sat, 23 Aug 2003 21:40:43 -0700 (PDT) Received: from tydfam.jp (ns.tydfam.jp [61.197.228.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 349A743F93; Sat, 23 Aug 2003 21:40:42 -0700 (PDT) (envelope-from ken@tydfam.jp) Received: from localhost (tyd3.sub.tydfam.jp [192.168.0.3]) by tydfam.jp (8.12.8p1/8.11.6) with ESMTP id h7O4eeTi046237; Sun, 24 Aug 2003 13:40:40 +0900 (JST) (envelope-from ken@tydfam.jp) Date: Sun, 24 Aug 2003 13:40:40 +0900 (JST) Message-Id: <20030824.134040.719888839.ken@tydfam.jp> To: glewis@misty.eyesbeyond.com From: Yamada Ken Takeshi In-Reply-To: <20030823143947.GA91554@misty.eyesbeyond.com> References: <20030823143947.GA91554@misty.eyesbeyond.com> X-Mailer: Mew version 2.2 on XEmacs 21.4.13 (Rational FORTRAN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: deischen@freebsd.org cc: java@freebsd.org Subject: Re: jdk14 on -current 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: Sun, 24 Aug 2003 04:40:43 -0000 I think your patch solves hotspot compile error relating to foo##bar. However, I have had the following error, and cannot compile. It is endian definition error(?). : : : : /usr/bin/gcc -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -Werror -Di586 -DARCH='"i586"' -DRELEASE='"1.4.1-p3"' -DFULL_VERSION='"1.4.1-p3-ken_24_aug_2003_13_34"' -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_LITTLE_ENDIAN -I. -I/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/java/java.nio/nio/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/javavm/include -I../../../src/solaris/javavm/include -I../../../src/share/native/sun/nio/ch -I../../../src/share/native/java/io -I../../../src/share/native/java/net -I../../../src/solaris/native/java/net -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/java/nio -I../../../src/solaris/native/java/nio -c -o /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/java/java.nio/nio/obj/DatagramChannelImpl.o ../../../src/solaris/native/sun/nio/ch/DatagramChannelImpl.c In file included from /usr/include/sys/types.h:49, from /usr/include/sys/param.h:67, from ../../../src/solaris/javavm/export/jvm_md.h:17, from ../../../src/share/javavm/export/jvm.h:16, from ../../../src/solaris/native/sun/nio/ch/DatagramChannelImpl.c:10: /usr/include/machine/endian.h:53:1: "_LITTLE_ENDIAN" redefined :14:1: this is the location of the previous definition gmake[4]: *** [/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/java/java.nio/nio/obj/DatagramChannelImpl.o] Error 1 gmake[4]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make/java/nio' gmake[3]: *** [optimized] Error 2 gmake[3]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make/java/nio' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make/java' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2 From owner-freebsd-java@FreeBSD.ORG Sat Aug 23 21:51:40 2003 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 EF08316A4BF; Sat, 23 Aug 2003 21:51:40 -0700 (PDT) Received: from tydfam.jp (ns.tydfam.jp [61.197.228.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CFFD43F3F; Sat, 23 Aug 2003 21:51:40 -0700 (PDT) (envelope-from ken@tydfam.jp) Received: from localhost (tyd3.sub.tydfam.jp [192.168.0.3]) by tydfam.jp (8.12.8p1/8.11.6) with ESMTP id h7O4pdTi046279; Sun, 24 Aug 2003 13:51:39 +0900 (JST) (envelope-from ken@tydfam.jp) Date: Sun, 24 Aug 2003 13:51:39 +0900 (JST) Message-Id: <20030824.135139.576024018.ken@tydfam.jp> To: glewis@misty.eyesbeyond.com From: Yamada Ken Takeshi In-Reply-To: <20030823143947.GA91554@misty.eyesbeyond.com> References: <20030823143947.GA91554@misty.eyesbeyond.com> X-Mailer: Mew version 2.2 on XEmacs 21.4.13 (Rational FORTRAN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: deischen@freebsd.org cc: java@freebsd.org Subject: Re: jdk14 on -current 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: Sun, 24 Aug 2003 04:51:41 -0000 One more! I needed the below, too. j2se/src/solaris/native/java/net/Inet6AddressImpl.c : : : : #ifndef __GLIBC__ /* gethostname() is in libc.so but I can't find a header file for it */ /***** /usr/include/unistd.h : 407 *******/ extern int gethostname(char *buf, size_t buf_len); ^^^^^^ #endif From owner-freebsd-java@FreeBSD.ORG Sat Aug 23 22:32:03 2003 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 58CD616A4BF for ; Sat, 23 Aug 2003 22:32:03 -0700 (PDT) Received: from mgr4.xmission.com (mgr4.xmission.com [198.60.22.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6848A43FDD for ; Sat, 23 Aug 2003 22:32:02 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr4.xmission.com with spam-scanned (Exim 3.35 #1) id 19qnTm-0006pI-04 for java@freebsd.org; Sat, 23 Aug 2003 23:32:00 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr4.xmission.com with esmtp (Exim 3.35 #1) id 19qnT6-0006dz-04; Sat, 23 Aug 2003 23:31:13 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.12.9/8.12.9) with ESMTP id h7O5dvC5050928; Sat, 23 Aug 2003 23:39:57 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.9/8.12.9/Submit) id h7O5dt3E050927; Sat, 23 Aug 2003 23:39:55 -0600 (MDT) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sat, 23 Aug 2003 23:39:55 -0600 From: Greg Lewis To: Yamada Ken Takeshi Message-ID: <20030824053955.GA50911@misty.eyesbeyond.com> References: <20030823143947.GA91554@misty.eyesbeyond.com> <20030824.134040.719888839.ken@tydfam.jp> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <20030824.134040.719888839.ken@tydfam.jp> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-10.4 required=8.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT,X_AUTH_WARNING version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: deischen@freebsd.org cc: java@freebsd.org Subject: Re: jdk14 on -current 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: Sun, 24 Aug 2003 05:32:03 -0000 --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Aug 24, 2003 at 01:40:40PM +0900, Yamada Ken Takeshi wrote: > I think your patch solves hotspot compile error relating to > foo##bar. Well, thats all that was meant to be included in that particular patch. > However, I have had the following error, and cannot compile. > It is endian definition error(?). > > : : : : > /usr/bin/gcc -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -Werror -Di586 -DARCH='"i586"' -DRELEASE='"1.4.1-p3"' -DFULL_VERSION='"1.4.1-p3-ken_24_aug_2003_13_34"' -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_LITTLE_ENDIAN -I. -I/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/java/java.nio/nio/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/javavm/include -I../../../src/solaris/javavm/include -I../../../src/share/native/sun/nio/ch -I../../../src/share/native/java/io -I../../../src/share/native/java/net -I../../../src/solaris/native/java/net -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/java/nio -I../../../src/solaris/native/java/nio -c -o /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/java/java.nio/nio/obj/DatagramChannelImpl.o ../../../src/solaris/native/sun/nio/ch/DatagramChannelImpl.c > In file included from /usr/include/sys/types.h:49, > from /usr/include/sys/param.h:67, > from ../../../src/solaris/javavm/export/jvm_md.h:17, > from ../../../src/share/javavm/export/jvm.h:16, > from ../../../src/solaris/native/sun/nio/ch/DatagramChannelImpl.c:10: > /usr/include/machine/endian.h:53:1: "_LITTLE_ENDIAN" redefined > :14:1: this is the location of the previous definition > gmake[4]: *** [/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/java/java.nio/nio/obj/DatagramChannelImpl.o] Error 1 > gmake[4]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make/java/nio' > gmake[3]: *** [optimized] Error 2 > gmake[3]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make/java/nio' > gmake[2]: *** [all] Error 1 > gmake[2]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make/java' > gmake[1]: *** [all] Error 1 > gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make' > gmake: *** [j2se-build] Error 2 > *** Error code 2 The correct fix for this is to find all uses of _LITTLE_ENDIAN and replace them with uses of the appropriate defines included from . However, as a workaround the attached patch may work as this should just be a warning. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="nio.diff" Index: j2se/make/java/nio/Makefile =================================================================== RCS file: /var/jcvs/javasrc_1_4_scsl/j2se/make/java/nio/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile --- j2se/make/java/nio/Makefile 15 Feb 2003 14:45:49 -0000 1.4 +++ j2se/make/java/nio/Makefile 24 Aug 2003 05:37:04 -0000 @@ -131,7 +131,7 @@ # XXXBSD: really need it for BSD ? ifeq ($(PLATFORM), bsd) -OTHER_CFLAGS += -Werror +#OTHER_CFLAGS += -Werror OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH)$(SUFFIX) -ljava$(SUFFIX) -lnet$(SUFFIX) endif --r5Pyd7+fXNt84Ff3-- From owner-freebsd-java@FreeBSD.ORG Sat Aug 23 22:42:05 2003 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 6F2AF16A4BF for ; Sat, 23 Aug 2003 22:42:05 -0700 (PDT) Received: from mgr4.xmission.com (mgr4.xmission.com [198.60.22.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A1CF43F93 for ; Sat, 23 Aug 2003 22:42:04 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr4.xmission.com with spam-scanned (Exim 3.35 #1) id 19qndV-0001SI-04 for java@freebsd.org; Sat, 23 Aug 2003 23:42:03 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr4.xmission.com with esmtp (Exim 3.35 #1) id 19qndB-0001Kv-04; Sat, 23 Aug 2003 23:41:38 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.12.9/8.12.9) with ESMTP id h7O5nlC5052537; Sat, 23 Aug 2003 23:50:14 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.9/8.12.9/Submit) id h7O5lMKR052443; Sat, 23 Aug 2003 23:47:22 -0600 (MDT) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sat, 23 Aug 2003 23:46:27 -0600 From: Greg Lewis To: Yamada Ken Takeshi Message-ID: <20030824054627.GB50911@misty.eyesbeyond.com> References: <20030823143947.GA91554@misty.eyesbeyond.com> <20030824.135139.576024018.ken@tydfam.jp> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="A6N2fC+uXW/VQSAv" Content-Disposition: inline In-Reply-To: <20030824.135139.576024018.ken@tydfam.jp> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-9.7 required=8.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT,X_AUTH_WARNING version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: deischen@freebsd.org cc: java@freebsd.org Subject: Re: jdk14 on -current 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: Sun, 24 Aug 2003 05:42:05 -0000 --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Aug 24, 2003 at 01:51:39PM +0900, Yamada Ken Takeshi wrote: > One more! > I needed the below, too. > > j2se/src/solaris/native/java/net/Inet6AddressImpl.c > : : : : > #ifndef __GLIBC__ > /* gethostname() is in libc.so but I can't find a header file for it */ > /***** /usr/include/unistd.h : 407 *******/ > extern int gethostname(char *buf, size_t buf_len); > ^^^^^^ > #endif This is also fixed in CVS. However that fix requires a bit more work. Try the attached patch for a quick fix. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="Inet6AddressImpl.c.diff" --- j2se/src/solaris/native/java/net/Inet6AddressImpl.c.orig Sat Aug 23 23:44:36 2003 +++ j2se/src/solaris/native/java/net/Inet6AddressImpl.c Sat Aug 23 23:45:08 2003 @@ -14,6 +14,7 @@ #include #include #include +#include #include "jvm.h" #include "jni_util.h" @@ -26,7 +27,7 @@ #define NI_MAXHOST 1025 #endif -#ifndef __GLIBC__ +#if !defined(__GLIBC__) && !defined(__FreeBSD__) /* gethostname() is in libc.so but I can't find a header file for it */ extern int gethostname(char *buf, int buf_len); #endif --A6N2fC+uXW/VQSAv--