From owner-freebsd-java Tue Oct 19 9: 2:51 1999 Delivered-To: freebsd-java@freebsd.org Received: from defiant.quansoo.com (defiant.quansoo.com [63.66.225.90]) by hub.freebsd.org (Postfix) with ESMTP id 87BE617577 for ; Tue, 19 Oct 1999 09:02:46 -0700 (PDT) (envelope-from cgriffiths@quansoo.com) Received: from localhost (cgriffiths@localhost) by defiant.quansoo.com (8.9.3/8.9.3) with ESMTP id MAA02522; Tue, 19 Oct 1999 12:02:34 -0500 (CDT) (envelope-from cgriffiths@quansoo.com) X-Authentication-Warning: defiant.quansoo.com: cgriffiths owned process doing -bs Date: Tue, 19 Oct 1999 12:02:34 -0500 (CDT) From: "Christopher T. Griffiths" To: matusita@ics.es.osaka-u.ac.jp Cc: java@FreeBSD.ORG Subject: Re: Linux JDK1.2 port In-Reply-To: <19991019173414W.matusita@ics.es.osaka-u.ac.jp> 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 I have setup jdk1.2 in my /opt directory and I have run the patch with the /compat/linux for /usr/bin/expr I also added the following to ld.so.conf in /compat/linux/etc/ /opt/jdk1.2/jre/lib/i386 /opt/jdk1.2/jre/lib/i386/green_threads /opt/jdk1.2/jre/lib/i386/classic I am now getting the following error with a core dump: Segmentation fault /opt/jdk1.2/bin/i386/green_threads/java: error in loading shared libraries /opt/jdk1.2/jre/lib/i386/classic/libjvm.so: undefined symbol: __bzero Oct 19 12:01:43 defiant /kernel: pid 2512 (realpath), uid 1000: exited on signal 11 Any suggestions would be a great help Chris On Tue, 19 Oct 1999, it was written: > > 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 > Christopher T. Griffiths Senior Network/Systems Administrator Quansoo Group Inc. cgriffiths@quansoo.com Phone: (302) 777-4141 Fax: (302) 777-4142 Mobile: (302) 521-3436 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message