Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 1999 17:34:14 +0900
From:      Makoto MATSUSHITA (=?ISO-2022-JP?B?GyRCJF4kRCQ3JD8kXiQzJEgbKEI=?=) <matusita@ics.es.osaka-u.ac.jp>
To:        java@FreeBSD.ORG
Subject:   Re: Linux JDK1.2 port
Message-ID:  <19991019173414W.matusita@ics.es.osaka-u.ac.jp>
In-Reply-To: <380C1228.92E6C7A1@tu-harburg.de>
References:  <Pine.BSF.4.10.9910181703360.4377-100000@defiant.quansoo.com> <380C1228.92E6C7A1@tu-harburg.de>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <URL:http://www.blackdown.org/java-linux/>)

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991019173414W.matusita>