From owner-freebsd-java Sun Sep 10 22:56: 7 2000 Delivered-To: freebsd-java@freebsd.org Received: from hermes.research.kpn.com (hermes.research.kpn.com [139.63.192.8]) by hub.freebsd.org (Postfix) with ESMTP id BF1F537B424 for ; Sun, 10 Sep 2000 22:56:04 -0700 (PDT) Received: from l04.research.kpn.com (l04.research.kpn.com [139.63.192.204]) by research.kpn.com (PMDF V5.2-31 #42699) with ESMTP id <01JU1FIZL60O000IQ0@research.kpn.com> for freebsd-java@FreeBSD.ORG; Mon, 11 Sep 2000 07:56:02 +0200 Received: by l04.research.kpn.com with Internet Mail Service (5.5.2650.21) id ; Mon, 11 Sep 2000 07:56:02 +0100 Content-return: allowed Date: Mon, 11 Sep 2000 07:56:01 +0100 From: "Koster, K.J." Subject: RE: NoClassDefFoundError: InvokerGen To: freebsd-java@FreeBSD.ORG Message-id: <59063B5B4D98D311BC0D0001FA7E4522026D7874@l04.research.kpn.com> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > I just saw it on 4-STABLE. My home directories are automounted, so > the pathname was long, included symbolic links, and went over nfs. > Interestingly, I was able to cd down into the directory where the > problem occurred, and run make in that directory, where it > succeeded. I then cd'ed back to the top level and reran the > buildscript, which completed successfully. > > I also built it successfully on a local fs with a short pathname. > I have it too on an all-local filesystem. FreeBSD 4.1-stable as of Friday night. One thing that I see returning all the time is that /usr/tmp is mentioned. The build seems to be large enough to force people out of their home directories into the darker corners of their systems. :) Could victims of this evil government plot (sorry, been watching X-files) please try to see if they have /usr/tmp in their pathname somewhere? It might be hidden in symlinks. Could people who are able to build properly please move their build into /usr/tmp somewhere to see what the effect is? This weekend I've taken a stab at printf()ing the calls to open() in the linuxulator. (/sys/i386/linux/linx_file.c) I never see open()'s for invokers.txt of InvokerGen.class, so I guess they are opened by the BSD open() system call. I don't feel like adding a printf() to that one, thank you very much. Kees Jan PS. The truth is in the source. ================================================= TV is the worst of both worlds. It's not as good at words as radio is because the pictures are a distraction which demand attention, and it's not as good as cinema because the pictures are not nearly as good. Douglas Adams To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Sep 11 1: 1: 8 2000 Delivered-To: freebsd-java@freebsd.org Received: from web1701.mail.yahoo.com (web1701.mail.yahoo.com [128.11.23.212]) by hub.freebsd.org (Postfix) with SMTP id BE53237B424 for ; Mon, 11 Sep 2000 01:01:06 -0700 (PDT) Received: (qmail 27802 invoked by uid 60001); 11 Sep 2000 08:00:03 -0000 Message-ID: <20000911080003.27801.qmail@web1701.mail.yahoo.com> Received: from [24.234.123.38] by web1701.mail.yahoo.com; Mon, 11 Sep 2000 01:00:03 PDT Date: Mon, 11 Sep 2000 01:00:03 -0700 (PDT) From: Brent Spaulding Subject: Native Java on FreeBSD To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Is any work being done on a compiler to create "pure-BSD" native executables from Java code? Thank you, Brent Spaulding __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Sep 11 10:56:39 2000 Delivered-To: freebsd-java@freebsd.org Received: from fritz.cc.gt.atl.ga.us (fritz.cc.gt.atl.ga.us [199.77.128.120]) by hub.freebsd.org (Postfix) with ESMTP id B358037B424 for ; Mon, 11 Sep 2000 10:56:37 -0700 (PDT) Received: (from dagon@localhost) by fritz.cc.gt.atl.ga.us (8.9.3/8.9.3) id OAA24294; Mon, 11 Sep 2000 14:05:16 -0400 (EDT) (envelope-from dagon) Date: Mon, 11 Sep 2000 14:05:16 -0400 From: David Dagon To: Brent Spaulding , freebsd-java@freebsd.org Subject: Re: Native Java on FreeBSD Message-ID: <20000911140516.C23967@fritz.cc.gt.atl.ga.us> References: <20000911080003.27801.qmail@web1701.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20000911080003.27801.qmail@web1701.mail.yahoo.com>; from bdspaulding@yahoo.com on Mon, Sep 11, 2000 at 01:00:03AM -0700 X-Echelon: RSA Crypto C4 Mossad CIA BXA Export Control Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Sep 11, 2000 at 01:00:03AM -0700, Brent Spaulding wrote: > Is any work being done on a compiler to create > "pure-BSD" native executables from Java code? I don't think antlr is in the ports collection, but it runs just fine on bsd: http://www.antlr.org/ There are extensions for generating C/C++, and other languages. I'm not sure about code gen for native executables, but gcc could take it from there. -- David Dagon /"\ "When cryptography dagon@cc.gatech.edu \ / ASCII RIBBON CAMPAIGN is outlawed, bayl Georgia Tech X AGAINST HTML MAIL bhgynjf jvyy unir / \ cevinpl." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Sep 11 14:29:12 2000 Delivered-To: freebsd-java@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id CB4E737B423; Mon, 11 Sep 2000 14:29:07 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id RAA09656; Mon, 11 Sep 2000 17:29:06 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.0/8.9.1) id e8BLT6g45456; Mon, 11 Sep 2000 17:29:06 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 11 Sep 2000 17:29:06 -0400 (EDT) To: freebsd-emulation@freebsd.org, marcel@scc.nl Cc: freebsd-java@freebsd.org Subject: patches to (sorta) run IBM Java 1.3 X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14781.19093.242122.261119@grasshopper.cs.duke.edu> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I've got the IBM jdk 1.3 partially working. So far, it seems that anything which tries to bring up an X window dies a horrid death. All else seems to work fine. I've left a new patchset at http://www.cs.duke.edu/~gallatin/linux_sa_siginfo/diff This patchset is against a pre-SMPng -current and: - changes MINSIGSTKSZ from 8192 to 2048 - implements linux_rt_sendsig() & linux_rt_sigreturn() - implements userland sigtramp code for linux_rt_sigreturn() - implements linux_to_bsd_sigaltstack & bsd_to_linux_sigaltstack() to fix a bug in linux_sigaltstack & to avoid lots of cut-n-paste in linux_rt_sigreturn(). This also fixes the "Java HotSpot(TM) Client VM warning: cannot uninstall alt signal stack" one sees with Sun's 1.3 JDK. - peppers a lot of the linux code with loud uprintfs to assist in debugging the X problem I currently suspect the X problem has something to do with we grow our stacks when they're mapped as MAP_STACK. The apps which die are always killed because of a not totally unreasonable looking stack address. I'm really, really hoping to find somebody to help me debug the X window problem. Somebody, please? ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Sep 11 16: 8:13 2000 Delivered-To: freebsd-java@freebsd.org Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id 99AE937B423 for ; Mon, 11 Sep 2000 16:08:09 -0700 (PDT) Received: (from glewis@localhost) by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id IAA36296; Tue, 12 Sep 2000 08:38:00 +0930 (CST) (envelope-from glewis) Date: Tue, 12 Sep 2000 08:38:00 +0930 From: Greg Lewis To: Brent Spaulding Cc: freebsd-java@FreeBSD.ORG Subject: Re: Native Java on FreeBSD Message-ID: <20000912083800.A36260@ares.trc.adelaide.edu.au> References: <20000911080003.27801.qmail@web1701.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000911080003.27801.qmail@web1701.mail.yahoo.com>; from bdspaulding@yahoo.com on Mon, Sep 11, 2000 at 01:00:03AM -0700 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Sep 11, 2000 at 01:00:03AM -0700, Brent Spaulding wrote: > Is any work being done on a compiler to create > "pure-BSD" native executables from Java code? > > Thank you, > Brent Spaulding Isn't this what the gcc frontend gcj is all about? Dunno how well it works though, so you are on your own in that respect. -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 5083 Teletraffic Research Centre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Sep 11 19:22: 0 2000 Delivered-To: freebsd-java@freebsd.org Received: from mail.geckobot.com (216-39-176-70.ip.theriver.com [216.39.176.70]) by hub.freebsd.org (Postfix) with ESMTP id 01A2037B422 for ; Mon, 11 Sep 2000 19:21:58 -0700 (PDT) Received: from patches (patches.geckobot.com [192.168.254.4]) by mail.geckobot.com (8.9.3/8.9.3) with SMTP id TAA33915; Mon, 11 Sep 2000 19:21:51 -0700 (MST) (envelope-from rick@geckobot.com) Message-ID: <004801c01c5f$ebf1d820$04fea8c0@patches> From: "Rick Moore" To: "Greg Lewis" , "Brent Spaulding" Cc: References: <20000911080003.27801.qmail@web1701.mail.yahoo.com> <20000912083800.A36260@ares.trc.adelaide.edu.au> Subject: Re: Native Java on FreeBSD Date: Mon, 11 Sep 2000 19:19:43 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Yeah, but someone would need to port it to FreeBSD-- as if there weren't enough projects to do... Rick ----- Original Message ----- From: "Greg Lewis" To: "Brent Spaulding" Cc: Sent: Monday, September 11, 2000 4:08 PM Subject: Re: Native Java on FreeBSD > On Mon, Sep 11, 2000 at 01:00:03AM -0700, Brent Spaulding wrote: > > Is any work being done on a compiler to create > > "pure-BSD" native executables from Java code? > > > > Thank you, > > Brent Spaulding > > Isn't this what the gcc frontend gcj is > all about? Dunno how well it works though, so you are on your own in that > respect. > > -- > Greg Lewis glewis@trc.adelaide.edu.au > Computing Officer +61 8 8303 5083 > Teletraffic Research Centre > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Sep 11 19:41:20 2000 Delivered-To: freebsd-java@freebsd.org Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id A90E637B424 for ; Mon, 11 Sep 2000 19:41:03 -0700 (PDT) Received: (from glewis@localhost) by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id MAA41984; Tue, 12 Sep 2000 12:09:00 +0930 (CST) (envelope-from glewis) Date: Tue, 12 Sep 2000 12:09:00 +0930 From: Greg Lewis To: Rick Moore Cc: Greg Lewis , Brent Spaulding , freebsd-java@FreeBSD.ORG Subject: Re: Native Java on FreeBSD Message-ID: <20000912120900.A41913@ares.trc.adelaide.edu.au> References: <20000911080003.27801.qmail@web1701.mail.yahoo.com> <20000912083800.A36260@ares.trc.adelaide.edu.au> <004801c01c5f$ebf1d820$04fea8c0@patches> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <004801c01c5f$ebf1d820$04fea8c0@patches>; from rick@geckobot.com on Mon, Sep 11, 2000 at 07:19:43PM -0700 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Sep 11, 2000 at 07:19:43PM -0700, Rick Moore wrote: > Yeah, but someone would need to port it to FreeBSD-- as if there weren't > enough projects to do... > > Rick > > On Mon, Sep 11, 2000 at 01:00:03AM -0700, Brent Spaulding wrote: > > > Is any work being done on a compiler to create > > > "pure-BSD" native executables from Java code? > > > > > > Thank you, > > > Brent Spaulding > > > > Isn't this what the gcc frontend gcj is > > all about? Dunno how well it works though, so you are on your own in that > > respect. By porting, I assume you mean libgcj, since the gcj front end just compiles as part of gcc (if you want it to). Has anyone tried compiling libgcj under FreeBSD? According to the gcj web site, they don't believe getting it to compile would be too difficult. -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 5083 Teletraffic Research Centre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Sep 12 2:13:40 2000 Delivered-To: freebsd-java@freebsd.org Received: from euromail1.genrad.com (x109.genrad.co.uk [195.99.3.109]) by hub.freebsd.org (Postfix) with ESMTP id 2E90D37B423 for ; Tue, 12 Sep 2000 02:13:37 -0700 (PDT) Received: from CDP437 (cdp437.uk.genrad.com [132.223.135.120]) by euromail1.genrad.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id SQMDBCQT; Tue, 12 Sep 2000 10:13:35 +0100 From: Robert Swindells To: glewis@trc.adelaide.edu.au Cc: freebsd-java@FreeBSD.ORG In-reply-to: <20000912120900.A41913@ares.trc.adelaide.edu.au> (message from Greg Lewis on Tue, 12 Sep 2000 12:09:00 +0930) Subject: Re: Native Java on FreeBSD Reply-To: rjs@fdy2.demon.co.uk Message-Id: <20000912091337.2E90D37B423@hub.freebsd.org> Date: Tue, 12 Sep 2000 02:13:37 -0700 (PDT) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greg Lewis wrote: >>On Mon, Sep 11, 2000 at 07:19:43PM -0700, Rick Moore wrote: >> Yeah, but someone would need to port it to FreeBSD-- as if there weren't >> enough projects to do... >> >> Rick >> > On Mon, Sep 11, 2000 at 01:00:03AM -0700, Brent Spaulding wrote: >> > > Is any work being done on a compiler to create >> > > "pure-BSD" native executables from Java code? >> > > >> > > Thank you, >> > > Brent Spaulding >> > >> > Isn't this what the gcc frontend gcj is >> > all about? Dunno how well it works though, so you are on your own in that >> > respect. >By porting, I assume you mean libgcj, since the gcj front end just >compiles as part of gcc (if you want it to). >Has anyone tried compiling libgcj under FreeBSD? According to the gcj >web site, they don't believe getting it to compile would be too >difficult. It failed horribly the last time I tried building libgcj. One of the Java files caused an internal compiler error. This was about a month ago, so it may have improved. Robert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Sep 12 14:37:20 2000 Delivered-To: freebsd-java@freebsd.org Received: from tccn.cs.kun.nl (tccn.cs.kun.nl [131.174.32.38]) by hub.freebsd.org (Postfix) with ESMTP id 7B31A37B42C for ; Tue, 12 Sep 2000 14:37:17 -0700 (PDT) Received: from tccn.cs.kun.nl (1Cust237.tnt23.rtm1.nl.uu.net [213.116.140.237]) by tccn.cs.kun.nl (8.9.2/8.9.2) with ESMTP id XAA14085 for ; Tue, 12 Sep 2000 23:34:31 +0200 (CEST) (envelope-from dutchman@tccn.cs.kun.nl) Message-ID: <39BEA209.70D45A68@tccn.cs.kun.nl> Date: Tue, 12 Sep 2000 23:37:13 +0200 From: Kees Jan Koster X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD Java Mailinglist Subject: Putting GDB to work Content-Type: multipart/mixed; boundary="------------B54F17A68A10D6587D33D8DF" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------B54F17A68A10D6587D33D8DF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Dear All, I have written a small description on how to debug core dumps and how to start java inside gdb. I think this is best done with the attached patch to .java_wrapper. More information at: http://web.inter.nl.net/users/kjkoster/java/content/howto.html#hd07 While I'm on the subject of debugging: Andrew Gallatin is trying to get IBM's Linux JDK to work on FreeBSD. If you can spare a little time, please help him out. More information at http://web.inter.nl.net/users/kjkoster/java/content/unrelated.html#hd05 Cheers, Kees Jan ---------------------------------------------------------------------- Kees Jan Koster e-mail: k.j.koster "at" kpn.com ---------------------------------------------------------------------- Calvin: "Sometimes the world seems like a pretty mean place." Hobbes: "That's why animals are so soft and huggy." --------------B54F17A68A10D6587D33D8DF Content-Type: text/plain; charset=us-ascii; name="wrapper.diff" Content-Disposition: inline; filename="wrapper.diff" Content-Transfer-Encoding: 7bit --- .java_wrapper.orig Sun Aug 6 12:38:59 2000 +++ .java_wrapper Tue Sep 12 22:59:45 2000 @@ -125,7 +125,15 @@ # Run. if [ -x "$prog" ] then - exec $DEBUG_PROG "$prog" "$@" + if [ x"$DEBUG_PROG" = x"gdb" ] + then + TMPFILE=`mktemp -t ${progname}` || exit 1 + echo "set args $@" > $TMPFILE + cat -u $TMPFILE /dev/stdin | gdb "$prog" + rm $TMPFILE + else + exec $DEBUG_PROG "$prog" "$@" + fi else echo >&2 "$progname was not found in ${prog}" exit 1 --------------B54F17A68A10D6587D33D8DF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Sep 12 14:37:22 2000 Delivered-To: freebsd-java@freebsd.org Received: from tccn.cs.kun.nl (tccn.cs.kun.nl [131.174.32.38]) by hub.freebsd.org (Postfix) with ESMTP id 3BD0B37B423 for ; Tue, 12 Sep 2000 14:37:20 -0700 (PDT) Received: from tccn.cs.kun.nl (1Cust237.tnt23.rtm1.nl.uu.net [213.116.140.237]) by tccn.cs.kun.nl (8.9.2/8.9.2) with ESMTP id XAA14086 for ; Tue, 12 Sep 2000 23:34:31 +0200 (CEST) (envelope-from dutchman@tccn.cs.kun.nl) Message-ID: <39BEA209.83D937C1@tccn.cs.kun.nl> Date: Tue, 12 Sep 2000 23:37:13 +0200 From: Kees Jan Koster X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD Java Mailinglist Subject: Threads questions Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dear All, Question about libraries: I notice that java is linked against libc, should that not be libc_r? Isn't libc_r the reentrant version of libc? I'm not too up to date with the whole threading business in C, and of course that's precisely where I'm stuck with on NetBSD. It seems that ucontext.h is missing in NetBSD. I thought that I could install GNU PTh to get a userland thread library to use, but it does not include ucontext.h. What's ucontext.h for? Where can I find some documentation on it? Who knows a lot about threading and the JDK implementation? Enjoy, Kees Jan ---------------------------------------------------------------------- Kees Jan Koster e-mail: k.j.koster "at" kpn.com ---------------------------------------------------------------------- Calvin: "Sometimes the world seems like a pretty mean place." Hobbes: "That's why animals are so soft and huggy." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Sep 12 14:49: 5 2000 Delivered-To: freebsd-java@freebsd.org Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id 44AB737B422 for ; Tue, 12 Sep 2000 14:49:01 -0700 (PDT) Received: (from glewis@localhost) by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id HAA54913; Wed, 13 Sep 2000 07:18:52 +0930 (CST) (envelope-from glewis) Date: Wed, 13 Sep 2000 07:18:52 +0930 From: Greg Lewis To: Kees Jan Koster Cc: FreeBSD Java Mailinglist Subject: Re: Threads questions Message-ID: <20000913071852.A54816@ares.trc.adelaide.edu.au> References: <39BEA209.83D937C1@tccn.cs.kun.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <39BEA209.83D937C1@tccn.cs.kun.nl>; from dutchman@tccn.cs.kun.nl on Tue, Sep 12, 2000 at 11:37:13PM +0200 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Sep 12, 2000 at 11:37:13PM +0200, Kees Jan Koster wrote: > Question about libraries: I notice that java is linked against libc, > should that not be libc_r? Isn't libc_r the reentrant version of libc? It shouldn't be libc_r. The JDK handles all the threading issues (for green threads) itself. > I'm not too up to date with the whole threading business in C, and of > course that's precisely where I'm stuck with on NetBSD. It seems > that ucontext.h is missing in NetBSD. As it is in FreeBSD. Look in src/freebsd/hpi/green_threads/include/context.h and notice the lines: #ifndef __FreeBSD__ #include #endif > I thought that I could install GNU PTh to get a userland thread > library to use, but it does not include ucontext.h. What's ucontext.h > for? Where can I find some documentation on it? Who knows a lot about > threading and the JDK implementation? Is GNU PTh GPL or LGPL? Thats the first question you need to answer :). However, I think its the wrong solution to the threading issues, assuming you mean green threads anyway. The only concern with NetBSD and green threads will probably be about which thingy it puts the CPU control word in with all the jumpbuf business. You'll note that it changed between FreeBSD 3.x and 4.x. You need to discover which it is for NetBSD (or if its something completely different). -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 5083 Teletraffic Research Centre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Sep 12 14:53:10 2000 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 8D55337B43C for ; Tue, 12 Sep 2000 14:53:07 -0700 (PDT) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id PAA22041; Tue, 12 Sep 2000 15:53:05 -0600 (MDT) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id PAA25042; Tue, 12 Sep 2000 15:53:00 -0600 (MDT) (envelope-from nate) Date: Tue, 12 Sep 2000 15:53:00 -0600 (MDT) Message-Id: <200009122153.PAA25042@nomad.yogotech.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Kees Jan Koster Cc: FreeBSD Java Mailinglist Subject: Re: Threads questions In-Reply-To: <39BEA209.83D937C1@tccn.cs.kun.nl> References: <39BEA209.83D937C1@tccn.cs.kun.nl> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Question about libraries: I notice that java is linked against libc, > should that not be libc_r? Definitely not. > Isn't libc_r the reentrant version of libc? Yes, but we don't use the re-entrant version of the library, since we provide our own 'wrappers' for the library functions inside our multi-threaded libraries. > I'm not too up to date with the whole threading business in C, and of > course that's precisely where I'm stuck with on NetBSD. It seems > that ucontext.h is missing in NetBSD. ucontext.h isn't in FreeBSD either. Have you looked at Simon Gerraty's (sp?) NetBSD port of JDK1.1. That would be a good place to start. > I thought that I could install GNU PTh to get a userland thread > library to use, but it does not include ucontext.h. What's ucontext.h > for? If the OS supports kernel threads, then these provide the get/setcontext functions for this, but since none of the *BSD's support them, we don't have the library functions. > Where can I find some documentation on it? Who knows a lot about > threading and the JDK implementation? Look at the patches supplied for FreeBSD. It's all in there. :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Sep 12 18:39:39 2000 Delivered-To: freebsd-java@freebsd.org Received: from mail.geckobot.com (216-39-176-70.ip.theriver.com [216.39.176.70]) by hub.freebsd.org (Postfix) with ESMTP id 44EA337B42C for ; Tue, 12 Sep 2000 18:39:33 -0700 (PDT) Received: from patches (patches.geckobot.com [192.168.254.4]) by mail.geckobot.com (8.9.3/8.9.3) with SMTP id SAA35672; Tue, 12 Sep 2000 18:40:30 -0700 (MST) (envelope-from rick@geckobot.com) Message-ID: <016e01c01d23$4bf3e5b0$04fea8c0@patches> From: "Rick Moore" To: , Cc: References: <20000912091337.2E90D37B423@hub.freebsd.org> Subject: Re: Native Java on FreeBSD Date: Tue, 12 Sep 2000 18:38:18 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The web page http://sources.redhat.com/java/docs.html provides loose instructions on how to port libgcj. Specifically it mentions threads, signal handling, and file handling as the key porting issues. They make it sound pretty easy, but who knows. Rick ----- Original Message ----- From: "Robert Swindells" To: Cc: Sent: Tuesday, September 12, 2000 2:13 AM Subject: Re: Native Java on FreeBSD > > Greg Lewis wrote: > >>On Mon, Sep 11, 2000 at 07:19:43PM -0700, Rick Moore wrote: > >> Yeah, but someone would need to port it to FreeBSD-- as if there weren't > >> enough projects to do... > >> > >> Rick > >> > On Mon, Sep 11, 2000 at 01:00:03AM -0700, Brent Spaulding wrote: > >> > > Is any work being done on a compiler to create > >> > > "pure-BSD" native executables from Java code? > >> > > > >> > > Thank you, > >> > > Brent Spaulding > >> > > >> > Isn't this what the gcc frontend gcj is > >> > all about? Dunno how well it works though, so you are on your own in that > >> > respect. > > >By porting, I assume you mean libgcj, since the gcj front end just > >compiles as part of gcc (if you want it to). > > >Has anyone tried compiling libgcj under FreeBSD? According to the gcj > >web site, they don't believe getting it to compile would be too > >difficult. > > It failed horribly the last time I tried building libgcj. One of the > Java files caused an internal compiler error. > > This was about a month ago, so it may have improved. > > Robert > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Sep 12 20:31:10 2000 Delivered-To: freebsd-java@freebsd.org Received: from mail.geckobot.com (216-39-176-70.ip.theriver.com [216.39.176.70]) by hub.freebsd.org (Postfix) with ESMTP id D377737B424 for ; Tue, 12 Sep 2000 20:31:06 -0700 (PDT) Received: from patches (patches.geckobot.com [192.168.254.4]) by mail.geckobot.com (8.9.3/8.9.3) with SMTP id UAA35775; Tue, 12 Sep 2000 20:32:02 -0700 (MST) (envelope-from rick@geckobot.com) Message-ID: <017f01c01d32$dfa97950$04fea8c0@patches> From: "Rick Moore" To: , Cc: References: <20000912091337.2E90D37B423@hub.freebsd.org> Subject: Re: Native Java on FreeBSD Date: Tue, 12 Sep 2000 20:29:49 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Just got done trying. Unfortunately I'm not really an automake expert, so please bear with me. Things seemed to go OK until it tried to make some zlib files. (Not sure why it is recreating this, but whatever.) It's trying to do a "make -a" in a directory called ...i386*/aout/zlib which contains no Makefile. Unfortunately I have idea why the Makefile isn't there and where it's supposed to come from. I don't see any serious looking errors in the config log prior to this point. If anyone has any ideas I'd be willing to give it a try. Rick ----- Original Message ----- From: "Robert Swindells" To: Cc: Sent: Tuesday, September 12, 2000 2:13 AM Subject: Re: Native Java on FreeBSD > > Greg Lewis wrote: > >>On Mon, Sep 11, 2000 at 07:19:43PM -0700, Rick Moore wrote: > >> Yeah, but someone would need to port it to FreeBSD-- as if there weren't > >> enough projects to do... > >> > >> Rick > >> > On Mon, Sep 11, 2000 at 01:00:03AM -0700, Brent Spaulding wrote: > >> > > Is any work being done on a compiler to create > >> > > "pure-BSD" native executables from Java code? > >> > > > >> > > Thank you, > >> > > Brent Spaulding > >> > > >> > Isn't this what the gcc frontend gcj is > >> > all about? Dunno how well it works though, so you are on your own in that > >> > respect. > > >By porting, I assume you mean libgcj, since the gcj front end just > >compiles as part of gcc (if you want it to). > > >Has anyone tried compiling libgcj under FreeBSD? According to the gcj > >web site, they don't believe getting it to compile would be too > >difficult. > > It failed horribly the last time I tried building libgcj. One of the > Java files caused an internal compiler error. > > This was about a month ago, so it may have improved. > > Robert > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Sep 13 11:40:17 2000 Delivered-To: freebsd-java@freebsd.org Received: from hotmail.com (law2-f292.hotmail.com [216.32.180.146]) by hub.freebsd.org (Postfix) with ESMTP id 3583537B423 for ; Wed, 13 Sep 2000 11:40:15 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 13 Sep 2000 11:40:14 -0700 Received: from 63.77.219.1 by lw2fd.hotmail.msn.com with HTTP; Wed, 13 Sep 2000 18:40:14 GMT X-Originating-IP: [63.77.219.1] From: "Kenneth Mays" To: freebsd-java@freebsd.org Subject: Using the Linux JDK/JRE v1.3 with FreeBSD 4.x Date: Wed, 13 Sep 2000 14:40:14 EDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 13 Sep 2000 18:40:14.0976 (UTC) FILETIME=[0E6CA800:01C01DB2] Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Has anyone gotten the Linux version of Sun's Java JDK/JRE v1.3 to work on FreeBSD v4.x??? Ken _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Sep 13 11:58:51 2000 Delivered-To: freebsd-java@freebsd.org Received: from dnvrpop4.dnvr.uswest.net (dnvrpop4.dnvr.uswest.net [206.196.128.6]) by hub.freebsd.org (Postfix) with SMTP id 2535037B423 for ; Wed, 13 Sep 2000 11:58:47 -0700 (PDT) Received: (qmail 20184 invoked by alias); 13 Sep 2000 18:52:04 -0000 Delivered-To: fixup-freebsd-java@FreeBSD.ORG@fixme Received: (qmail 8823 invoked by uid 0); 13 Sep 2000 18:48:36 -0000 Received: from unknown (HELO cthulhu.methodsystems.com) (63.227.49.196) by dnvrpop4.dnvr.uswest.net with SMTP; 13 Sep 2000 18:48:36 -0000 Received: (from edward@localhost) by cthulhu.methodsystems.com (8.9.3/8.9.3) id MAA24090; Wed, 13 Sep 2000 12:48:36 -0600 (MDT) (envelope-from edward) Date: Wed, 13 Sep 2000 12:48:36 -0600 (MDT) From: Edward Wolpert Message-Id: <200009131848.MAA24090@cthulhu.methodsystems.com> To: freebsd-java@FreeBSD.ORG, kmays2000@hotmail.com Subject: Re: Using the Linux JDK/JRE v1.3 with FreeBSD 4.x In-Reply-To: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Has anyone gotten the Linux version of Sun's Java JDK/JRE v1.3 to work >on FreeBSD v4.x??? Yes. It's a bit slow, but I use it to do compiles of jBoss since jBoss requires 1.3.x. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Sep 13 12:43:17 2000 Delivered-To: freebsd-java@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 3EC5F37B424; Wed, 13 Sep 2000 12:43:11 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id PAA24950; Wed, 13 Sep 2000 15:43:09 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.0/8.9.1) id e8DJh8749427; Wed, 13 Sep 2000 15:43:08 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 13 Sep 2000 15:43:08 -0400 (EDT) To: freebsd-emulation@freebsd.org, freebsd-java@freebsd.org Subject: IBM JDK 1.3 now working (pointer to patches) X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14783.55339.269170.481033@grasshopper.cs.duke.edu> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I've finally gotten the IBM jdk 1.3 working. I haven't tested it very heavily AWT stuff seems to finally work though. Here's an an updated patchset to a pre-SMPng -current. The patchset does the following: - changes MINSIGSTKSZ from 8192 to 2048 - implements linux_rt_sendsig() & linux_rt_sigreturn() - implements userland sigtramp code for linux_rt_sigreturn() - implements linux_to_bsd_sigaltstack & bsd_to_linux_sigaltstack() to fix a bug in linux_sigaltstack & to avoid lots of cut-n-paste in linux_rt_sigreturn(). This also fixes the "Java HotSpot(TM) Client VM warning: cannot uninstall alt signal stack" one sees with Sun's 1.3 JDK. - changes the MAP_STACK flag to MAP_ANON for LINUX_MAP_GROWSDOWN mmaps. This was the final step in getting it working. Any VM gurus out there want to talk about this one? There's aparently something wrong with autogrowing linux thread stacks[*] Patches at: http://www.cs.duke.edu/~gallatin/linux_sa_siginfo/diff [*]The "problem" is the heuristic used by vm_map_growstack() to determine whether the stack part of the main process stack. We currently use: is_procstack = addr >= (vm_offset_t)vm->vm_maxsaddr; where vm->vm_maxsaddr comes from exec_new_vmspace(): vmspace->vm_maxsaddr = (char *)USRSTACK - MAXSSIZ; The IBM JDK's main thread reduces it's stack size to rlim_cur=2040*1024. It then creates stacks for its threads at addresses which are greater than vm_maxsaddr but less than the current bottom of the main process stack as defined by p->p_rlimit[RLIMIT_STACK].rlim_cur. The first time a thread accesses something requiring this region to grow, it goes down in flames. Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Sep 13 12:51:44 2000 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 9F0EE37B423; Wed, 13 Sep 2000 12:51:37 -0700 (PDT) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id NAA14066; Wed, 13 Sep 2000 13:51:36 -0600 (MDT) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id NAA13215; Wed, 13 Sep 2000 13:51:35 -0600 (MDT) (envelope-from nate) Date: Wed, 13 Sep 2000 13:51:35 -0600 (MDT) Message-Id: <200009131951.NAA13215@nomad.yogotech.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Andrew Gallatin Cc: freebsd-emulation@FreeBSD.ORG, freebsd-java@FreeBSD.ORG Subject: Re: IBM JDK 1.3 now working (pointer to patches) In-Reply-To: <14783.55339.269170.481033@grasshopper.cs.duke.edu> References: <14783.55339.269170.481033@grasshopper.cs.duke.edu> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I've finally gotten the IBM jdk 1.3 working. I haven't tested it very > heavily AWT stuff seems to finally work though. Congratulations Drew! Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Sep 13 12:59:52 2000 Delivered-To: freebsd-java@freebsd.org Received: from ds-01.itg.discovery.com (ops.itg.discovery.com [198.147.13.130]) by hub.freebsd.org (Postfix) with ESMTP id 7882B37B423 for ; Wed, 13 Sep 2000 12:59:50 -0700 (PDT) Received: by ds-01.itg.discovery.com; id PAA21495; Wed, 13 Sep 2000 15:59:15 -0400 (EDT) Received: by bet-su5-23.itg.discovery.com; id TAA04998; Wed, 13 Sep 2000 19:59:22 GMT Message-ID: <39BFDC9A.A51B6CAC@freebsd.org> Date: Wed, 13 Sep 2000 19:59:22 +0000 From: Patrick Gardella X-Mailer: Mozilla 4.61 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Nate Williams Cc: Andrew Gallatin , freebsd-java@freebsd.org Subject: Re: IBM JDK 1.3 now working (pointer to patches) References: <14783.55339.269170.481033@grasshopper.cs.duke.edu> <200009131951.NAA13215@nomad.yogotech.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Nate Williams wrote: > > > I've finally gotten the IBM jdk 1.3 working. I haven't tested it very > > heavily AWT stuff seems to finally work though. > > Congratulations Drew! > > Nate > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message I'll try this, and add it to the FreeBSD Java pages tonight. Patrick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Sep 13 13: 0:11 2000 Delivered-To: freebsd-java@freebsd.org Received: from ebola.biohz.net (ebola.biohz.net [206.80.1.35]) by hub.freebsd.org (Postfix) with ESMTP id 0D47E37B423 for ; Wed, 13 Sep 2000 13:00:00 -0700 (PDT) Received: from flu (localhost [127.0.0.1]) by ebola.biohz.net (Postfix) with SMTP id 4D5C13A3C2; Wed, 13 Sep 2000 12:59:47 -0700 (PDT) Message-ID: <007101c01dbd$2f982b20$0302010a@biohz.net> From: "Renaud Waldura" To: "Edward Wolpert" , Cc: References: <200009131848.MAA24090@cthulhu.methodsystems.com> Subject: Re: Using the Linux JDK/JRE v1.3 with FreeBSD 4.x Date: Wed, 13 Sep 2000 12:59:43 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Same here. Runs fine under the Linux emulation, although I have no performance comments. I was given this modified .java_wrapper script by Carlos Valiente carlos@difernet.com ; it uses the Linux "expr". He also mentionned that the "classic" VM should be used by editing $JAVA_HOME/jre/lib/jvm.cfg. I implemented his suggestions and it works for me. What problems are you having? --Renaud -----8<--------8<------- #!/bin/sh # # @(#)java_wrapper_linux.sh 1.8 00/05/19 # # Copyright 1994-1998 by Sun Microsystems, Inc., # 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. # All rights reserved. # # This software is the confidential and proprietary information # of Sun Microsystems, Inc. ("Confidential Information"). You # shall not disclose such Confidential Information and shall use # it only in accordance with the terms of the license agreement # you entered into with Sun. # PRG=$0 progname=`basename $0` case "`uname -m`" in i[3-6]86 | ia32 | ia64) proc=i386 ;; sparc*) proc=sparc ;; *) proc="`uname -m`" ;; esac # Resolve symlinks. See 4152645. while [ -L "$PRG" ]; do ls=`/bin/ls -ld "$PRG"` link=`/compat/linux/usr/bin/expr "$ls" : '.*-> \(.*\)$'` if /compat/linux/usr/bin/expr "$link" : '/' > /dev/null; then PRG="$link" else PRG="`/usr/bin/dirname $PRG`/$link" fi done APPHOME=`dirname "$PRG"`/.. JREHOME=$APPHOME/jre # Where is JRE? unset jre if [ -f "${JREHOME}/lib/${proc}/libjava.so" ]; then jre="${JREHOME}" fi if [ -f "${APPHOME}/lib/${proc}/libjava.so" ]; then jre="${APPHOME}" fi if [ "x${jre}" = "x" ]; then echo "Error: can't find libjava.so." exit 1 fi # Get the canonicalized absolute pathnames jre="`$jre/bin/realpath $jre`" APPHOME="`${jre}/bin/realpath $APPHOME`" JREHOME="`${jre}/bin/realpath $JREHOME`" export APPHOME JREHOME # Select vm type ttype=native_threads if grep "^$1\$" ${jre}/lib/jvm.cfg > /dev/null; then # User specified some VM type known to jvm.cfg. vmtype=`echo $1 | /usr/bin/cut -c 2-` else # User didn't specify a VM type, see if default is classic. default=`grep -v '^#' "${jre}/lib/jvm.cfg" | /usr/bin/head -1` vmtype=`echo ${default} | /usr/bin/cut -c 2-` fi if [ "${vmtype}" = "classic" ]; then ttype=green_threads LD_BIND_NOW=yes export LD_BIND_NOW _JVM_THREADS_TYPE=green_threads export _JVM_THREADS_TYPE fi # If jre is in a jre subdir, include parent dir libraries in lib path. This # needs to be cleaned up because -Xrun libraries are the ones that need it. if [ "${jre}" = "$JREHOME" ]; then JAVA_LIBRARY_PATH=":${jre}/../lib/${proc}" fi # Set LD_LIBRARY_PATH for libjvm.so (necessitated by ld.so bugid 4176579) JAVA_LIBRARY_PATH="${jre}/lib/${proc}/${vmtype}$JAVA_LIBRARY_PATH" # Set LD_LIBRARY_PATH to find libawt.so etc. JAVA_LIBRARY_PATH="${jre}/lib/${proc}:${jre}/lib/${proc}/${ttype}/:${JAVA_LI BRARY_PATH}" LD_LIBRARY_PATH="${JAVA_LIBRARY_PATH}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" export LD_LIBRARY_PATH prog="$APPHOME/bin/${proc}/${ttype}/${progname}" # Run. if [ -x "$prog" ] then # Calling: exec $DEBUG_PROG "$prog" "$@" exec $DEBUG_PROG "$prog" "$@" else echo >&2 "$progname was not found in ${prog}" exit 1 fi -----8<--------8<------- ----- Original Message ----- From: Edward Wolpert To: ; Sent: Wednesday, September 13, 2000 11:48 AM Subject: Re: Using the Linux JDK/JRE v1.3 with FreeBSD 4.x > >Has anyone gotten the Linux version of Sun's Java JDK/JRE v1.3 to work > >on FreeBSD v4.x??? > > Yes. It's a bit slow, but I use it to do compiles of jBoss since jBoss > requires 1.3.x. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Sep 13 14:18:17 2000 Delivered-To: freebsd-java@freebsd.org Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id BA1AF37B424; Wed, 13 Sep 2000 14:18:13 -0700 (PDT) Received: from [128.130.111.2] (deneb [128.130.111.2]) by vexpert.dbai.tuwien.ac.at (8.9.3/8.9.3) with ESMTP id XAA13746; Wed, 13 Sep 2000 23:18:06 +0200 (MET DST) Date: Wed, 13 Sep 2000 23:18:06 +0200 (CEST) From: Gerald Pfeifer To: Andrew Gallatin Cc: freebsd-emulation@freebsd.org, freebsd-java@freebsd.org Subject: Re: IBM JDK 1.3 now working (pointer to patches) In-Reply-To: <14783.55339.269170.481033@grasshopper.cs.duke.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 13 Sep 2000, Andrew Gallatin wrote: > Here's an an updated patchset to a pre-SMPng -current. > Patches at: http://www.cs.duke.edu/~gallatin/linux_sa_siginfo/diff Great! Now, what is the perspective for seeing this in a FreeBSD release or at least on the -STABLE branch? Not so good, I'm afraid? Even if this integrated into -CURRENT (with SMPng), it probably won't be possible to easily backport it to -STABLE, and adding it to -STABLE without previous tests on -CURRENT won't be acceptable, I guess. So, will -STABLE users have to wait another year, for 5.0-RELEASE? (We'll see whether we'll be able to prevent a switch of our entire network to Linux during that year, if this is really true. :-( ) Gerald -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Sep 13 19:15:37 2000 Delivered-To: freebsd-java@freebsd.org Received: from picnic.chuckr.org (picnic.chuckr.org [216.254.96.118]) by hub.freebsd.org (Postfix) with ESMTP id 6C7E637B424 for ; Wed, 13 Sep 2000 19:15:33 -0700 (PDT) Received: from localhost (chuckr@localhost) by picnic.chuckr.org (8.11.0/8.9.3) with ESMTP id e8E2FGq07083; Wed, 13 Sep 2000 22:15:16 -0400 (EDT) (envelope-from chuckr@picnic.chuckr.org) Date: Wed, 13 Sep 2000 22:15:15 -0400 (EDT) From: Chuck Robey To: Nate Williams Cc: Kees Jan Koster , FreeBSD Java Mailinglist Subject: Re: Threads questions In-Reply-To: <200009122153.PAA25042@nomad.yogotech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 12 Sep 2000, Nate Williams wrote: > > Question about libraries: I notice that java is linked against libc, > > should that not be libc_r? > > Definitely not. > > > Isn't libc_r the reentrant version of libc? > > Yes, but we don't use the re-entrant version of the library, since we > provide our own 'wrappers' for the library functions inside our > multi-threaded libraries. > > > I'm not too up to date with the whole threading business in C, and of > > course that's precisely where I'm stuck with on NetBSD. It seems > > that ucontext.h is missing in NetBSD. > > ucontext.h isn't in FreeBSD either. Have you looked at Simon Gerraty's > (sp?) NetBSD port of JDK1.1. That would be a good place to start. > > > I thought that I could install GNU PTh to get a userland thread > > library to use, but it does not include ucontext.h. What's ucontext.h > > for? > > If the OS supports kernel threads, then these provide the get/setcontext > functions for this, but since none of the *BSD's support them, we don't > have the library functions. I just did some porting of a homemade threading package from FreeBSD to Solaris, where they *do* have ucontext.h, and the {get|set|make}context calls. From my architectural reading, that's because (on Sparc processors) getting the stack & registers doesn't get you the full execution context (you need registers from windows that are currently invisible, since return addresses are kept in registers, not on the stack). Supervisor level calls are *required* to get a full user context. I didn't see where it had anything to do with kernel threads. I'm a bit surprised. > > Where can I find some documentation on it? Who knows a lot about > > threading and the JDK implementation? > > Look at the patches supplied for FreeBSD. It's all in there. :) > > > Nate > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > > ---------------------------------------------------------------------------- Chuck Robey | Interests include C & Java programming, FreeBSD, chuckr@picnic.chuckr.org| electronics, communications, and signal processing. New Year's Resolution: I will not sphroxify gullible people into looking up fictitious words in the dictionary. ---------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Sep 14 1:45: 9 2000 Delivered-To: freebsd-java@freebsd.org Received: from flux.ptc.spbu.ru (flux.ptc.spbu.ru [195.19.225.195]) by hub.freebsd.org (Postfix) with ESMTP id F41B337B422 for ; Thu, 14 Sep 2000 01:45:04 -0700 (PDT) Received: from snark.ptc.spbu.ru (snark.ptc.spbu.ru [195.19.225.131]) by flux.ptc.spbu.ru (8.9.3/8.9.3/cf-1.0.rbl) with ESMTP id MAA06089 for ; Thu, 14 Sep 2000 12:44:57 +0400 (MSD) Received: (from uwe@localhost) by snark.ptc.spbu.ru (8.8.8+Sun/8.8.8) id MAA24754 for freebsd-java@FreeBSD.ORG; Thu, 14 Sep 2000 12:44:57 +0400 (MSD) Date: Thu, 14 Sep 2000 12:44:56 +0400 From: "Valeriy E. Ushakov" To: FreeBSD Java Mailinglist Subject: Re: Threads questions Message-ID: <20000914124456.A24487@snark.ptc.spbu.ru> Mail-Followup-To: FreeBSD Java Mailinglist References: <200009122153.PAA25042@nomad.yogotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.3i In-Reply-To: ; from "Chuck Robey" on Wed, Sep 13, 2000 at 22:15:15 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Sep 13, 2000 at 22:15:15 -0400, Chuck Robey wrote: > > If the OS supports kernel threads, then these provide the get/setcontext > > functions for this, but since none of the *BSD's support them, we don't > > have the library functions. > > I just did some porting of a homemade threading package from FreeBSD to > Solaris, where they *do* have ucontext.h, and the {get|set|make}context > calls. From my architectural reading, that's because (on Sparc > processors) getting the stack & registers doesn't get you the full > execution context (you need registers from windows that are currently > invisible, since return addresses are kept in registers, not on the > stack). It's easy to flush register windows to stack: asm volatile("t %0" : : "n" (T_FLUSHWIN)); and signal trampoline code for BSD/sparc (written by Chris Torek for his original port and still here) has a clever hack to compensate for lack of ucontext somewhat - in the trampoline it saves g's to l's of the trampoline window - and thus in the signal handler you can access all the 32 registers (at the time of signal) by peeking at the two frames below the signal handler frame. SY, Uwe -- uwe@ptc.spbu.ru | Zu Grunde kommen http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Sep 14 5:53:43 2000 Delivered-To: freebsd-java@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id C8BFF37B424; Thu, 14 Sep 2000 05:53:39 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id IAA11577; Thu, 14 Sep 2000 08:53:39 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.0/8.9.1) id e8ECrcT50620; Thu, 14 Sep 2000 08:53:38 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 14 Sep 2000 08:53:38 -0400 (EDT) To: Gerald Pfeifer Cc: freebsd-emulation@freebsd.org, freebsd-java@freebsd.org Subject: Re: IBM JDK 1.3 now working (pointer to patches) In-Reply-To: References: <14783.55339.269170.481033@grasshopper.cs.duke.edu> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14784.51474.93722.921299@grasshopper.cs.duke.edu> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Gerald Pfeifer writes: > So, will -STABLE users have to wait another year, for 5.0-RELEASE? > > (We'll see whether we'll be able to prevent a switch of our entire > network to Linux during that year, if this is really true. :-( ) Before you get yourself too worked up (;-), bear in mind that I need this working on 4.0-RELEASE (what we're frozen at locally). I'll try to make patches to -STABLE and 4.0-RELEASE available before the weekend. FWIW, it the backport should be trivial. The main changes between -current linux emulation and -stable linux emulation is a shuffling of the files to make it possible to integrate linux/alpha support for the alpha port. Linux/alpha support, btw, is a Good Thing for the alpha port, as it gets us access to the world-class compilers from Compaq. Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Sep 14 6:14:34 2000 Delivered-To: freebsd-java@freebsd.org Received: from gorilla.mchh.siemens.de (gorilla.mchh.siemens.de [194.138.158.18]) by hub.freebsd.org (Postfix) with ESMTP id 69E0937B424; Thu, 14 Sep 2000 06:14:27 -0700 (PDT) Received: from moody.mchh.siemens.de (mail2.mchh.siemens.de [194.138.158.226]) by gorilla.mchh.siemens.de (8.9.3/8.9.3) with ESMTP id PAA05042; Thu, 14 Sep 2000 15:14:12 +0200 (MET DST) Received: from mchh247e.demchh201e.icn.siemens.de ([139.21.200.57]) by moody.mchh.siemens.de (8.9.1/8.9.1) with ESMTP id PAA03294; Thu, 14 Sep 2000 15:13:48 +0200 (MET DST) Received: by MCHH247E with Internet Mail Service (5.5.2650.21) id ; Thu, 14 Sep 2000 15:14:22 +0200 Message-ID: <67E0BE167008D31185F60008C7289DA0E12F02@MCHH218E> From: Reifenberger Michael To: "'Andrew Gallatin'" Cc: freebsd-emulation@FreeBSD.ORG, freebsd-java@FreeBSD.ORG Subject: AW: IBM JDK 1.3 now working (pointer to patches) Date: Thu, 14 Sep 2000 15:14:19 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, sigh!=20 After waiting so long for such a change I decided to upgrade to = -current (SMPng) yesterday. Do you have a patch for -current available? I can test various IBM-JDK applications (Oracle 8.1.6, SAP-gui, ...) as = well as lotus-notes. Bravo! anyway for hunting this problem down! Bye/2 ------ Michael Reifenberger - IT, UNIX, R/3-Basis Work: Michael.Reifenberger@plaut.de Proj: = Michael.Reifenberger.gp@icn.siemens.de Pers: Michael@Reifenberger.com Webspace: http://www.reifenberger.com > -----Urspr> =FCngliche Nachricht----- > Von: Andrew Gallatin [SMTP:gallatin@cs.duke.edu] > Gesendet am: Donnerstag, 14. September 2000 14:54 > An: Gerald Pfeifer > Cc: freebsd-emulation@FreeBSD.ORG; freebsd-java@FreeBSD.ORG > Betreff: Re: IBM JDK 1.3 now working (pointer to patches) >=20 >=20 > Gerald Pfeifer writes: > > So, will -STABLE users have to wait another year, for 5.0-RELEASE? > >=20 > > (We'll see whether we'll be able to prevent a switch of our entire > > network to Linux during that year, if this is really true. :-( ) >=20 > Before you get yourself too worked up (;-), bear in mind that I need > this working on 4.0-RELEASE (what we're frozen at locally). I'll try > to make patches to -STABLE and 4.0-RELEASE available before the > weekend. =20 >=20 > FWIW, it the backport should be trivial. The main changes between > -current linux emulation and -stable linux emulation is a shuffling = of > the files to make it possible to integrate linux/alpha support for = the > alpha port. Linux/alpha support, btw, is a Good Thing for the alpha > port, as it gets us access to the world-class compilers from Compaq. >=20 > Drew >=20 > = ------------------------------------------------------------------------= ------ > Andrew Gallatin, Sr Systems Programmer = http://www.cs.duke.edu/~gallatin > Duke University Email: gallatin@cs.duke.edu > Department of Computer Science Phone: (919) 660-6590 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-emulation" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Sep 14 6:47:32 2000 Delivered-To: freebsd-java@freebsd.org Received: from acs-24-154-28-99.zoominternet.net (acs-24-154-28-99.zoominternet.net [24.154.28.99]) by hub.freebsd.org (Postfix) with ESMTP id A69ED37B423 for ; Thu, 14 Sep 2000 06:47:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by topperwein.dyndns.org (8.9.3/8.9.3) with ESMTP id PAA29678; Wed, 13 Sep 2000 15:17:22 -0400 (EDT) (envelope-from behanna@zbzoom.net) Date: Wed, 13 Sep 2000 15:17:22 -0400 (EDT) From: Chris BeHanna Reply-To: behanna@zbzoom.net To: Kenneth Mays Cc: freebsd-java@FreeBSD.ORG Subject: Re: Using the Linux JDK/JRE v1.3 with FreeBSD 4.x In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 13 Sep 2000, Kenneth Mays wrote: > Has anyone gotten the Linux version of Sun's Java JDK/JRE v1.3 to work > on FreeBSD v4.x??? Not me. It is *highly* wedded to RedHat's layout, and to the output of RedHat commands. It won't even run under Slackware! Furthermore , there's a binary called "realpath" that will dump core if you get the wrapper script jimmied to DTRT. It is far, *FAR* easier to get IBM JDK/JRE 1.3 for Linux to work, and that version is faster, too. -- Chris BeHanna Software Engineer (at yourfit.com) behanna@zbzoom.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Sep 14 8:46: 1 2000 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 5A89C37B422 for ; Thu, 14 Sep 2000 08:45:59 -0700 (PDT) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id JAA03912; Thu, 14 Sep 2000 09:45:57 -0600 (MDT) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id JAA17480; Thu, 14 Sep 2000 09:45:57 -0600 (MDT) (envelope-from nate) Date: Thu, 14 Sep 2000 09:45:57 -0600 (MDT) Message-Id: <200009141545.JAA17480@nomad.yogotech.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: behanna@zbzoom.net Cc: FreeBSD-Java Subject: Re: Java v1.3 JDK/JRE for FreeBSD v4.x In-Reply-To: References: <200009130045.SAA25992@nomad.yogotech.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [ Moved to freebsd-java ] > > > In dealing with the Netscape issue, I was reminded of the latest Java > > > implementation on v1.3 of the JDK/JRE. Has there been effort to > > > add Java JDK/JRE v1.3 to -current or possible -STABLE?!? > > > > Because Java is not open-source, it will never become a default part of > > the FreeBSD OS. > > > > An external port of JDK1.2.2 is in the works, to be followed by a JDK1.3 > > release. Followups to freebsd-java. > > Just FYI (and I won't continue in this forum), but I've > semi-successfully gotten IBM JDK 1.3.0 for Linux to run on FreeBSD > 4.1-STABLE. With or without Drew's patches? Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Sep 14 9: 9:32 2000 Delivered-To: freebsd-java@freebsd.org Received: from gatekeeper.isltd.insignia.com (gatekeeper.isltd.insignia.com [195.217.222.20]) by hub.freebsd.org (Postfix) with ESMTP id E386F37B424 for ; Thu, 14 Sep 2000 09:09:24 -0700 (PDT) Received: from saracen.isltd.insignia.com (saracen.isltd.insignia.com [193.112.17.171]) by gatekeeper.isltd.insignia.com (8.9.3/8.9.3) with ESMTP id RAA10887; Thu, 14 Sep 2000 17:09:23 +0100 (BST) Received: from luggage.isltd.insignia.com (luggage.isltd.insignia.com [193.112.17.47]) by saracen.isltd.insignia.com (8.8.4/BSCF-1.2) with SMTP id RAA01148; Thu, 14 Sep 2000 17:09:15 +0100 (BST) From: Martin Hopkins MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14784.63531.205427.200590@luggage.isltd.insignia.com> Date: Thu, 14 Sep 2000 17:09:15 +0100 (BST) To: behanna@zbzoom.net Cc: java@freebsd.org Subject: Re: Java v1.3 JDK/JRE for FreeBSD v4.x In-Reply-To: References: <14784.57922.612692.949082@luggage.isltd.insignia.com> X-Mailer: VM 6.75 under 20.4 "Emerald" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >>>>> "Chris" == Chris BeHanna writes: Chris> On Thu, 14 Sep 2000, Martin Hopkins wrote: >> >>>>> "Chris" == Chris BeHanna writes: >> Chris> On Tue, 12 Sep 2000, Nate Williams wrote: >> >> > In dealing with the Netscape issue, I was reminded of the latest Java >> >> > implementation on v1.3 of the JDK/JRE. Has there been effort to >> >> > add Java JDK/JRE v1.3 to -current or possible -STABLE?!? >> >> >> >> Because Java is not open-source, it will never become a default part of >> >> the FreeBSD OS. >> >> >> >> An external port of JDK1.2.2 is in the works, to be followed by a JDK1.3 >> >> release. Followups to freebsd-java. >> Chris> Just FYI (and I won't continue in this forum), but I've Chris> semi-successfully gotten IBM JDK 1.3.0 for Linux to run on FreeBSD Chris> 4.1-STABLE. I've had no luck at all with Sun's version, which is Chris> pretty much hard-wired to run on RedHat, period. It won't even run on Chris> Slackware. >> >> Are you refering to Sun's jdk-1.3-RC1. Chris> Yes. >> If so I downloaded the sh >> archive last night and it seems to run on 4.1-STABLE (very limited >> testing).. I do get a "cannot uninstall alt signal stack warning" on >> exit. The only thing I've changed is >> >> >> --- bin/.java_wrapper~ Mon Aug 28 08:36:50 2000 >> +++ bin/.java_wrapper Wed Sep 13 19:35:08 2000 >> @@ -1,4 +1,4 @@ >> -#!/bin/sh >> +#!/compat/linux/bin/sh >> >> # >> # @(#)java_wrapper_linux.sh 1.8 00/05/19 Chris> Very interesting. >> Are you refering to the RPM distribution? Chris> I was referring to the gzipped tarball. As you say, very interesting. The only other problem I remember was that my netscape managed to download the distribution in ascii mode. A bit more testing (using -classic i.e green threads, nojit) has just caused looutput: mbuf allocation failure Fatal trap 12: page fault while in kernel mode I'll investigate further when I get a chance. Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Sep 14 13:22:41 2000 Delivered-To: freebsd-java@freebsd.org Received: from acs-24-154-28-99.zoominternet.net (acs-24-154-28-99.zoominternet.net [24.154.28.99]) by hub.freebsd.org (Postfix) with ESMTP id BC9D037B423 for ; Thu, 14 Sep 2000 13:22:37 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by topperwein.dyndns.org (8.9.3/8.9.3) with ESMTP id LAA33853 for ; Thu, 14 Sep 2000 11:57:23 -0400 (EDT) (envelope-from behanna@zbzoom.net) Date: Thu, 14 Sep 2000 11:57:23 -0400 (EDT) From: Chris BeHanna Reply-To: behanna@zbzoom.net To: java@freebsd.org Subject: Re: Java v1.3 JDK/JRE for FreeBSD v4.x In-Reply-To: <200009141545.JAA17480@nomad.yogotech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 14 Sep 2000, Nate Williams wrote: > [ Moved to freebsd-java ] > > > > > In dealing with the Netscape issue, I was reminded of the latest Java > > > > implementation on v1.3 of the JDK/JRE. Has there been effort to > > > > add Java JDK/JRE v1.3 to -current or possible -STABLE?!? > > > > > > Because Java is not open-source, it will never become a default part of > > > the FreeBSD OS. > > > > > > An external port of JDK1.2.2 is in the works, to be followed by a JDK1.3 > > > release. Followups to freebsd-java. > > > > Just FYI (and I won't continue in this forum), but I've > > semi-successfully gotten IBM JDK 1.3.0 for Linux to run on FreeBSD > > 4.1-STABLE. > > With or without Drew's patches? This was without, but I have to admit that by "work", I mean, it successfully compiles and runs a "Hello, world" program. I hadn't gotten farther with it, but that's a damned sight farther than I got with the Sun tarball. -- Chris BeHanna Software Engineer (at yourfit.com) behanna@zbzoom.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Sep 14 13:22:42 2000 Delivered-To: freebsd-java@freebsd.org Received: from acs-24-154-28-99.zoominternet.net (acs-24-154-28-99.zoominternet.net [24.154.28.99]) by hub.freebsd.org (Postfix) with ESMTP id 868DD37B440 for ; Thu, 14 Sep 2000 13:22:38 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by topperwein.dyndns.org (8.9.3/8.9.3) with ESMTP id LAA33680; Thu, 14 Sep 2000 11:15:39 -0400 (EDT) (envelope-from behanna@zbzoom.net) Date: Thu, 14 Sep 2000 11:15:39 -0400 (EDT) From: Chris BeHanna Reply-To: behanna@zbzoom.net To: Martin Hopkins Cc: java@freebsd.org Subject: Re: Java v1.3 JDK/JRE for FreeBSD v4.x In-Reply-To: <14784.57922.612692.949082@luggage.isltd.insignia.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 14 Sep 2000, Martin Hopkins wrote: > >>>>> "Chris" == Chris BeHanna writes: > > Chris> On Tue, 12 Sep 2000, Nate Williams wrote: > >> > In dealing with the Netscape issue, I was reminded of the latest Java > >> > implementation on v1.3 of the JDK/JRE. Has there been effort to > >> > add Java JDK/JRE v1.3 to -current or possible -STABLE?!? > >> > >> Because Java is not open-source, it will never become a default part of > >> the FreeBSD OS. > >> > >> An external port of JDK1.2.2 is in the works, to be followed by a JDK1.3 > >> release. Followups to freebsd-java. > > Chris> Just FYI (and I won't continue in this forum), but I've > Chris> semi-successfully gotten IBM JDK 1.3.0 for Linux to run on FreeBSD > Chris> 4.1-STABLE. I've had no luck at all with Sun's version, which is > Chris> pretty much hard-wired to run on RedHat, period. It won't even run on > Chris> Slackware. > > Are you refering to Sun's jdk-1.3-RC1. Yes. > If so I downloaded the sh > archive last night and it seems to run on 4.1-STABLE (very limited > testing).. I do get a "cannot uninstall alt signal stack warning" on > exit. The only thing I've changed is > > > --- bin/.java_wrapper~ Mon Aug 28 08:36:50 2000 > +++ bin/.java_wrapper Wed Sep 13 19:35:08 2000 > @@ -1,4 +1,4 @@ > -#!/bin/sh > +#!/compat/linux/bin/sh > > # > # @(#)java_wrapper_linux.sh 1.8 00/05/19 Very interesting. > Are you refering to the RPM distribution? I was referring to the gzipped tarball. -- Chris BeHanna Software Engineer (at yourfit.com) behanna@zbzoom.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Sep 15 11:34:36 2000 Delivered-To: freebsd-java@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id ADE5437B422; Fri, 15 Sep 2000 11:34:31 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id OAA15679; Fri, 15 Sep 2000 14:34:29 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.0/8.9.1) id e8FIYTx53481; Fri, 15 Sep 2000 14:34:29 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 15 Sep 2000 14:34:29 -0400 (EDT) To: Gerald Pfeifer Cc: freebsd-emulation@freebsd.org, freebsd-java@freebsd.org Subject: Re: IBM JDK 1.3 now working (pointer to patches) In-Reply-To: References: <14783.55339.269170.481033@grasshopper.cs.duke.edu> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14786.27119.307209.768848@grasshopper.cs.duke.edu> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org As promised, here's a new diff for 4.0-release: http://www.cs.duke.edu/~gallatin/linux_sa_siginfo/4.0-release.diff And a new diff to the pre-smpng -current: http://www.cs.duke.edu/~gallatin/linux_sa_siginfo/diff As for -stable -- Sean O'Connell took care of that yesterday. The 4.0-release diff should (almost) apply to -stable. I don't have an up-to-date -stable tree laying around & I don't have time to make -stable diff right now. I obtained this diff by applying the patches that Sean O'Connell posted yesterday (thanks Sean) and cleaning up 2 rejects. Both have a change in that rather than hitting the thread stack problem over the head by changing the map flag to MAP_ANON from MAP_STACK, I'm now detecting the allocation of a thread stack in the region typically reserved for the main process stack and adjusting vm_maxsaddr to reflect the current stacksize resource limit. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message