Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 1999 12:16:00 -0500 (CDT)
From:      "Christopher T. Griffiths" <cgriffiths@quansoo.com>
To:        Sven Reimers <reimers@tu-harburg.de>
Cc:        java@freebsd.org
Subject:   Re: Linux JDK1.2 port
Message-ID:  <Pine.BSF.4.10.9910191213510.2656-100000@defiant.quansoo.com>
In-Reply-To: <380C980B.6D7FE482@tu-harburg.de>

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

I am using 3.3stable with linux_base and linux_devtools with linux
emulation running.
I am trying to run java -version.

Chris 

On Tue, 19 Oct 1999, Sven Reimers wrote:

> Maybe you could be a bit more precise.
> 
> What system version, what command you are trying ...
> 
> Sven
> 
> 
> "Christopher T. Griffiths" wrote:
> 
> > 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 <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
> > >
> >
> > 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
> 

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9910191213510.2656-100000>