java_lang_Object twice defined

Patrick Tullmann kaffe@rufus.w3.org
Thu, 19 Apr 2001 13:23:56 -0600


yewang@eng.auburn.edu wrote:
> 
> Hi, 
> When I cross-compile the kaffe, I met this error. Does someone know this?

That's very odd.  There shouldn't be a definition of Hjava_lang_Object
in java_lang_Object.h.  (Yes, that is a bit odd, but its true.)

Look at kaffe/kaffeh/support.c:startInclude().  It specifically skips
java_lang_Object and java_lang_Class because those have magical
definitions provided explicitly by hand, and do not have java fields.

You might nuke include/java_lang_Object.h and try re-running make on
it in that directory to see what the arguments to kaffeh are.  Then
you'll have to debug kaffeh for that test case (should be pretty
straightforward).

-Pat

----- ----- ---- ---  ---  --   -    -      -         -               -
Pat Tullmann                                       tullmann@cs.utah.edu
      That which does not kill you just didn't try hard enough.