From owner-freebsd-java Tue Oct 19 1:34:31 1999 Delivered-To: freebsd-java@freebsd.org Received: from iip-lab.ics.es.osaka-u.ac.jp (iip-lab.ics.es.osaka-u.ac.jp [133.1.12.190]) by hub.freebsd.org (Postfix) with ESMTP id 38406162C7 for ; Tue, 19 Oct 1999 01:34:18 -0700 (PDT) (envelope-from matusita@ics.es.osaka-u.ac.jp) Received: from localhost (martini.ics.es.osaka-u.ac.jp [133.1.12.150]) by iip-lab.ics.es.osaka-u.ac.jp (8.9.3/3.7W/INO-1.0v8-MASTER) with ESMTP id RAA63944 for ; Tue, 19 Oct 1999 17:34:16 +0900 (JST) In-Reply-To: <380C1228.92E6C7A1@tu-harburg.de> References: <380C1228.92E6C7A1@tu-harburg.de> X-Face: '*aj"d@ijeQ:/X}]oM5c5Uz{ZZZk90WPt>a^y4$cGQp8:!H\W=hSM;PuNiidkc]/%,;6VGu e+`&APmz|P;F~OL/QK%;P2vU>\j4X.8@i%j6[%DTs_3J,Fff0)*oHg$A.cDm&jc#pD24WK@{,"Ef!0 P\):.2}8jo-BiZ?X&t$V X-User-Agent: Mew/1.94 XEmacs/21.2 (Toshima) X-SKK-Version: 10.52 X-FaceAnim: (-O_O-)(O_O- )(_O- )(O- )(- -)( -O)( -O_)( -O_O)(-O_O-) X-Fingerprint: 0C AC 93 FC E3 9D 9E 5B 3D B8 AC 5C 4A 79 D8 A6 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Dispatcher: imput version 990905(IM130) Lines: 79 From: Makoto MATSUSHITA (=?ISO-2022-JP?B?GyRCJF4kRCQ3JD8kXiQzJEgbKEI=?=) To: java@FreeBSD.ORG Subject: Re: Linux JDK1.2 port Date: Tue, 19 Oct 1999 17:34:14 +0900 Message-Id: <19991019173414W.matusita@ics.es.osaka-u.ac.jp> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org reimers> Use the diff for .java.wrapper to get rid of the error messages reimers> caused by the script. Why not using /compat/linux/usr/bin/expr, which is already noted by previous mail (by glewis@trc.adelaide.edu.au) ? Maybe /bin/expr works also in some cases, but our /bin/expr copy (as of FreeBSD 3.3-RELEASE) complains about this format (I dunno why). reimers> Then you should use the -green option to use green threads, reimers> only those work. Exactly. Here is a patch which contains all of above. I've tested on: - FreeBSD 3.3-RELEASE and its Linux emulation by kernel module (it's easy to do by /usr/bin/linux, and/or put linux_enable="YES" to your /etc/rc.conf or equivalent. No need to recompile your customized/default kernel) - FreeBSD packages linux_base-5.2 for Linux environment (It's the latest version of ports/emulators/linux_base, and included package collections for FreeBSD 3.3-RELEASE) - JDK 1.2pre-v2 by Java-Linux Porting Team at blackdown.org (See ) Hope this helps... --- bin/.java_wrapper.dist Thu Jun 3 01:14:34 1999 +++ bin/.java_wrapper Thu Oct 14 19:17:11 1999 @@ -31,8 +31,8 @@ # Resolve symlinks. See 4152645. while [ -h "$PRG" ]; do ls=`/bin/ls -ld "$PRG"` - link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'` - if /usr/bin/expr "$link" : '/' > /dev/null; then + 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" @@ -63,7 +63,7 @@ # Select vm type (if classic vm, also select thread type). unset vmtype unset ttype -DEFAULT_THREADS_FLAG=native +DEFAULT_THREADS_FLAG=green if [ "x$1" = "x-hotspot" ]; then vmtype=hotspot ttype=native_threads --- jre/bin/.java_wrapper.dist Thu Jun 3 01:14:34 1999 +++ jre/bin/.java_wrapper Thu Oct 14 19:32:06 1999 @@ -31,8 +31,8 @@ # Resolve symlinks. See 4152645. while [ -h "$PRG" ]; do ls=`/bin/ls -ld "$PRG"` - link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'` - if /usr/bin/expr "$link" : '/' > /dev/null; then + 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" @@ -63,7 +63,7 @@ # Select vm type (if classic vm, also select thread type). unset vmtype unset ttype -DEFAULT_THREADS_FLAG=native +DEFAULT_THREADS_FLAG=green if [ "x$1" = "x-hotspot" ]; then vmtype=hotspot ttype=native_threads BTW, is there any report about this JDK1.2 works on recent (yes, the time after sigset_t changes) 4.0-CURRENT ? I've tried, but no helps (the process hungs up). -- - Makoto `MAR' MATSUSHITA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message