Subject: Re: JDK 1.0.2 for m68k arch
To: Hauke Fath <port-mac68k@NetBSD.ORG>
From: Nikolai Vladychevski <niko@netspace.com.mx>
List: port-mac68k
Date: 11/24/1997 18:28:30
>Kaffe 0.90 and 0.91 do not even pretend to build on MacBSD -- some
>incompletely defined structs or such. I haven't looked into 0.92, yet, as
well, if the structs you mention are this:
gcc -g -O -I. -I. -I./../../config -I../../config -I../../include
-I./../../include -DINTERPRETER -I./intrine.c: In function 
`virtualMachine':
./intrp/machine.c:141: structure has no member named `exception_table_len'
./intrp/machine.c:152: structure has no member named `ins'
./intrp/machine.c:178: structure has no member named `code'
./intrp/machine.c:182: structure has no member named `codelen'

here's the patch to make it workp -DKVER=\"0.91\" -c -fPIC
 ./intrp/machine.c
./intrp/mach:

Change from
< if (meth->exception_table_len > 0 || (methaccflags & ACC_SYNCHRONISED))
to
> if (meth->exception_table->length > 0 || (methaccflags & ACC_SYNCHRONISED))
and 
from 
< idx = meth->ins + (methaccflags & ACC_STATIC ? 0 : 1);
to
> idx = meth->idx + (methaccflags & ACC_STATIC ? 0 : 1);
and 
from
< code = (bytecode*)meth->code;
to
> code = (bytecode*)meth->c.bcode.code;
and finally
from 
< assert(npc < meth->codelen);
to
> assert(npc < meth->c.bcode.codelen);

though , I dont use kaffe 
Nikolai


_______________________________________________________
Nikolai Vladychevskii, niko@netspace.com.mx
Another mad Java Developer
Dom Software. +52 (72) 13-2642 Toluca, Mex.

"Only Ice Cream Has 31 Flavors"
_______________________________________________________