From owner-freebsd-java@FreeBSD.ORG Sun Apr 3 00:12:38 2005 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 D6D9016A4CE for ; Sun, 3 Apr 2005 00:12:38 +0000 (GMT) Received: from pd2mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DECA43D1F for ; Sun, 3 Apr 2005 00:12:38 +0000 (GMT) (envelope-from alex@varju.ca) Received: from pd5mr3so.prod.shaw.ca (pd5mr3so-qfe3.prod.shaw.ca [10.0.141.144]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IEC00L62GL26BF0@l-daemon> for freebsd-java@freebsd.org; Sat, 02 Apr 2005 17:12:38 -0700 (MST) Received: from pn2ml1so.prod.shaw.ca ([10.0.121.145]) by pd5mr3so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IEC00H30GL2NH10@pd5mr3so.prod.shaw.ca> for freebsd-java@freebsd.org; Sat, 02 Apr 2005 17:12:38 -0700 (MST) Received: from alex.varju.ca (S010600095beeacbb.vc.shawcable.net [24.83.194.151]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IEC00J6OGL1KT@l-daemon> for freebsd-java@freebsd.org; Sat, 02 Apr 2005 17:12:38 -0700 (MST) Received: from localhost ([127.0.0.1]) by alex.varju.ca with esmtp freebsd-java@freebsd.org; Sat, 02 Apr 2005 16:12:36 -0800 Date: Sat, 02 Apr 2005 16:12:36 -0800 From: Alex Varju In-reply-to: <424DD0FA.1070003@spymac.com> To: java Message-id: <424F34F4.4030709@varju.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-15; format=flowed Content-transfer-encoding: 8BIT X-Accept-Language: en-us, en References: <424490CD.9080203@chuckr.org> <4246D3C5.5060303@ebs.gr> <4246FE33.2090608@webct.com> <4248801D.7070405@webct.com> <42489BD2.40504@varju.ca> <424BA422.8070803@varju.ca> <424C5C2A.9080407@spymac.com> <424CBA64.4040404@varju.ca> <424DD0FA.1070003@spymac.com> User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050401) Subject: Re: eclipse 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, 03 Apr 2005 00:12:38 -0000 Bruno Van Den Bossche wrote: >> Until Eclipse supports native 1.5 builds, I'm not sure that there's >> anything we can do to improve things. > > I've been staring a bit at it but can't really come up with a solution. > The naïve me assumed the specified "target" and "source" options would > be taking care of issues like that. 3.1m6 is out, and the release notes seem to indicate that their compiler is now Java 1.5 compliant. Unfortunately, I get different errors (which sound likely to be the same thing) if I try to remove the linux-jdk requirement. Hopefully by the time 3.1 is actually released, they will have worked these problems out. My new patchset for 3.1m6 is here: http://www.varju.ca/alex/freebsd/eclipse-devel-3.1m6-1.tgz Alex. From owner-freebsd-java@FreeBSD.ORG Sun Apr 3 03:53:39 2005 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 014C516A4CF; Sun, 3 Apr 2005 03:53:39 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA5CC43D45; Sun, 3 Apr 2005 03:53:38 +0000 (GMT) (envelope-from clive@FreeBSD.org) Received: from freefall.freebsd.org (clive@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j333rcAH085699; Sun, 3 Apr 2005 03:53:38 GMT (envelope-from clive@freefall.freebsd.org) Received: (from clive@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j333rcU2085695; Sun, 3 Apr 2005 03:53:38 GMT (envelope-from clive) Date: Sun, 3 Apr 2005 03:53:38 GMT From: Clive Lin Message-Id: <200504030353.j333rcU2085695@freefall.freebsd.org> To: clive@FreeBSD.org, freebsd-java@FreeBSD.org, clive@FreeBSD.org Subject: Re: ports/76658: font.properties actual font file cannot point to a symlink 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, 03 Apr 2005 03:53:39 -0000 Synopsis: font.properties actual font file cannot point to a symlink Responsible-Changed-From-To: freebsd-java->clive Responsible-Changed-By: clive Responsible-Changed-When: Sun Apr 3 03:50:15 GMT 2005 Responsible-Changed-Why: Workaround found, and this now belongs to ports territory. I'll take care of this. http://www.freebsd.org/cgi/query-pr.cgi?pr=76658 From owner-freebsd-java@FreeBSD.ORG Sun Apr 3 14:55:27 2005 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 1049916A4CE for ; Sun, 3 Apr 2005 14:55:27 +0000 (GMT) Received: from outmx012.isp.belgacom.be (outmx012.isp.belgacom.be [195.238.3.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06F1543D1F for ; Sun, 3 Apr 2005 14:55:26 +0000 (GMT) (envelope-from brvdboss@spymac.com) Received: from outmx012.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id j33EtL8A008612 for ; Sun, 3 Apr 2005 16:55:21 +0200 (envelope-from ) Received: from [10.0.0.42] (138.234-201-80.adsl.skynet.be [80.201.234.138]) with ESMTP id j33EtJq4008594 for ; Sun, 3 Apr 2005 16:55:20 +0200 (envelope-from ) Message-ID: <425003E5.9020905@spymac.com> Date: Sun, 03 Apr 2005 16:55:33 +0200 From: Bruno Van Den Bossche Organization: Me, Myself & I User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050328) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org References: <424490CD.9080203@chuckr.org> <4246D3C5.5060303@ebs.gr> <4246FE33.2090608@webct.com> <4248801D.7070405@webct.com> <42489BD2.40504@varju.ca> <424BA422.8070803@varju.ca> <424C5C2A.9080407@spymac.com> <424CBA64.4040404@varju.ca> <424DD0FA.1070003@spymac.com> <424F34F4.4030709@varju.ca> In-Reply-To: <424F34F4.4030709@varju.ca> Content-Type: multipart/mixed; boundary="------------000306000002070109060806" Subject: Re: eclipse X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: brvdboss@spymac.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 14:55:27 -0000 This is a multi-part message in MIME format. --------------000306000002070109060806 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Alex Varju wrote: > Bruno Van Den Bossche wrote: > >>> Until Eclipse supports native 1.5 builds, I'm not sure that there's >>> anything we can do to improve things. >> >> >> I've been staring a bit at it but can't really come up with a >> solution. The naïve me assumed the specified "target" and "source" >> options would be taking care of issues like that. > > > 3.1m6 is out, and the release notes seem to indicate that their compiler > is now Java 1.5 compliant. Unfortunately, I get different errors (which > sound likely to be the same thing) if I try to remove the linux-jdk > requirement. > > Hopefully by the time 3.1 is actually released, they will have worked > these problems out. I found the problem, at least I like to think so :) In the file plugins/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/ExternalBrowserInstance.java they make the following call : DefaultBrowserSupport.getInstance().removeBrowser(getId()); This method requires a String for argument, and getId() returns a long. Which is a conversion that doesn't automagically happens. Changing this to : DefaultBrowserSupport.getInstance().removeBrowser(""+getId()); solves this problem and everything builds just fine on my machine without the need of a linux-jvm. This is an Eclipse-issue though. You seem to be more familiar with the Eclipse project, could you submit this to them? > My new patchset for 3.1m6 is here: > > http://www.varju.ca/alex/freebsd/eclipse-devel-3.1m6-1.tgz I've attached the patch for this dir. It should allow you to build the port now without the need for the linux-libraries. I hope you can confirm this :-) Regards, Bruno PS: Teaser ;-) : ... [exec] a eclipse/notice.html [exec] a eclipse/eclipse.ini [exec] a eclipse/epl-v10.html [echo] Done. BUILD SUCCESSFUL Total time: 7 minutes 39 seconds wave# --------------000306000002070109060806 Content-Type: text/plain; name="patch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch.diff" diff -rNu eclipse-devel.orig/files/patch-build.xml /usr/ports/java/eclipse-devel/files/patch-build.xml --- eclipse-devel.orig/files/patch-build.xml Sun Apr 3 01:22:50 2005 +++ eclipse-devel/files/patch-build.xml Sun Apr 3 16:39:36 2005 @@ -35,15 +35,6 @@ -@@ -148,7 +156,7 @@ - - - -- -+ - - - @@ -193,6 +201,9 @@ diff -rNu eclipse-devel.orig/files/patch-source-ExternalBrowser /usr/ports/java/eclipse-devel/files/patch-source-ExternalBrowser --- eclipse-devel.orig/files/patch-source-ExternalBrowser Thu Jan 1 01:00:00 1970 +++ eclipse-devel/files/patch-source-ExternalBrowser Sun Apr 3 16:03:55 2005 @@ -0,0 +1,13 @@ +--- plugins/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/ExternalBrowserInstance.java.orig Sun Apr 3 15:44:23 2005 ++++ plugins/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/ExternalBrowserInstance.java Sun Apr 3 15:44:47 2005 + +@@ -74,7 +74,7 @@ + public void run() { + try { + process.waitFor(); +- DefaultBrowserSupport.getInstance().removeBrowser(getId()); ++ DefaultBrowserSupport.getInstance().removeBrowser(""+getId()); + } catch (Exception e) { + // ignore + } + --------------000306000002070109060806-- From owner-freebsd-java@FreeBSD.ORG Sun Apr 3 23:46:10 2005 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 9D41E16A4CE for ; Sun, 3 Apr 2005 23:46:10 +0000 (GMT) Received: from pd4mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1180843D3F for ; Sun, 3 Apr 2005 23:46:10 +0000 (GMT) (envelope-from alex@varju.ca) Received: from pd3mr7so.prod.shaw.ca (pd3mr7so-qfe3.prod.shaw.ca [10.0.141.23])2004))freebsd-java@freebsd.org; Sun, 03 Apr 2005 17:46:09 -0600 (MDT) Received: from pn2ml1so.prod.shaw.ca ([10.0.121.145]) by pd3mr7so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IEE00LBNA0XZFB0@pd3mr7so.prod.shaw.ca> for freebsd-java@freebsd.org; Sun, 03 Apr 2005 17:46:09 -0600 (MDT) Received: from alex.varju.ca (S010600095beeacbb.vc.shawcable.net [24.83.194.151]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IEE00K54A0XM4@l-daemon> for freebsd-java@freebsd.org; Sun, 03 Apr 2005 17:46:09 -0600 (MDT) Received: from localhost ([127.0.0.1]) by alex.varju.ca with esmtp freebsd-java@freebsd.org; Sun, 03 Apr 2005 16:46:08 -0700 Date: Sun, 03 Apr 2005 16:46:07 -0700 From: Alex Varju In-reply-to: <425003E5.9020905@spymac.com> To: freebsd-java@freebsd.org Message-id: <4250803F.5030805@varju.ca> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-15 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en References: <424490CD.9080203@chuckr.org> <4246D3C5.5060303@ebs.gr> <4246FE33.2090608@webct.com> <4248801D.7070405@webct.com> <42489BD2.40504@varju.ca> <424BA422.8070803@varju.ca> <424C5C2A.9080407@spymac.com> <424CBA64.4040404@varju.ca> <424DD0FA.1070003@spymac.com> <424F34F4.4030709@varju.ca> <425003E5.9020905@spymac.com> User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050401) Subject: Re: eclipse 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, 03 Apr 2005 23:46:10 -0000 Bruno Van Den Bossche wrote: > I found the problem, at least I like to think so :) > In the file > plugins/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/ExternalBrowserInstance.java > > they make the following call : > DefaultBrowserSupport.getInstance().removeBrowser(getId()); > > This method requires a String for argument, and getId() returns a long. > Which is a conversion that doesn't automagically happens. Changing > this to : > DefaultBrowserSupport.getInstance().removeBrowser(""+getId()); > > solves this problem and everything builds just fine on my machine > without the need of a linux-jvm. This is perfect. I think this was the last thing I needed to clean the port up for non-amd64 machines. I'm just doing some build testing right now, and assuming all goes well I will be submitting the port within the next few days. > This is an Eclipse-issue though. You seem to be more familiar with the > Eclipse project, could you submit this to them? I'm actually only barely familiar with the project. :) You can probably just submit your patch for that file to their bugzilla database. ttyl Alex From owner-freebsd-java@FreeBSD.ORG Mon Apr 4 11:01:49 2005 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 D58CF16A4D5 for ; Mon, 4 Apr 2005 11:01:49 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B62B743D55 for ; Mon, 4 Apr 2005 11:01:49 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j34B1nnW012171 for ; Mon, 4 Apr 2005 11:01:49 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j34B1mfb012165 for freebsd-java@freebsd.org; Mon, 4 Apr 2005 11:01:48 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 4 Apr 2005 11:01:48 GMT Message-Id: <200504041101.j34B1mfb012165@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, 04 Apr 2005 11:01:50 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2002/05/13] ports/38018 java www/jakarta-tomcat4: make passing of JVM f [2002/05/13] ports/38020 java www/jakarta-tomcat4: stop tomcat via java o [2004/05/01] java/66151 java JBuilderX (sun jvm 1.4.1 builtin) crashes f [2004/07/13] java/68972 java unpack crashes during make install of lin o [2004/07/27] ports/69675 java Eclipse slow typing o [2004/09/22] ports/72014 java Eclipse doesn't work (SigBus 10) if it ha o [2004/10/20] ports/72902 java Make of /usr/ports/java/jdk14 fails with o [2004/12/06] ports/74760 java javavmwrapper messes up amavisd-new f [2004/12/21] ports/75348 java Tomcat port overwrites server.xml config o [2005/01/24] java/76631 java any port linux-*-jdk12 will core dump if o [2005/03/04] ports/78396 java Java 1.4 fails to compile under FreeBSD 4 11 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2003/09/16] ports/56928 java jce-aba port should install to $JAVA_HOME o [2004/08/11] java/70292 java jdk14 compile problem f [2004/11/24] ports/74344 java [proposal] tomcat41ctl: support for passi 3 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Apr 4 11:50:07 2005 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F24516A4D8 for ; Mon, 4 Apr 2005 11:50:07 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 301F543D46 for ; Mon, 4 Apr 2005 11:50:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j34Bo7pE021861 for ; Mon, 4 Apr 2005 11:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j34Bo7AJ021860; Mon, 4 Apr 2005 11:50:07 GMT (envelope-from gnats) Date: Mon, 4 Apr 2005 11:50:07 GMT Message-Id: <200504041150.j34Bo7AJ021860@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: "Ari Suutari" Subject: Re: ports/38020: www/jakarta-tomcat4: stop tomcat via java -jar bootstrap.jar stop X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ari Suutari List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2005 11:50:07 -0000 The following reply was made to PR ports/38020; it has been noted by GNATS. From: "Ari Suutari" To: , "Ari Suutari" Cc: Subject: Re: ports/38020: www/jakarta-tomcat4: stop tomcat via java -jar bootstrap.jar stop Date: Mon, 4 Apr 2005 14:47:44 +0300 Solution I submitted to ports/38018 fixes this also. From owner-freebsd-java@FreeBSD.ORG Mon Apr 4 12:12:51 2005 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 3F0CE16A4CE for ; Mon, 4 Apr 2005 12:12:51 +0000 (GMT) Received: from avgw.bjut.edu.cn (avgw.bjut.edu.cn [202.112.77.85]) by mx1.FreeBSD.org (Postfix) with SMTP id 905D543D5F for ; Mon, 4 Apr 2005 12:12:49 +0000 (GMT) (envelope-from liukang@bjpu.edu.cn) Received: from bjut.edu.cn ([202.112.78.226]) by avgw.bjut.edu.cn (SMSSMTP 4.0.4.64) with SMTP id M2005040420105514723 for ; Mon, 04 Apr 2005 20:10:55 +0800 Received: (eyou send program); Mon, 04 Apr 2005 19:55:10 +0800 Message-ID: <312615710.17152@bjut.edu.cn> X-EYOUMAIL-SMTPAUTH: liukang@bjut.edu.cn Received: from unknown (HELO bjute007c96f00) (221.218.18.251) by 202.112.78.226 with SMTP; Mon, 04 Apr 2005 19:55:10 +0800 From: "Kang Liu" To: "'Ari Suutari'" , Date: Mon, 4 Apr 2005 20:12:33 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <200504041150.j34Bo7AJ021860@freefall.freebsd.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Thread-Index: AcU5DIOWcW1/Xb+yQJ+Oh9JiFnNPNgAAkYXw Subject: RE: ports/38020: www/jakarta-tomcat4: stop tomcat via java -jarbootstrap.jar stop 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, 04 Apr 2005 12:12:51 -0000 A draft version of daemonctl.c for tomcat has been submitted to ports/75143, which can solve this issue. http://www.freebsd.org/cgi/query-pr.cgi?pr=75143 Kang From owner-freebsd-java@FreeBSD.ORG Mon Apr 4 19:22:03 2005 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 A43EC16A4CE for ; Mon, 4 Apr 2005 19:22:03 +0000 (GMT) Received: from outmx021.isp.belgacom.be (outmx021.isp.belgacom.be [195.238.2.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id D785743D2F for ; Mon, 4 Apr 2005 19:22:02 +0000 (GMT) (envelope-from brvdboss@spymac.com) Received: from outmx021.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id j34JLwAn021406 for ; Mon, 4 Apr 2005 21:21:58 +0200 (envelope-from ) Received: from [10.0.0.42] (172.49-201-80.adsl.skynet.be [80.201.49.172]) with ESMTP id j34JLuuX021391 for ; Mon, 4 Apr 2005 21:21:56 +0200 (envelope-from ) Message-ID: <425193E6.8020302@spymac.com> Date: Mon, 04 Apr 2005 21:22:14 +0200 From: Bruno Van Den Bossche Organization: Me, Myself & I User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050328) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: freebsd-java@freebsd.org References: <424490CD.9080203@chuckr.org> <4246D3C5.5060303@ebs.gr> <4246FE33.2090608@webct.com> <4248801D.7070405@webct.com> <42489BD2.40504@varju.ca> <424BA422.8070803@varju.ca> <424C5C2A.9080407@spymac.com> <424CBA64.4040404@varju.ca> <424DD0FA.1070003@spymac.com> <424F34F4.4030709@varju.ca> <425003E5.9020905@spymac.com> <4250803F.5030805@varju.ca> In-Reply-To: <4250803F.5030805@varju.ca> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: eclipse X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: brvdboss@spymac.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2005 19:22:03 -0000 Alex Varju wrote: > Bruno Van Den Bossche wrote: > [...] >> solves this problem and everything builds just fine on my machine >> without the need of a linux-jvm. > > This is perfect. I think this was the last thing I needed to clean the > port up for non-amd64 machines. I'm just doing some build testing right > now, and assuming all goes well I will be submitting the port within the > next few days. Great, the only think that still needed tweaking (I think) was the adding of a pkg_plist. >> This is an Eclipse-issue though. You seem to be more familiar with >> the Eclipse project, could you submit this to them? > > I'm actually only barely familiar with the project. :) You can probably > just submit your patch for that file to their bugzilla database. Ok, I did earlier today and there seems to a strange thing going on https://bugs.eclipse.org/bugs/show_bug.cgi?id=90155 The getId() method actually returns a String and not a long as the compiler seems to think. I haven't got a clue why the compiler thinks it's a long. If you (or anyone for that matter) have any clue, feel free to pitch in :) Bruno From owner-freebsd-java@FreeBSD.ORG Mon Apr 4 20:09:39 2005 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D38C16A4CE; Mon, 4 Apr 2005 20:09:39 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7643343D39; Mon, 4 Apr 2005 20:09:39 +0000 (GMT) (envelope-from hq@FreeBSD.org) Received: from freefall.freebsd.org (hq@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j34K9deA022719; Mon, 4 Apr 2005 20:09:39 GMT (envelope-from hq@freefall.freebsd.org) Received: (from hq@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j34K9dVv022715; Mon, 4 Apr 2005 20:09:39 GMT (envelope-from hq) Date: Mon, 4 Apr 2005 20:09:39 GMT From: Herve Quiroz Message-Id: <200504042009.j34K9dVv022715@freefall.freebsd.org> To: hq@FreeBSD.org, hq@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: ports/59571: improvements of www/jakarta-tomcat4[1] Makefile and control program 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, 04 Apr 2005 20:09:39 -0000 Synopsis: improvements of www/jakarta-tomcat4[1] Makefile and control program Responsible-Changed-From-To: hq->freebsd-java Responsible-Changed-By: hq Responsible-Changed-When: Mon Apr 4 20:06:05 GMT 2005 Responsible-Changed-Why: Since there are several PRs on the subject, let assign them all to the same person, namely freebsd-java@ I'll still handle them but this should help the Java community to keep informed. http://www.freebsd.org/cgi/query-pr.cgi?pr=59571 From owner-freebsd-java@FreeBSD.ORG Mon Apr 4 20:10:41 2005 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30B4916A4CE; Mon, 4 Apr 2005 20:10:41 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0918B43D3F; Mon, 4 Apr 2005 20:10:41 +0000 (GMT) (envelope-from hq@FreeBSD.org) Received: from freefall.freebsd.org (hq@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j34KAeYx022854; Mon, 4 Apr 2005 20:10:40 GMT (envelope-from hq@freefall.freebsd.org) Received: (from hq@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j34KAekC022850; Mon, 4 Apr 2005 20:10:40 GMT (envelope-from hq) Date: Mon, 4 Apr 2005 20:10:40 GMT From: Herve Quiroz Message-Id: <200504042010.j34KAekC022850@freefall.freebsd.org> To: hq@FreeBSD.org, hq@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: ports/75143: There is no way to specify jvm parameters when starting jakarta-tomcat. 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, 04 Apr 2005 20:10:41 -0000 Synopsis: There is no way to specify jvm parameters when starting jakarta-tomcat. Responsible-Changed-From-To: hq->freebsd-java Responsible-Changed-By: hq Responsible-Changed-When: Mon Apr 4 20:09:56 GMT 2005 Responsible-Changed-Why: Since there are several PRs on the subject, let assign them all to the same person, namely freebsd-java@ I'll still handle them but this should help the Java community to keep informed. http://www.freebsd.org/cgi/query-pr.cgi?pr=75143 From owner-freebsd-java@FreeBSD.ORG Tue Apr 5 05:07:54 2005 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 8EED516A4CE for ; Tue, 5 Apr 2005 05:07:54 +0000 (GMT) Received: from pd4mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DE3343D1F for ; Tue, 5 Apr 2005 05:07:54 +0000 (GMT) (envelope-from alex@varju.ca) Received: from pd4mr4so.prod.shaw.ca (pd4mr4so-qfe3.prod.shaw.ca [10.0.141.215]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IEG00FC7JL5OL5T@l-daemon> for freebsd-java@freebsd.org; Mon, 04 Apr 2005 23:07:53 -0600 (MDT) Received: from pn2ml3so.prod.shaw.ca ([10.0.121.147]) by pd4mr4so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IEG00BO7JL53OA0@pd4mr4so.prod.shaw.ca> for freebsd-java@freebsd.org; Mon, 04 Apr 2005 23:07:53 -0600 (MDT) Received: from alex.varju.ca (S010600095beeacbb.vc.shawcable.net [24.83.194.151]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IEG0018EJL5QW@l-daemon> for freebsd-java@freebsd.org; Mon, 04 Apr 2005 23:07:53 -0600 (MDT) Received: from localhost ([127.0.0.1]) by alex.varju.ca with esmtp freebsd-java@freebsd.org; Mon, 04 Apr 2005 22:07:52 -0700 Date: Mon, 04 Apr 2005 22:07:52 -0700 From: Alex Varju In-reply-to: <425193E6.8020302@spymac.com> To: freebsd-java@freebsd.org Message-id: <42521D28.50505@varju.ca> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-15 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en References: <424490CD.9080203@chuckr.org> <4246D3C5.5060303@ebs.gr> <4246FE33.2090608@webct.com> <4248801D.7070405@webct.com> <42489BD2.40504@varju.ca> <424BA422.8070803@varju.ca> <424C5C2A.9080407@spymac.com> <424CBA64.4040404@varju.ca> <424DD0FA.1070003@spymac.com> <424F34F4.4030709@varju.ca> <425003E5.9020905@spymac.com> <4250803F.5030805@varju.ca> <425193E6.8020302@spymac.com> User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050401) Subject: Re: eclipse 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: Tue, 05 Apr 2005 05:07:54 -0000 Bruno Van Den Bossche wrote: > Great, the only think that still needed tweaking (I think) was the > adding of a pkg_plist. Okay, I've fixed the plist ... I wanted to make it dynamic, but I had trouble building the list of directories automatically. I'm assuming that other Eclipse plugins will be installed in the same directory, so I can't just walk the directory after installing. Right now I've got a hidden makefile target that will generate the pkg-plist file based on the assumption that there are no plugins installed. It can be run by the port maintainer after upgrading. My latest version is here: http://www.varju.ca/alex/freebsd/eclipse-devel-3.1m6-2.tgz I know that there are still a few things wrong still. I tried a Motif build on my i386 box yesterday, and it will compile, but crashes during startup. I don't know what's going wrong there. Also, the libswt-mozilla library is not getting compiled under gtk-amd64 right now, and I'm having trouble convincing the build to do what I want. Once I get these issues resolved, I'll submit my port. > Ok, I did earlier today and there seems to a strange thing going on > https://bugs.eclipse.org/bugs/show_bug.cgi?id=90155 > > The getId() method actually returns a String and not a long as the > compiler seems to think. I haven't got a clue why the compiler thinks > it's a long. If you (or anyone for that matter) have any clue, feel > free to pitch in :) That is strange. As you say, it sure does look like the getId() method is returning a String, so I don't know why it would claim otherwise. The whole build is complicated by the fact that Eclipse is using its own compiler to do a lot of the work, so this error message is probably not coming directly from javac. Now that I think of it, though, have you tried compiling that same code with javac? That might help narrow the problem down to either our compiler or theirs. Alex. From owner-freebsd-java@FreeBSD.ORG Tue Apr 5 05:23:44 2005 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 49EBB16A4CE for ; Tue, 5 Apr 2005 05:23:44 +0000 (GMT) Received: from espresso2.syncrontech.com (sync-old.syncrontech.com [213.28.98.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11F4643D4C for ; Tue, 5 Apr 2005 05:23:42 +0000 (GMT) (envelope-from ari.suutari@syncrontech.com) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.57])j355NRsT084107; Tue, 5 Apr 2005 08:23:27 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) Received: from coffee (coffee.syncrontech.com [62.71.8.37]) j355NHH4091232; Tue, 5 Apr 2005 08:23:22 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) Message-ID: <02f501c5399f$94ec3ae0$2508473e@sad.syncrontech.com> From: "Ari Suutari" To: "Kang Liu" , References: <312615710.17152@bjut.edu.cn> Date: Tue, 5 Apr 2005 08:23:10 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: ports/38020: www/jakarta-tomcat4: stop tomcat via java -jarbootstrap.jar stop 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: Tue, 05 Apr 2005 05:23:44 -0000 Hi, >Subject: RE: ports/38020: www/jakarta-tomcat4: stop tomcat via java -jarbootstrap.jar stop > >A draft version of daemonctl.c for tomcat has been submitted to ports/75143, > which can solve this issue. > http://www.freebsd.org/cgi/query-pr.cgi?pr=75143 If I understood correctly, this patch expects that JVM arguments are given always at command line ? I think it should be read from configuration file (utility's own or /etc/rc.conf), because in a production environment these parameters are very much fixed. Ari S. From owner-freebsd-java@FreeBSD.ORG Tue Apr 5 08:57:36 2005 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 5DB4716A4CE for ; Tue, 5 Apr 2005 08:57:36 +0000 (GMT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9332043D4C for ; Tue, 5 Apr 2005 08:57:35 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 5324E56423; Tue, 5 Apr 2005 20:57:30 +1200 (NZST) Date: Tue, 5 Apr 2005 20:57:30 +1200 From: Jonathan Chen To: Kang Liu Message-ID: <20050405085730.GB18346@osiris.chen.org.nz> References: <200504041150.j34Bo7AJ021860@freefall.freebsd.org> <312615710.17152@bjut.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <312615710.17152@bjut.edu.cn> User-Agent: Mutt/1.4.2.1i cc: freebsd-java@FreeBSD.org Subject: Re: ports/38020: www/jakarta-tomcat4: stop tomcat via java -jarbootstrap.jar stop 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: Tue, 05 Apr 2005 08:57:36 -0000 On Mon, Apr 04, 2005 at 08:12:33PM +0800, Kang Liu wrote: > A draft version of daemonctl.c for tomcat has been submitted to ports/75143, > which can solve this issue. > http://www.freebsd.org/cgi/query-pr.cgi?pr=75143 There's a bit of code in here that doesn't look right: [...] if (pid2 == 0) { arguments = malloc(sizeof(char*) * 6 ); arguments[0] = "%%JAVA_HOME%%/%%JAVA_CMD%%"; arguments[1] = "-jar"; arguments[2] = %%JAVA_ARGS%%; arguments[3] = "%%APP_HOME%%/%%JAR_FILE%%"; arguments[4] = "stop"; arguments[5] = NULL; [...] } Having the %%JAVA_ARGS%% substitution follow "-jar" doesn't look correct to to me. Shouldn't the jar-file follow the "-jar" argument? A possible alternative is pick up the code from java/jboss4; remove the "jbossArgs" code in daemonctl.c, make the right substitutions in the Makefile and you'll have a daemonctl program that does accept JVM arguments, as well as having a RCng-fied startup script as well. Cheers. -- Jonathan Chen | To do is to be -- Nietzsche | To be is to do -- Sartre | Scooby do be do -- Scooby From owner-freebsd-java@FreeBSD.ORG Tue Apr 5 13:07:42 2005 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 B714B16A521; Tue, 5 Apr 2005 13:07:42 +0000 (GMT) Received: from bloodwood.hunterlink.net.au (smtp-local.hunterlink.net.au [203.12.144.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FF5343D53; Tue, 5 Apr 2005 13:07:41 +0000 (GMT) (envelope-from boris@brooknet.com.au) Received: from ppp267D.dyn.pacific.net.au (ppp267D.dyn.pacific.net.au [61.8.38.125])j35D7Wjs031432; Tue, 5 Apr 2005 23:07:38 +1000 From: Sam Lawrance To: Herve Quiroz Content-Type: text/plain Date: Tue, 05 Apr 2005 23:07:32 +1000 Message-Id: <1112706453.750.22.camel@dirk.no.domain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: java@FreeBSD.org Subject: JDK specific classpaths 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: Tue, 05 Apr 2005 13:07:42 -0000 Since you're around, and handling java PRs... hope you don't mind :) I'm looking at the NetRexx port right now. In order to work it needs sun.tools.javac.* in the classpath. That stuff is located in /usr/local/SOME_JDK/lib/tools.jar Any suggestions as to how java should be invoked to provide the "correct" tools.jar? Simplified, but something akin to: java -cp $JDK_HOME/lib/tools.jar Any suggestions? From owner-freebsd-java@FreeBSD.ORG Tue Apr 5 13:32:30 2005 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 AF30116A4D0 for ; Tue, 5 Apr 2005 13:32:30 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 160CE43D3F for ; Tue, 5 Apr 2005 13:32:29 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost [127.0.0.1]) j35DWCNl063569; Tue, 5 Apr 2005 15:32:12 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.3/8.13.3/Submit) id j35DW5cq063568; Tue, 5 Apr 2005 15:32:05 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Tue, 5 Apr 2005 15:32:05 +0200 From: Herve Quiroz To: Sam Lawrance Message-ID: <20050405133205.GA63174@arabica.esil.univ-mrs.fr> Mail-Followup-To: Sam Lawrance , java@FreeBSD.org References: <1112706453.750.22.camel@dirk.no.domain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1112706453.750.22.camel@dirk.no.domain> User-Agent: Mutt/1.4.2.1i cc: java@FreeBSD.org Subject: Re: JDK specific classpaths 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: Tue, 05 Apr 2005 13:32:30 -0000 Hi Sam, On Tue, Apr 05, 2005 at 11:07:32PM +1000, Sam Lawrance wrote: > Since you're around, and handling java PRs... hope you don't mind :) > > I'm looking at the NetRexx port right now. In order to work it needs > sun.tools.javac.* in the classpath. That stuff is located > in /usr/local/SOME_JDK/lib/tools.jar > > Any suggestions as to how java should be invoked to provide the > "correct" tools.jar? > > Simplified, but something akin to: > java -cp $JDK_HOME/lib/tools.jar > > Any suggestions? I would indeed use the same approach as you explain here. To detail further, I would use a launcher shell script 'files/netrexx.sh.in': #!/bin/sh "%%JAVA%%" -cp "%%JAVA_HOME%%/lib/tools.jar" ... And in the Makefile: SUB_FILES= netrexx.sh SUB_LIST= JAVA="${JAVA}" JAVA_HOME="${JAVA_HOME}" do-install: ${INSTALL_SCRIPT} ${WRKDIR}/netrexx.sh ${PREFIX}/bin/netrexx The downside of this approach is that it is not flexible: the end user cannot switch JDK at runtime. So here is another approach (still using the same Makefile): #!/bin/sh JAVA_HOME="${JAVA_HOME:-"%%JAVA_HOME%%"}" "${JAVA_HOME}/bin/java" -cp "${JAVA_HOME}/lib/tools.jar" ... A last approach would be to implement a 'java-home' tool, part of java/javavmwrapper, that would use the same logic as javavm but to produce a suitable JAVA_HOME value. Then: #!/bin/sh export JAVA_VERSION="%%JAVA_VERSION%%" JAVA_HOME="${JAVA_HOME:-"`%%LOCALBASE%%/bin/java-home`"}" "%%LOCALBASE%%/bin/java" -cp "${JAVA_HOME}/lib/tools.jar" ... NOTE: %%JAVA_VERSION%% is already added automatically to SUB_LIST by bsd.java.mk, as well as %%LOCALBASE%%. That said, and until some volunteer starts working on improving javavmwrapper, I would go with method #2 (overridable JAVA_HOME). Hope that helps. Anyway, I'm looking forward to your next PR :) Herve From owner-freebsd-java@FreeBSD.ORG Tue Apr 5 15:44:21 2005 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 63B7816A4CE; Tue, 5 Apr 2005 15:44:21 +0000 (GMT) Received: from misty.eyesbeyond.com (glewis.dsl.xmission.com [166.70.56.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id A551C43D53; Tue, 5 Apr 2005 15:44:20 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.3/8.13.3) with ESMTP id j35FiAGo000629; Tue, 5 Apr 2005 09:44:10 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.3/8.13.3/Submit) id j35Fi92q000628; Tue, 5 Apr 2005 09:44:09 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 5 Apr 2005 09:44:08 -0600 From: Greg Lewis To: Sam Lawrance , java@FreeBSD.org Message-ID: <20050405154408.GA443@misty.eyesbeyond.com> References: <1112706453.750.22.camel@dirk.no.domain> <20050405133205.GA63174@arabica.esil.univ-mrs.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050405133205.GA63174@arabica.esil.univ-mrs.fr> User-Agent: Mutt/1.4.2.1i cc: hq@FreeBSD.org Subject: Re: JDK specific classpaths 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: Tue, 05 Apr 2005 15:44:21 -0000 On Tue, Apr 05, 2005 at 03:32:05PM +0200, Herve Quiroz wrote: > On Tue, Apr 05, 2005 at 11:07:32PM +1000, Sam Lawrance wrote: > That said, and until some volunteer starts working on improving > javavmwrapper, I would go with method #2 (overridable JAVA_HOME). The problem is that although javavmwrapper exports JAVA_HOME to its children, we're wanting to use JAVA_HOME during its invocation. While I don't think a full blown tool to print out JAVA_HOME is necessarily warranted, it may be useful to have javavmwrapper do some substitutions on the command line arguments it is given, e.g. "s/%%JAVA_HOME%%/${JAVA_HOME}" in this particular case. Presently I can only see uses for JAVA_HOME and the version, so this should be quite simple to implement. -- 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 Apr 5 16:31:52 2005 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 EACF916A4CE for ; Tue, 5 Apr 2005 16:31:52 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BCC043D1F for ; Tue, 5 Apr 2005 16:31:51 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost [127.0.0.1]) j35GVTtG077650; Tue, 5 Apr 2005 18:31:29 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.3/8.13.3/Submit) id j35GVQn0077649; Tue, 5 Apr 2005 18:31:26 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Tue, 5 Apr 2005 18:31:26 +0200 From: Herve Quiroz To: Greg Lewis Message-ID: <20050405163126.GA77275@arabica.esil.univ-mrs.fr> Mail-Followup-To: Greg Lewis , Sam Lawrance , java@FreeBSD.org References: <1112706453.750.22.camel@dirk.no.domain> <20050405133205.GA63174@arabica.esil.univ-mrs.fr> <20050405154408.GA443@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050405154408.GA443@misty.eyesbeyond.com> User-Agent: Mutt/1.4.2.1i cc: java@FreeBSD.org cc: Sam Lawrance Subject: Re: JDK specific classpaths 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: Tue, 05 Apr 2005 16:31:53 -0000 Hi Greg, On Tue, Apr 05, 2005 at 09:44:08AM -0600, Greg Lewis wrote: > On Tue, Apr 05, 2005 at 03:32:05PM +0200, Herve Quiroz wrote: > > On Tue, Apr 05, 2005 at 11:07:32PM +1000, Sam Lawrance wrote: > > That said, and until some volunteer starts working on improving > > javavmwrapper, I would go with method #2 (overridable JAVA_HOME). > > The problem is that although javavmwrapper exports JAVA_HOME to its > children, we're wanting to use JAVA_HOME during its invocation. > > While I don't think a full blown tool to print out JAVA_HOME is > necessarily warranted, it may be useful to have javavmwrapper do > some substitutions on the command line arguments it is given, e.g. > "s/%%JAVA_HOME%%/${JAVA_HOME}" in this particular case. Presently > I can only see uses for JAVA_HOME and the version, so this should > be quite simple to implement. I agree with you here. I had already thought that a JAVA_HOME print out tool would have been useful for Ant, which requires JAVA_HOME so that it may find core classes and tools. It has to discover a suitable JAVA_HOME (or verify the one specified by the user) first, and then run ${JAVA_HOME}/bin/java. And now that you refreshed my memory regarding the logic in javavmwrapper (already exporting JAVA_HOME to its children), I think we may already greatly simplify or improve this launcher shell script. Thanks for reminding me of this, Greg. :) BTW, Sam sent me a patch using the method #2 (overridable JAVA_HOME) I suggested so I guess we are fine for now regarding NetRexx/JAVA_HOME. OTOH, looking at '/usr/local/bin/maven': TOOLS_JAR="${JAVA_HOME}/lib/tools.jar" So that's another use case for the %%JAVA_HOME%% feature you suggested. Now we have to decide whether it's worth implementing the feature. But I think we need to find out exactly the ports that would benefit from such feature... Herve From owner-freebsd-java@FreeBSD.ORG Tue Apr 5 20:17:28 2005 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 AE5D816A4CE for ; Tue, 5 Apr 2005 20:17:28 +0000 (GMT) Received: from outmx009.isp.belgacom.be (outmx009.isp.belgacom.be [195.238.3.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83A0143D48 for ; Tue, 5 Apr 2005 20:17:27 +0000 (GMT) (envelope-from brvdboss@spymac.com) Received: from outmx009.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id j35KHK8l004323 for ; Tue, 5 Apr 2005 22:17:20 +0200 (envelope-from ) Received: from [10.0.0.42] (188-185.243.81.adsl.skynet.be [81.243.185.188]) with ESMTP id j35KHE2b004261 for ; Tue, 5 Apr 2005 22:17:14 +0200 (envelope-from ) Message-ID: <4252F261.7020905@spymac.com> Date: Tue, 05 Apr 2005 22:17:37 +0200 From: Bruno Van Den Bossche Organization: Me, Myself & I User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050328) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: freebsd-java@freebsd.org References: <424490CD.9080203@chuckr.org> <4246D3C5.5060303@ebs.gr> <4246FE33.2090608@webct.com> <4248801D.7070405@webct.com> <42489BD2.40504@varju.ca> <424BA422.8070803@varju.ca> <424C5C2A.9080407@spymac.com> <424CBA64.4040404@varju.ca> <424DD0FA.1070003@spymac.com> <424F34F4.4030709@varju.ca> <425003E5.9020905@spymac.com> <4250803F.5030805@varju.ca> <425193E6.8020302@spymac.com> <42521D28.50505@varju.ca> In-Reply-To: <42521D28.50505@varju.ca> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: eclipse X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: brvdboss@spymac.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 20:17:28 -0000 Alex Varju wrote: > Bruno Van Den Bossche wrote: > http://www.varju.ca/alex/freebsd/eclipse-devel-3.1m6-2.tgz > > I know that there are still a few things wrong still. I tried a Motif > build on my i386 box yesterday, and it will compile, but crashes during > startup. I don't know what's going wrong there. Also, the > libswt-mozilla library is not getting compiled under gtk-amd64 right > now, and I'm having trouble convincing the build to do what I want. > > Once I get these issues resolved, I'll submit my port. Ok, great work! >> Ok, I did earlier today and there seems to a strange thing going on >> https://bugs.eclipse.org/bugs/show_bug.cgi?id=90155 >> >> The getId() method actually returns a String and not a long as the >> compiler seems to think. I haven't got a clue why the compiler thinks >> it's a long. If you (or anyone for that matter) have any clue, feel >> free to pitch in :) > > That is strange. As you say, it sure does look like the getId() method > is returning a String, so I don't know why it would claim otherwise. The > whole build is complicated by the fact that Eclipse is using its own > compiler to do a lot of the work, so this error message is probably not > coming directly from javac. Now that I think of it, though, have you > tried compiling that same code with javac? That might help narrow the > problem down to either our compiler or theirs. The bug has been solved! I just found what was wrong when I noticed I got an e-mail from bugzilla with the solution :) (Try the eclipse-source tree in eclipse, it's a nightmare!) The getId() method that was actually called wasn't from AbstractWebBrowser but from Thread :-/ It's one of those classic bugs. That'll teach me from just trying the quick fix without investigating :-/ So the fix should be (as mentioned in the bug-report): DefaultBrowserSupport.getInstance().removeBrowser(ExternalBrowserInstance.this.getId()); Bruno From owner-freebsd-java@FreeBSD.ORG Wed Apr 6 06:47:10 2005 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 0821C16A4CE for ; Wed, 6 Apr 2005 06:47:10 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id F253043D2F for ; Wed, 6 Apr 2005 06:47:08 +0000 (GMT) (envelope-from andreas.kohn@gmx.net) Received: (qmail invoked by alias); 06 Apr 2005 06:47:07 -0000 Received: from unknown (EHLO localhost.localdomain) [212.204.44.203] by mail.gmx.net (mp018) with SMTP; 06 Apr 2005 08:47:07 +0200 X-Authenticated: #2431876 From: Andreas Kohn To: Alex Varju In-Reply-To: <42521D28.50505@varju.ca> References: <424490CD.9080203@chuckr.org> <4246D3C5.5060303@ebs.gr> <4248801D.7070405@webct.com> <42489BD2.40504@varju.ca> <424BA422.8070803@varju.ca> <424C5C2A.9080407@spymac.com> <424CBA64.4040404@varju.ca> <424DD0FA.1070003@spymac.com> <424F34F4.4030709@varju.ca> <425003E5.9020905@spymac.com> <4250803F.5030805@varju.ca> <425193E6.8020302@spymac.com> <42521D28.50505@varju.ca> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-nLgYLpOzbORkp+ckbrnI" Date: Wed, 06 Apr 2005 08:47:06 +0200 Message-Id: <1112770026.961.29.camel@klamath.syndrom23.de> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 FreeBSD GNOME Team Port X-Y-GMX-Trusted: 0 cc: freebsd-java@freebsd.org Subject: Re: eclipse 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, 06 Apr 2005 06:47:10 -0000 --=-nLgYLpOzbORkp+ckbrnI Content-Type: multipart/mixed; boundary="=-CR7dL2vQZV+cxfRCwBMz" --=-CR7dL2vQZV+cxfRCwBMz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2005-04-04 at 22:07 -0700, Alex Varju wrote: > Bruno Van Den Bossche wrote: > > Great, the only think that still needed tweaking (I think) was the=20 > > adding of a pkg_plist. >=20 > Okay, I've fixed the plist ... I wanted to make it dynamic, but I had=20 > trouble building the list of directories automatically. I'm assuming=20 > that other Eclipse plugins will be installed in the same directory, so I=20 > can't just walk the directory after installing. Right now I've got a=20 > hidden makefile target that will generate the pkg-plist file based on=20 > the assumption that there are no plugins installed. It can be run by=20 > the port maintainer after upgrading. >=20 > My latest version is here: >=20 > http://www.varju.ca/alex/freebsd/eclipse-devel-3.1m6-2.tgz >=20 Works for me on FreeBSD/i386 6.0-CURRENT. I applied attached build to have eclipse build with mozilla-devel instead of the default mozilla. One strange thing: At one build stage, it looked like it would build gtk64 support things, is this to be expected on i386? Regards, Andreas --=-CR7dL2vQZV+cxfRCwBMz Content-Disposition: attachment; filename=eclipse-devel-mozilla-devel.patch Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=eclipse-devel-mozilla-devel.patch; charset=UTF-8 LS0tIE1ha2VmaWxlLm9yaWcJTW9uIEFwciAgNCAwNToxMjowNCAyMDA1DQorKysgTWFrZWZpbGUJ V2VkIEFwciAgNiAwNzo0Nzo1MyAyMDA1DQpAQCAtNDQsOSArNDQsOSBAQA0KIFVTRV9NT1RJRj0J eWVzDQogLmVsc2UNCiBFQ0xJUFNFX1dTPQlndGsNCi0uaWYgZGVmaW5lZChXSVRIX01PWklMTEEp ICYmICR7V0lUSF9NT1pJTExBfSA9PSAiZmlyZWZveCINCi1CVUlMRF9ERVBFTkRTKz0JZmlyZWZv eDoke1BPUlRTRElSfS93d3cvZmlyZWZveA0KLUJST1dTRVI9CWZpcmVmb3gNCisuaWYgZGVmaW5l ZChXSVRIX01PWklMTEEpIA0KK0JST1dTRVI9CSR7V0lUSF9NT1pJTExBfQ0KK0JVSUxEX0RFUEVO RFMrPQkke0JST1dTRVJ9OiR7UE9SVFNESVJ9L3d3dy8ke0JST1dTRVJ9DQogLmVsc2UNCiBCVUlM RF9ERVBFTkRTKz0JbW96aWxsYToke1BPUlRTRElSfS93d3cvbW96aWxsYQ0KIEJST1dTRVI9CW1v emlsbGENCg== --=-CR7dL2vQZV+cxfRCwBMz-- --=-nLgYLpOzbORkp+ckbrnI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCU4XqYucd7Ow1ygwRAmEcAJ4iiR1O5wsNY0awSxzg9slEIxX3MgCfc5QZ zFWkf2PZLl2kPUDo9FkS1MM= =ryr/ -----END PGP SIGNATURE----- --=-nLgYLpOzbORkp+ckbrnI-- From owner-freebsd-java@FreeBSD.ORG Wed Apr 6 07:07:58 2005 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 5CF9216A4CE for ; Wed, 6 Apr 2005 07:07:58 +0000 (GMT) Received: from pd2mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id F389C43D2F for ; Wed, 6 Apr 2005 07:07:57 +0000 (GMT) (envelope-from alex@varju.ca) Received: from pd2mr8so.prod.shaw.ca (pd2mr8so-qfe3.prod.shaw.ca [10.0.141.11])2004))freebsd-java@freebsd.org; Wed, 06 Apr 2005 01:07:30 -0600 (MDT) Received: from pn2ml5so.prod.shaw.ca ([10.0.121.149]) by pd2mr8so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IEI001B9JSINK70@pd2mr8so.prod.shaw.ca> for freebsd-java@freebsd.org; Wed, 06 Apr 2005 01:07:30 -0600 (MDT) Received: from alex.varju.ca ([24.83.194.151]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IEI0003YJSH3B@l-daemon> for freebsd-java@freebsd.org; Wed, 06 Apr 2005 01:07:30 -0600 (MDT) Received: from localhost ([127.0.0.1]) by alex.varju.ca with esmtp freebsd-java@freebsd.org; Wed, 06 Apr 2005 00:07:29 -0700 Date: Wed, 06 Apr 2005 00:07:22 -0700 From: Alex Varju In-reply-to: <1112770026.961.29.camel@klamath.syndrom23.de> To: freebsd-java@freebsd.org Message-id: <42538AAA.70202@varju.ca> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en References: <424490CD.9080203@chuckr.org> <4246D3C5.5060303@ebs.gr> <4248801D.7070405@webct.com> <42489BD2.40504@varju.ca> <424BA422.8070803@varju.ca> <424C5C2A.9080407@spymac.com> <424CBA64.4040404@varju.ca> <424DD0FA.1070003@spymac.com> <424F34F4.4030709@varju.ca> <425003E5.9020905@spymac.com> <4250803F.5030805@varju.ca> <425193E6.8020302@spymac.com> <42521D28.50505@varju.ca> <1112770026.961.29.camel@klamath.syndrom23.de> User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050401) Subject: Re: eclipse 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, 06 Apr 2005 07:07:58 -0000 Andreas Kohn wrote: >Works for me on FreeBSD/i386 6.0-CURRENT. I applied attached build to >have eclipse build with mozilla-devel instead of the default mozilla. > > I've combined this fix with the one Bruno sent, as well as a few other random cleanups. Here's an updated package: http://www.varju.ca/alex/freebsd/eclipse-devel-3.1m6-3.tgz The libswt-mozilla library is building now, but I don't think it's working correctly on my system. I'm not positive, but I think the Help system uses it .. if I try to go to Help Contents, nothing happens. (This is better than before the plugin was built, as then it created a mozilla process that spun forever). This patch is still missing Motif support. I've just flagged this as broken, as I don't actually expect to track this down myself. My i386 system is far too slow to do test builds on, and it doesn't like there are linux x86_64 motif build files to base an amd64 build on. >One strange thing: At one build stage, it looked like it would build >gtk64 support things, is this to be expected on i386? > > It's possible that I've messed something up there, but it's also possible that Eclipse builds more than it actually needs. What exactly are you seeing? Alex. From owner-freebsd-java@FreeBSD.ORG Wed Apr 6 17:44:13 2005 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 B01E916A4CE for ; Wed, 6 Apr 2005 17:44:13 +0000 (GMT) Received: from smtp-out2.tiscali.nl (smtp-out2.tiscali.nl [195.241.79.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06BFB43D41 for ; Wed, 6 Apr 2005 17:44:13 +0000 (GMT) (envelope-from nickyb@tiscali.nl) Received: from [192.168.1.1] (195-241-111-148-mx.xdsl.tiscali.nl [195.241.111.148]) by smtp-out2.tiscali.nl (Postfix) with ESMTP id B3D9AB000083; Wed, 6 Apr 2005 19:44:01 +0200 (CEST) Message-ID: <42541FE4.6030301@tiscali.nl> Date: Wed, 06 Apr 2005 19:44:04 +0200 From: nicky User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050401) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alex Varju References: <424490CD.9080203@chuckr.org> <4246D3C5.5060303@ebs.gr> <4248801D.7070405@webct.com> <42489BD2.40504@varju.ca> <424BA422.8070803@varju.ca> <424C5C2A.9080407@spymac.com> <424CBA64.4040404@varju.ca> <424DD0FA.1070003@spymac.com> <424F34F4.4030709@varju.ca> <425003E5.9020905@spymac.com> <4250803F.5030805@varju.ca> <425193E6.8020302@spymac.com> <42521D28.50505@varju.ca> <1112770026.961.29.camel@klamath.syndrom23.de> <42538AAA.70202@varju.ca> In-Reply-To: <42538AAA.70202@varju.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: eclipse 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, 06 Apr 2005 17:44:13 -0000 Hello, I've taken your new patched port. Deinstalled eclipse-3.0, installed 3.1. Seems to work just fine sofar. Help system does seem to hang. I've used WITHOUT_GNOMEVFS and WITH_MOZILLA=firefox options. I'm running 5.4-PRERELEASE on i386. Just a side note: the used to be a bug with eclipse that stop it from running properly. It involves using p4 as your CPUTYPE in your make.conf in combination with the GTK port. Using I686 seems to be a good workaround. Greetz. Alex Varju wrote: > Andreas Kohn wrote: > >> Works for me on FreeBSD/i386 6.0-CURRENT. I applied attached build to >> have eclipse build with mozilla-devel instead of the default mozilla. >> >> > I've combined this fix with the one Bruno sent, as well as a few other > random cleanups. Here's an updated package: > > http://www.varju.ca/alex/freebsd/eclipse-devel-3.1m6-3.tgz > > The libswt-mozilla library is building now, but I don't think it's > working correctly on my system. I'm not positive, but I think the > Help system uses it .. if I try to go to Help Contents, nothing > happens. (This is better than before the plugin was built, as then it > created a mozilla process that spun forever). > > This patch is still missing Motif support. I've just flagged this as > broken, as I don't actually expect to track this down myself. My i386 > system is far too slow to do test builds on, and it doesn't like there > are linux x86_64 motif build files to base an amd64 build on. > >> One strange thing: At one build stage, it looked like it would build >> gtk64 support things, is this to be expected on i386? >> >> > It's possible that I've messed something up there, but it's also > possible that Eclipse builds more than it actually needs. What > exactly are you seeing? > > Alex. > _______________________________________________ > 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 Thu Apr 7 18:30:24 2005 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 F366D16A4CF for ; Thu, 7 Apr 2005 18:30:23 +0000 (GMT) Received: from quark.rcac.purdue.edu (quark.rcac.purdue.edu [128.210.189.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id 762E543D3F for ; Thu, 7 Apr 2005 18:30:23 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from quark.rcac.purdue.edu (localhost [127.0.0.1]) j37IUNHJ081431 for ; Thu, 7 Apr 2005 13:30:23 -0500 (EST) (envelope-from linimon@FreeBSD.org) Date: Thu, 7 Apr 2005 13:30:23 -0500 (EST) Message-Id: <200504071830.j37IUNHJ081431@quark.rcac.purdue.edu> From: linimon@FreeBSD.org To: java@FreeBSD.org Subject: FreeBSD ports that you maintain which are currently marked forbidden 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, 07 Apr 2005 18:30:24 -0000 Dear FreeBSD port maintainer: As part of an ongoing effort to reduce the number of problems in the FreeBSD ports system, we are attempting to notify maintainers of ports that are marked as "forbidden" in their Makefiles. Often, these ports are so marked due to security concerns, such as known exploits. An overview of the port, including errors seen on the build farm, is included below. portname: java/linux-blackdown-jdk13 forbidden because: Vulnerabilities in the browser plugin build errors: none. overview: http://portsmon.firepipe.net/portoverview.py?category=java&portname=linux-blackdown-jdk13 portname: java/linux-ibm-jdk13 forbidden because: Vulnerabilities in the browser plugin build errors: none. overview: http://portsmon.firepipe.net/portoverview.py?category=java&portname=linux-ibm-jdk13 If this problem is one that you are already aware of, please accept our apologies and ignore this message. On the other hand, if you no longer wish to maintain this port (or ports), please reply with a message stating that, and accept our thanks for your efforts in the past. Thanks for your efforts to help improve FreeBSD. From owner-freebsd-java@FreeBSD.ORG Fri Apr 8 04:48:15 2005 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 2E98C16A4CE for ; Fri, 8 Apr 2005 04:48:15 +0000 (GMT) Received: from web50106.mail.yahoo.com (web50106.mail.yahoo.com [206.190.38.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 989BF43D48 for ; Fri, 8 Apr 2005 04:48:14 +0000 (GMT) (envelope-from protoplasm72@yahoo.com) Received: (qmail 37930 invoked by uid 60001); 8 Apr 2005 04:48:14 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=wqGj6QVlAJ2vPGQpm7nPVixG8qNLnXoYb9AdHf7ni0ss94IKQcTAoPG1+sjz9SqJS+D0tH9EAlhhzao3c7XAppuSyIBNK9LdzLyn0gbBuBMAvS4b/Z0YVdqyNY8OTNqYB2CqhsfJrGI2XcT8amigruWI540CmmSiYUL6TGzbopI= ; Message-ID: <20050408044814.37928.qmail@web50106.mail.yahoo.com> Received: from [24.14.35.195] by web50106.mail.yahoo.com via HTTP; Thu, 07 Apr 2005 21:48:13 PDT Date: Thu, 7 Apr 2005 21:48:13 -0700 (PDT) From: Joe To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: can't compile jdk on machine with limited ram X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: protoplasm72@yahoo.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 04:48:15 -0000 Hope this is the right place for this question. I'm trying to compile the sun jdk14 port but I'm getting out of memory errors. This is an old machine with only 64mb of ram but I have a whole 10gb drive as my swap space. When I get this error, the process size in memory is only around 100mb (it goes up to 120mb at other times and is fine). I've tried killing every process that is not essential to free up mem but it still dies. So my question is, has anyone compiled the jdk on a machine with 64mb or less? and are there options I can set to reduce the memory needed while compiling? If it is important, I'm using FreeBSD 5.3-RELEASE. Thanks. This is the error message: Compiling /usr/ports/java/jdk14/work/hotspot/src/share/vm/opto/graphKit.cpp virtual memory exhausted: Cannot allocate memory gmake[3]: *** [graphKit.o] Error 1 gmake[3]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' gmake[2]: *** [the_vm] Error 2 gmake[2]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' gmake[1]: *** [product] Error 2 gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp' gmake: *** [product] Error 2 *** Error code 2 __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From owner-freebsd-java@FreeBSD.ORG Fri Apr 8 08:23:22 2005 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 37ACD16A4CE for ; Fri, 8 Apr 2005 08:23:22 +0000 (GMT) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 725B343D46 for ; Fri, 8 Apr 2005 08:23:20 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id j388NITf056348; Fri, 8 Apr 2005 11:23:18 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.200] (pptp.ebs.gr [10.1.1.200]) by ebs.gr (8.12.11/8.12.11) with ESMTP id j388NCM8045580; Fri, 8 Apr 2005 11:23:14 +0300 (EEST) (envelope-from past@ebs.gr) Received: from 127.0.0.1 (AVG SMTP 7.0.308 [266.9.3]); Fri, 08 Apr 2005 11:23:03 +0300 Message-ID: <42563F62.9080009@ebs.gr> Date: Fri, 08 Apr 2005 11:22:58 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: protoplasm72@yahoo.com References: <20050408044814.37928.qmail@web50106.mail.yahoo.com> In-Reply-To: <20050408044814.37928.qmail@web50106.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: can't compile jdk on machine with limited ram 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, 08 Apr 2005 08:23:22 -0000 Joe wrote: > Hope this is the right place for this question. > > I'm trying to compile the sun jdk14 port but I'm getting out of memory > errors. This is an old machine with only 64mb of ram but I have a > whole 10gb drive as my swap space. When I get this error, the process > size in memory is only around 100mb (it goes up to 120mb at other times > and is fine). I've tried killing every process that is not essential > to free up mem but it still dies. So my question is, has anyone > compiled the jdk on a machine with 64mb or less? and are there options > I can set to reduce the memory needed while compiling? If it is > important, I'm using FreeBSD 5.3-RELEASE. Thanks. > > > This is the error message: > > Compiling > /usr/ports/java/jdk14/work/hotspot/src/share/vm/opto/graphKit.cpp > virtual memory exhausted: Cannot allocate memory > gmake[3]: *** [graphKit.o] Error 1 > gmake[3]: Leaving directory > `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' > gmake[2]: *** [the_vm] Error 2 > gmake[2]: Leaving directory > `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' > gmake[1]: *** [product] Error 2 > gmake[1]: Leaving directory > `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp' > gmake: *** [product] Error 2 > *** Error code 2 Have you tried adding more swap? Cheers, Panagiotis From owner-freebsd-java@FreeBSD.ORG Fri Apr 8 14:22:39 2005 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 EFBD216A4CE for ; Fri, 8 Apr 2005 14:22:38 +0000 (GMT) Received: from wildbean.clapper.org (wildbean.clapper.org [216.158.26.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A76C643D48 for ; Fri, 8 Apr 2005 14:22:37 +0000 (GMT) (envelope-from bmc@clapper.org) Received: from condor.inside.clapper.org (phantom@condor.inside.clapper.org [172.16.87.5]) by wildbean.clapper.org (8.13.1/8.13.1) with ESMTP id j38EMaFE005042 for ; Fri, 8 Apr 2005 10:22:36 -0400 (EDT) Received: from sunball.inside.clapper.org (wap-smc2804wbr.inside.clapper.org [172.16.87.52])j38EMajQ004937 for ; Fri, 8 Apr 2005 10:22:36 -0400 (EDT) Received: from sunball.inside.clapper.org (sunball.inside.clapper.org [127.0.0.1])j38EMVNu008898 for ; Fri, 8 Apr 2005 10:22:31 -0400 Message-Id: <200504081422.j38EMVNu008898@sunball.inside.clapper.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 8 Apr 2005 10:22:31 -0400 From: Brian Clapper To: java@freebsd.org X-Mailer: VM 7.17 under Emacs 21.3.1 X-Face: /perrud9r1.|7j.*=/6)a%vZ$^sBn!P[?+}vWBxd1ps{4hd2ZOw8]u&t';}(kj=x; JpdSF7 1b<*T{.38]wnWl]j/ULRB*49qdsET_/)-siUd7A_n- List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 14:22:39 -0000 I have a multithreaded application that is crashing under JDK 1.5.0 when using multiple threads. Works fine (and has worked fine for quite some time) with JDK 1.4.2. Brief overview of application: - It's a batch-oriented RSS reader (i.e., no GUI) - It can be configured to process RSS feeds in parallel, using up to N threads. If N=1, it does not spawn threads, but processes the feeds sequentially. If I try to run it with more than one thread, in the alpha JDK 1.5.0, it crashes with: # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGBUS (0xa) at pc=0x286f2377, pid=48305, tid=0x8625800 # # Java VM: Java HotSpot(TM) Client VM (1.5.0-p1-bmc_03_apr_2005_13_15 mixed mode) # Problematic frame: # C [libverify.so+0x8377] VerifyClassForMajorVersion+0x5643 Other info: 1. This occurs with JDK 1.5.0-p1 on FreeBSD 4.11-RELEASE. The JDK was built on the same machine. 2. The machine itself is a 2.4 GHz Pentium 4 with 512 Mb of RAM 3. The application runs fine under JDK 1.5.0 without threads. 4. The same application runs fine with multiple threads on a Linux machine, using the Linux 1.5.0 JDK. 5. The same application runs fine with multiple threads on FreeBSD, using the FreeBSD 1.4.2 JDK. In fact, I have been running it with the FreeBSD 1.4.2 JDK on FreeBSD 4.10/4.11 for a long time, without any problems. (It also runs fine on FreeBSD 4.8-RELEASE, with the 1.4.2 JDK, with no problems.) 6. It doesn't seem to matter whether the code is compiled with the 1.5.0 javac compiler or the 1.4.2 javac compiler. 7. Specifying the "-server" option to "java" makes no difference. (It seemed worth a try...) I've enclosed the output from the trace (i.e., the "hs_err_pid*.log" file) that's produced when the VM dumps core, as well as a stack trace retrieved from the core file via gdb(1). I can reproduce this problem at will. I'd be happy to run additional tests, try other things, etc. Is there a known problem with threading in the 1.5.0 JDK? Is there any other information that would be useful? Regards, Brian Clapper, http://www.clapper.org/bmc/ ---------- ******************** hs_err_pid47178.log: ******************** # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGBUS (0xa) at pc=0x286f2377, pid=47178, tid=0x85e8c00 # # Java VM: Java HotSpot(TM) Client VM (1.5.0-p1-bmc_03_apr_2005_13_15 mixed mode) # Problematic frame: # C [libverify.so+0x8377] VerifyClassForMajorVersion+0x5643 # --------------- T H R E A D --------------- Current thread (0x085e9000): JavaThread "FeedDownloadThread-6" [_thread_in_native, id=140413952] siginfo:si_signo=10, si_errno=0, si_code=12, si_addr=0x0867f000 Registers: EAX=0x0867f000, EBX=0x286f5480, ECX=0x0000000b, EDX=0x35bba000 ESP=0x087bc1a8, EBP=0x087bc1c0, ESI=0x0867f000, EDI=0x087bc200 EIP=0x286f2377, EFLAGS=0x00010206 Top of Stack: (sp=0x087bc1a8) 0x087bc1a8: 286f5480 087bc44c 087bc390 00000001 0x087bc1b8: 00000000 087bc37c 087bc390 286ecdc2 0x087bc1c8: 087bc200 00000001 28444776 286ecd45 0x087bc1d8: 287163a4 085e9000 085e8850 087bc214 0x087bc1e8: 2833c3d0 0812e410 282536ce 2824b3ed 0x087bc1f8: 2833c3b4 087bc200 085e90c8 087bc44c 0x087bc208: 00000100 00000000 00000000 00000000 0x087bc218: 00000000 00000000 00000000 00000000 Instructions: (pc=0x286f2377) 0x286f2367: 83 c4 10 85 f6 75 09 83 c4 f4 57 e8 b9 01 00 00 0x286f2377: c7 06 00 00 00 00 c7 46 04 d0 07 00 00 c7 87 5c Stack: [0x0877d000,0x087bd000), sp=0x087bc1a8, free space=252k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libverify.so+0x8377] VerifyClassForMajorVersion+0x5643 C [libverify.so+0x2dc2] VerifyClassForMajorVersion+0x8e C [libjava.so+0xc75e] VerifyClassCodesForMajorVersion+0x2a V [libjvm.so+0x3b8b23] V [libjvm.so+0x23384b] V [libjvm.so+0x234111] V [libjvm.so+0x233f92] V [libjvm.so+0x233d74] V [libjvm.so+0x23448b] V [libjvm.so+0x2337f7] V [libjvm.so+0x247c98] j org.clapper.curn.FeedDownloadThread.handleFeed(Lorg/clapper/curn/FeedInfo;Lorg/clapper/curn/parser/RSSParser;Lorg/clapper/curn/ConfigFile;)Lorg/clapper/curn/parser/RSSChannel;+490 j org.clapper.curn.FeedDownloadThread.processFeed(Lorg/clapper/curn/FeedInfo;)V+48 j org.clapper.curn.FeedDownloadThread.run()V+101 v ~StubRoutines::call_stub V [libjvm.so+0x254334] V [libjvm.so+0x347ab2] V [libjvm.so+0x25418e] V [libjvm.so+0x253b16] V [libjvm.so+0x253b92] V [libjvm.so+0x2a253a] V [libjvm.so+0x39b45f] V [libjvm.so+0x39b3f7] V [libjvm.so+0x345363] C [libc_r.so.4+0x1932c] _thread_start+0x34 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.clapper.curn.FeedDownloadThread.handleFeed(Lorg/clapper/curn/FeedInfo;Lorg/clapper/curn/parser/RSSParser;Lorg/clapper/curn/ConfigFile;)Lorg/clapper/curn/parser/RSSChannel;+490 j org.clapper.curn.FeedDownloadThread.processFeed(Lorg/clapper/curn/FeedInfo;)V+48 j org.clapper.curn.FeedDownloadThread.run()V+101 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x085f4800 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=144805888] 0x085f4000 JavaThread "FeedDownloadThread-14" [_thread_in_native, id=140454912] 0x085e9e00 JavaThread "FeedDownloadThread-13" [_thread_in_native, id=140451840] 0x085e9c00 JavaThread "FeedDownloadThread-12" [_thread_in_native, id=140444672] 0x085e9a00 JavaThread "FeedDownloadThread-11" [_thread_in_native, id=140437504] 0x085e9800 JavaThread "FeedDownloadThread-10" [_thread_in_native, id=140434432] 0x085e9600 JavaThread "FeedDownloadThread-9" [_thread_in_native, id=140431360] 0x085e9400 JavaThread "FeedDownloadThread-8" [_thread_in_native, id=140424192] 0x085e9200 JavaThread "FeedDownloadThread-7" [_thread_in_native, id=140421120] =>0x085e9000 JavaThread "FeedDownloadThread-6" [_thread_in_native, id=140413952] 0x085f3e00 JavaThread "FeedDownloadThread-5" [_thread_in_native, id=140410880] 0x085f3600 JavaThread "FeedDownloadThread-1" [_thread_in_native, id=140394496] 0x085f3400 JavaThread "FeedDownloadThread-0" [_thread_in_native, id=140440576] 0x080f6800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=136796160] 0x080f6600 JavaThread "CompilerThread0" daemon [_thread_blocked, id=136513536] 0x080f6400 JavaThread "Finalizer" daemon [_thread_blocked, id=136201216] 0x080f6200 JavaThread "Reference Handler" daemon [_thread_blocked, id=135931904] 0x08076800 JavaThread "main" [_thread_blocked, id=134582272] Other Threads: 0x0807af00 VMThread [id=135652352] 0x0807a900 WatcherThread [id=137065472] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 576K, used 252K [0x2d220000, 0x2d2c0000, 0x2d700000) eden space 512K, 37% used [0x2d220000, 0x2d24fc88, 0x2d2a0000) from space 64K, 95% used [0x2d2b0000, 0x2d2bf4a8, 0x2d2c0000) to space 64K, 0% used [0x2d2a0000, 0x2d2a0000, 0x2d2b0000) tenured generation total 2072K, used 1241K [0x2d700000, 0x2d906000, 0x31220000) the space 2072K, 59% used [0x2d700000, 0x2d836598, 0x2d836600, 0x2d906000) compacting perm gen total 8192K, used 3140K [0x31220000, 0x31a20000, 0x35220000) the space 8192K, 38% used [0x31220000, 0x31531128, 0x31531200, 0x31a20000) No shared spaces configured. Dynamic libraries: 0x08048000 /usr/local/java/jdk/bin/java 0x28073000 /usr/lib/libc_r.so.4 0x2812a000 /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so 0x286bc000 /usr/lib/libm.so.2 0x286d8000 /usr/local/jdk1.5.0/jre/lib/i386/native_threads/libhpi.so 0x286ea000 /usr/local/jdk1.5.0/jre/lib/i386/libverify.so 0x286f6000 /usr/local/jdk1.5.0/jre/lib/i386/libjava.so 0x28717000 /usr/local/jdk1.5.0/jre/lib/i386/libzip.so 0x35f2c000 /usr/local/jdk1.5.0/jre/lib/i386/libnet.so 0x28055000 /usr/libexec/ld-elf.so.1 VM Arguments: jvm_args: -Xrs -Djava.util.logging.config.file=/usr/home/bmc/.curn/logging.properties java_command: org.clapper.curn.Tool --no-update common.cfg Environment Variables: JAVA_HOME=/usr/local/java/jdk PATH=.:/usr/local/site/bin:/usr/home/bmc/bin:/home/bmc/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/local/lib/oss/bin:/usr/local/site/sbin:/usr/local/Acrobat4/bin:/usr/home/bmc/OpenOffice:/usr/local/java/jdk/bin:/usr/local/ant/bin:/usr/local/java/jython:/usr/local/java/javacc-3.0/bin:/usr/local/lib/oss/bin LD_LIBRARY_PATH=/usr/local/jdk1.5.0/jre/lib/i386/client:/usr/local/jdk1.5.0/jre/lib/i386:/usr/local/jdk1.5.0/jre/../lib/i386:/usr/local/java/jdk/jre/lib/i386:.:/usr/local/site/lib SHELL=/usr/local/bin/bash2 DISPLAY=localhost:11.0 --------------- S Y S T E M --------------- OS:FreeBSD uname:FreeBSD 4.11-RELEASE FreeBSD 4.11-RELEASE #1: Mon Ap i386 rlimit: STACK 65536k, CORE infinity, NOFILE 7322 CPU:total 1 family 15, cmov, cx8, fxsr, mmx, ht Memory: 4k page, physical 453896k vm_info: Java HotSpot(TM) Client VM (1.5.0-p1-bmc_03_apr_2005_13_15) for freebsd-x86, built on Apr 3 2005 14:29:27 by bmc with gcc 2.95.4 20020320 [FreeBSD] ---------- ******************************** GDB stack trace, from core file: ******************************** #0 0x280b2584 in kill () from /usr/lib/libc_r.so.4 #1 0x28100b9e in abort () from /usr/lib/libc_r.so.4 #2 0x284700e5 in os::abort () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #3 0x284f0a59 in VMError::report_and_die () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #4 0x2847332f in JVM_handle_bsd_signal () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #5 0x28471ae2 in signalHandler () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #6 0x280c470e in _thread_sig_handler () from /usr/lib/libc_r.so.4 #7 0x280c458e in _thread_sig_handler () from /usr/lib/libc_r.so.4 #8 0xbfbfffac in ?? () #9 0x286ecdc2 in VerifyClassForMajorVersion () from /usr/local/jdk1.5.0/jre/lib/i386/libverify.so #10 0x2870275e in VerifyClassCodesForMajorVersion () from /usr/local/jdk1.5.0/jre/lib/i386/libjava.so #11 0x284e2b23 in Verifier::verify_byte_codes () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #12 0x2835d84b in instanceKlass::verify_code () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #13 0x2835e111 in instanceKlass::link_class_impl () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #14 0x2835df92 in instanceKlass::link_class_impl () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #15 0x2835dd74 in instanceKlass::link_class () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #16 0x2835e48b in instanceKlass::initialize_impl () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #17 0x2835d7f7 in instanceKlass::initialize () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #18 0x28371c98 in InterpreterRuntime::_new () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #19 0x2b1a29bc in ?? () #20 0x2b195a1a in ?? () #21 0x2b195943 in ?? () #22 0x2b193160 in ?? () #23 0x2837e334 in JavaCalls::call_helper () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #24 0x28471ab2 in os::os_exception_wrapper () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #25 0x2837e18e in JavaCalls::call () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #26 0x2837db16 in JavaCalls::call_virtual () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #27 0x2837db92 in JavaCalls::call_virtual () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #28 0x283cc53a in thread_entry () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #29 0x284c545f in JavaThread::thread_main_inner () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so ---Type to continue, or q to quit--- #30 0x284c53f7 in JavaThread::run () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #31 0x2846f363 in _start () from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so #32 0x2808c32c in _thread_start () from /usr/lib/libc_r.so.4 #33 0x0 in ?? () ---------- From owner-freebsd-java@FreeBSD.ORG Fri Apr 8 15:52:36 2005 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 E9A4A16A4CE for ; Fri, 8 Apr 2005 15:52:36 +0000 (GMT) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 157C143D31 for ; Fri, 8 Apr 2005 15:52:34 +0000 (GMT) (envelope-from ml@FreeBSD.org.ua) Received: from phantom.cris.net (ml@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id j38FumjT070157; Fri, 8 Apr 2005 18:56:48 +0300 (EEST) (envelope-from ml@FreeBSD.org.ua) Received: (from ml@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id j38FumA9070156; Fri, 8 Apr 2005 18:56:48 +0300 (EEST) (envelope-from ml) Date: Fri, 8 Apr 2005 18:56:48 +0300 From: Alexey Zelkin To: Brian Clapper Message-ID: <20050408155648.GA70110@phantom.cris.net> References: <200504081422.j38EMVNu008898@sunball.inside.clapper.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504081422.j38EMVNu008898@sunball.inside.clapper.org> X-Operating-System: FreeBSD 4.9-STABLE i386 User-Agent: Mutt/1.5.5.1i cc: java@freebsd.org Subject: Re: JDK 1.5.0: application crash with multiple threads 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, 08 Apr 2005 15:52:37 -0000 This is known issue, and I've noted while adding of jdk15 port. Sorry, no solution yet. On Fri, Apr 08, 2005 at 10:22:31AM -0400, Brian Clapper wrote: > I have a multithreaded application that is crashing under JDK 1.5.0 when > using multiple threads. Works fine (and has worked fine for quite some > time) with JDK 1.4.2. > > Brief overview of application: > > - It's a batch-oriented RSS reader (i.e., no GUI) > - It can be configured to process RSS feeds in parallel, using up to N > threads. If N=1, it does not spawn threads, but processes the feeds > sequentially. > > If I try to run it with more than one thread, in the alpha JDK 1.5.0, it > crashes with: > > # An unexpected error has been detected by HotSpot Virtual Machine: > # > # SIGBUS (0xa) at pc=0x286f2377, pid=48305, tid=0x8625800 > # > # Java VM: Java HotSpot(TM) Client VM (1.5.0-p1-bmc_03_apr_2005_13_15 mixed mode) > # Problematic frame: > # C [libverify.so+0x8377] VerifyClassForMajorVersion+0x5643 > > Other info: > > 1. This occurs with JDK 1.5.0-p1 on FreeBSD 4.11-RELEASE. The JDK was built > on the same machine. > > 2. The machine itself is a 2.4 GHz Pentium 4 with 512 Mb of RAM > > 3. The application runs fine under JDK 1.5.0 without threads. > > 4. The same application runs fine with multiple threads on a Linux machine, > using the Linux 1.5.0 JDK. > > 5. The same application runs fine with multiple threads on FreeBSD, using > the FreeBSD 1.4.2 JDK. In fact, I have been running it with the FreeBSD > 1.4.2 JDK on FreeBSD 4.10/4.11 for a long time, without any problems. > (It also runs fine on FreeBSD 4.8-RELEASE, with the 1.4.2 JDK, with no > problems.) > > 6. It doesn't seem to matter whether the code is compiled with the 1.5.0 > javac compiler or the 1.4.2 javac compiler. > > 7. Specifying the "-server" option to "java" makes no difference. (It > seemed worth a try...) > > I've enclosed the output from the trace (i.e., the "hs_err_pid*.log" file) > that's produced when the VM dumps core, as well as a stack trace retrieved > from the core file via gdb(1). > > I can reproduce this problem at will. I'd be happy to run additional tests, > try other things, etc. > > Is there a known problem with threading in the 1.5.0 JDK? > > Is there any other information that would be useful? > > Regards, > > Brian Clapper, http://www.clapper.org/bmc/ > > ---------- > > ******************** > hs_err_pid47178.log: > ******************** > > # > # An unexpected error has been detected by HotSpot Virtual Machine: > # > # SIGBUS (0xa) at pc=0x286f2377, pid=47178, tid=0x85e8c00 > # > # Java VM: Java HotSpot(TM) Client VM (1.5.0-p1-bmc_03_apr_2005_13_15 mixed mode) > # Problematic frame: > # C [libverify.so+0x8377] VerifyClassForMajorVersion+0x5643 > # > > --------------- T H R E A D --------------- > > Current thread (0x085e9000): JavaThread "FeedDownloadThread-6" [_thread_in_native, id=140413952] > > siginfo:si_signo=10, si_errno=0, si_code=12, si_addr=0x0867f000 > > Registers: > EAX=0x0867f000, EBX=0x286f5480, ECX=0x0000000b, EDX=0x35bba000 > ESP=0x087bc1a8, EBP=0x087bc1c0, ESI=0x0867f000, EDI=0x087bc200 > EIP=0x286f2377, EFLAGS=0x00010206 > > Top of Stack: (sp=0x087bc1a8) > 0x087bc1a8: 286f5480 087bc44c 087bc390 00000001 > 0x087bc1b8: 00000000 087bc37c 087bc390 286ecdc2 > 0x087bc1c8: 087bc200 00000001 28444776 286ecd45 > 0x087bc1d8: 287163a4 085e9000 085e8850 087bc214 > 0x087bc1e8: 2833c3d0 0812e410 282536ce 2824b3ed > 0x087bc1f8: 2833c3b4 087bc200 085e90c8 087bc44c > 0x087bc208: 00000100 00000000 00000000 00000000 > 0x087bc218: 00000000 00000000 00000000 00000000 > > Instructions: (pc=0x286f2377) > 0x286f2367: 83 c4 10 85 f6 75 09 83 c4 f4 57 e8 b9 01 00 00 > 0x286f2377: c7 06 00 00 00 00 c7 46 04 d0 07 00 00 c7 87 5c > > Stack: [0x0877d000,0x087bd000), sp=0x087bc1a8, free space=252k > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) > C [libverify.so+0x8377] VerifyClassForMajorVersion+0x5643 > C [libverify.so+0x2dc2] VerifyClassForMajorVersion+0x8e > C [libjava.so+0xc75e] VerifyClassCodesForMajorVersion+0x2a > V [libjvm.so+0x3b8b23] > V [libjvm.so+0x23384b] > V [libjvm.so+0x234111] > V [libjvm.so+0x233f92] > V [libjvm.so+0x233d74] > V [libjvm.so+0x23448b] > V [libjvm.so+0x2337f7] > V [libjvm.so+0x247c98] > j org.clapper.curn.FeedDownloadThread.handleFeed(Lorg/clapper/curn/FeedInfo;Lorg/clapper/curn/parser/RSSParser;Lorg/clapper/curn/ConfigFile;)Lorg/clapper/curn/parser/RSSChannel;+490 > j org.clapper.curn.FeedDownloadThread.processFeed(Lorg/clapper/curn/FeedInfo;)V+48 > j org.clapper.curn.FeedDownloadThread.run()V+101 > v ~StubRoutines::call_stub > V [libjvm.so+0x254334] > V [libjvm.so+0x347ab2] > V [libjvm.so+0x25418e] > V [libjvm.so+0x253b16] > V [libjvm.so+0x253b92] > V [libjvm.so+0x2a253a] > V [libjvm.so+0x39b45f] > V [libjvm.so+0x39b3f7] > V [libjvm.so+0x345363] > C [libc_r.so.4+0x1932c] _thread_start+0x34 > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > j org.clapper.curn.FeedDownloadThread.handleFeed(Lorg/clapper/curn/FeedInfo;Lorg/clapper/curn/parser/RSSParser;Lorg/clapper/curn/ConfigFile;)Lorg/clapper/curn/parser/RSSChannel;+490 > j org.clapper.curn.FeedDownloadThread.processFeed(Lorg/clapper/curn/FeedInfo;)V+48 > j org.clapper.curn.FeedDownloadThread.run()V+101 > v ~StubRoutines::call_stub > > --------------- P R O C E S S --------------- > > Java Threads: ( => current thread ) > 0x085f4800 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=144805888] > 0x085f4000 JavaThread "FeedDownloadThread-14" [_thread_in_native, id=140454912] > 0x085e9e00 JavaThread "FeedDownloadThread-13" [_thread_in_native, id=140451840] > 0x085e9c00 JavaThread "FeedDownloadThread-12" [_thread_in_native, id=140444672] > 0x085e9a00 JavaThread "FeedDownloadThread-11" [_thread_in_native, id=140437504] > 0x085e9800 JavaThread "FeedDownloadThread-10" [_thread_in_native, id=140434432] > 0x085e9600 JavaThread "FeedDownloadThread-9" [_thread_in_native, id=140431360] > 0x085e9400 JavaThread "FeedDownloadThread-8" [_thread_in_native, id=140424192] > 0x085e9200 JavaThread "FeedDownloadThread-7" [_thread_in_native, id=140421120] > =>0x085e9000 JavaThread "FeedDownloadThread-6" [_thread_in_native, id=140413952] > 0x085f3e00 JavaThread "FeedDownloadThread-5" [_thread_in_native, id=140410880] > 0x085f3600 JavaThread "FeedDownloadThread-1" [_thread_in_native, id=140394496] > 0x085f3400 JavaThread "FeedDownloadThread-0" [_thread_in_native, id=140440576] > 0x080f6800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=136796160] > 0x080f6600 JavaThread "CompilerThread0" daemon [_thread_blocked, id=136513536] > 0x080f6400 JavaThread "Finalizer" daemon [_thread_blocked, id=136201216] > 0x080f6200 JavaThread "Reference Handler" daemon [_thread_blocked, id=135931904] > 0x08076800 JavaThread "main" [_thread_blocked, id=134582272] > > Other Threads: > 0x0807af00 VMThread [id=135652352] > 0x0807a900 WatcherThread [id=137065472] > > VM state:not at safepoint (normal execution) > > VM Mutex/Monitor currently owned by a thread: None > > Heap > def new generation total 576K, used 252K [0x2d220000, 0x2d2c0000, 0x2d700000) > eden space 512K, 37% used [0x2d220000, 0x2d24fc88, 0x2d2a0000) > from space 64K, 95% used [0x2d2b0000, 0x2d2bf4a8, 0x2d2c0000) > to space 64K, 0% used [0x2d2a0000, 0x2d2a0000, 0x2d2b0000) > tenured generation total 2072K, used 1241K [0x2d700000, 0x2d906000, 0x31220000) > the space 2072K, 59% used [0x2d700000, 0x2d836598, 0x2d836600, 0x2d906000) > compacting perm gen total 8192K, used 3140K [0x31220000, 0x31a20000, 0x35220000) > the space 8192K, 38% used [0x31220000, 0x31531128, 0x31531200, 0x31a20000) > No shared spaces configured. > > Dynamic libraries: > 0x08048000 /usr/local/java/jdk/bin/java > 0x28073000 /usr/lib/libc_r.so.4 > 0x2812a000 /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > 0x286bc000 /usr/lib/libm.so.2 > 0x286d8000 /usr/local/jdk1.5.0/jre/lib/i386/native_threads/libhpi.so > 0x286ea000 /usr/local/jdk1.5.0/jre/lib/i386/libverify.so > 0x286f6000 /usr/local/jdk1.5.0/jre/lib/i386/libjava.so > 0x28717000 /usr/local/jdk1.5.0/jre/lib/i386/libzip.so > 0x35f2c000 /usr/local/jdk1.5.0/jre/lib/i386/libnet.so > 0x28055000 /usr/libexec/ld-elf.so.1 > > VM Arguments: > jvm_args: -Xrs -Djava.util.logging.config.file=/usr/home/bmc/.curn/logging.properties > java_command: org.clapper.curn.Tool --no-update common.cfg > > Environment Variables: > JAVA_HOME=/usr/local/java/jdk > PATH=.:/usr/local/site/bin:/usr/home/bmc/bin:/home/bmc/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/local/lib/oss/bin:/usr/local/site/sbin:/usr/local/Acrobat4/bin:/usr/home/bmc/OpenOffice:/usr/local/java/jdk/bin:/usr/local/ant/bin:/usr/local/java/jython:/usr/local/java/javacc-3.0/bin:/usr/local/lib/oss/bin > LD_LIBRARY_PATH=/usr/local/jdk1.5.0/jre/lib/i386/client:/usr/local/jdk1.5.0/jre/lib/i386:/usr/local/jdk1.5.0/jre/../lib/i386:/usr/local/java/jdk/jre/lib/i386:.:/usr/local/site/lib > SHELL=/usr/local/bin/bash2 > DISPLAY=localhost:11.0 > > > --------------- S Y S T E M --------------- > > OS:FreeBSD > uname:FreeBSD 4.11-RELEASE FreeBSD 4.11-RELEASE #1: Mon Ap i386 > rlimit: STACK 65536k, CORE infinity, NOFILE 7322 > CPU:total 1 family 15, cmov, cx8, fxsr, mmx, ht > > Memory: 4k page, physical 453896k > > vm_info: Java HotSpot(TM) Client VM (1.5.0-p1-bmc_03_apr_2005_13_15) for freebsd-x86, built on Apr 3 2005 14:29:27 by bmc with gcc 2.95.4 20020320 [FreeBSD] > > > > ---------- > > ******************************** > GDB stack trace, from core file: > ******************************** > > #0 0x280b2584 in kill () from /usr/lib/libc_r.so.4 > #1 0x28100b9e in abort () from /usr/lib/libc_r.so.4 > #2 0x284700e5 in os::abort () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #3 0x284f0a59 in VMError::report_and_die () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #4 0x2847332f in JVM_handle_bsd_signal () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #5 0x28471ae2 in signalHandler () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #6 0x280c470e in _thread_sig_handler () from /usr/lib/libc_r.so.4 > #7 0x280c458e in _thread_sig_handler () from /usr/lib/libc_r.so.4 > #8 0xbfbfffac in ?? () > #9 0x286ecdc2 in VerifyClassForMajorVersion () > from /usr/local/jdk1.5.0/jre/lib/i386/libverify.so > #10 0x2870275e in VerifyClassCodesForMajorVersion () > from /usr/local/jdk1.5.0/jre/lib/i386/libjava.so > #11 0x284e2b23 in Verifier::verify_byte_codes () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #12 0x2835d84b in instanceKlass::verify_code () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #13 0x2835e111 in instanceKlass::link_class_impl () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #14 0x2835df92 in instanceKlass::link_class_impl () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #15 0x2835dd74 in instanceKlass::link_class () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #16 0x2835e48b in instanceKlass::initialize_impl () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #17 0x2835d7f7 in instanceKlass::initialize () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #18 0x28371c98 in InterpreterRuntime::_new () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #19 0x2b1a29bc in ?? () > #20 0x2b195a1a in ?? () > #21 0x2b195943 in ?? () > #22 0x2b193160 in ?? () > #23 0x2837e334 in JavaCalls::call_helper () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #24 0x28471ab2 in os::os_exception_wrapper () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #25 0x2837e18e in JavaCalls::call () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #26 0x2837db16 in JavaCalls::call_virtual () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #27 0x2837db92 in JavaCalls::call_virtual () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #28 0x283cc53a in thread_entry () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #29 0x284c545f in JavaThread::thread_main_inner () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > ---Type to continue, or q to quit--- > #30 0x284c53f7 in JavaThread::run () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #31 0x2846f363 in _start () > from /usr/local/jdk1.5.0/jre/lib/i386/client/libjvm.so > #32 0x2808c32c in _thread_start () from /usr/lib/libc_r.so.4 > #33 0x0 in ?? () > > ---------- > > _______________________________________________ > 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 Apr 8 16:26:22 2005 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 060CE16A4CE for ; Fri, 8 Apr 2005 16:26:21 +0000 (GMT) Received: from misty.eyesbeyond.com (glewis.dsl.xmission.com [166.70.56.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03BDB43D55 for ; Fri, 8 Apr 2005 16:26:21 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.3/8.13.3) with ESMTP id j38GQJHC028348; Fri, 8 Apr 2005 10:26:19 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.3/8.13.3/Submit) id j38GQILI028347; Fri, 8 Apr 2005 10:26:18 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Fri, 8 Apr 2005 10:26:18 -0600 From: Greg Lewis To: Joe Message-ID: <20050408162618.GA28278@misty.eyesbeyond.com> References: <20050408044814.37928.qmail@web50106.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050408044814.37928.qmail@web50106.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-java@freebsd.org Subject: Re: can't compile jdk on machine with limited ram 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, 08 Apr 2005 16:26:22 -0000 On Thu, Apr 07, 2005 at 09:48:13PM -0700, Joe wrote: > I'm trying to compile the sun jdk14 port but I'm getting out of memory > errors. This is an old machine with only 64mb of ram but I have a > whole 10gb drive as my swap space. When I get this error, the process > size in memory is only around 100mb (it goes up to 120mb at other times > and is fine). I've tried killing every process that is not essential > to free up mem but it still dies. So my question is, has anyone > compiled the jdk on a machine with 64mb or less? and are there options > I can set to reduce the memory needed while compiling? If it is > important, I'm using FreeBSD 5.3-RELEASE. Thanks. > > > This is the error message: > > Compiling > /usr/ports/java/jdk14/work/hotspot/src/share/vm/opto/graphKit.cpp > virtual memory exhausted: Cannot allocate memory You can control the memory usage with Java, but the problem occurs while compiling a C++ file, i.e. this error is coming from gcc. I've no idea what it thinks its running into, but you may want to look at any limits your account has in terms of memory usage and the like (see ulimit). -- 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 Fri Apr 8 20:54:25 2005 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 5141F16A4CE for ; Fri, 8 Apr 2005 20:54:25 +0000 (GMT) Received: from web50104.mail.yahoo.com (web50104.mail.yahoo.com [206.190.38.32]) by mx1.FreeBSD.org (Postfix) with SMTP id 93F8A43D1F for ; Fri, 8 Apr 2005 20:54:24 +0000 (GMT) (envelope-from protoplasm72@yahoo.com) Received: (qmail 65210 invoked by uid 60001); 8 Apr 2005 20:54:24 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=OIuSW/W7TRILVO+enyslfnKjYCvehj0B4cwgDBfBzlRkQu7zq3w6Y/HLH6eWgYBvDr7CyZKU33znoBRHor4oXSfyyHoOOyc7Ef3OYJCVsjdJQSPsVzn9OR9GH4aLx/nQhGulISsKNDcGsecumMv3ObVGztfEX5NnR84GzzZamb8= ; Message-ID: <20050408205424.65208.qmail@web50104.mail.yahoo.com> Received: from [24.14.35.195] by web50104.mail.yahoo.com via HTTP; Fri, 08 Apr 2005 13:54:23 PDT Date: Fri, 8 Apr 2005 13:54:23 -0700 (PDT) From: Joe To: freebsd-java@freebsd.org In-Reply-To: <20050408162618.GA28278@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: can't compile jdk on machine with limited ram X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: protoplasm72@yahoo.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 20:54:25 -0000 I didn't think of ulimit but this is what everything is set at: cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 524288 stack size (kbytes, -s) 65536 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 478 open files (-n) 957 virtual mem size (kbytes, -v) unlimited sbsize (bytes, -b) unlimited The data seg size seems low but I can't increase it. Everything else should be fine. -- Joe --- Greg Lewis wrote: > On Thu, Apr 07, 2005 at 09:48:13PM -0700, Joe wrote: > > I'm trying to compile the sun jdk14 port but I'm getting out of > memory > > errors. This is an old machine with only 64mb of ram but I have a > > whole 10gb drive as my swap space. When I get this error, the > process > > size in memory is only around 100mb (it goes up to 120mb at other > times > > and is fine). I've tried killing every process that is not > essential > > to free up mem but it still dies. So my question is, has anyone > > compiled the jdk on a machine with 64mb or less? and are there > options > > I can set to reduce the memory needed while compiling? If it is > > important, I'm using FreeBSD 5.3-RELEASE. Thanks. > > > > > > This is the error message: > > > > Compiling > > /usr/ports/java/jdk14/work/hotspot/src/share/vm/opto/graphKit.cpp > > virtual memory exhausted: Cannot allocate memory > > You can control the memory usage with Java, but the problem occurs > while > compiling a C++ file, i.e. this error is coming from gcc. I've no > idea > what it thinks its running into, but you may want to look at any > limits > your account has in terms of memory usage and the like (see ulimit). > > -- > Greg Lewis Email : glewis@eyesbeyond.com > Eyes Beyond Web : > http://www.eyesbeyond.com > Information Technology FreeBSD : glewis@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" > __________________________________ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. http://www.advision.webevents.yahoo.com/emoticontest