init_properties()

Tom Tromey tromey@redhat.com
Fri Nov 16 18:10:00 GMT 2001


>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> I must have put it there a while ago but I cannot remember how I
Mark> found out that I had to do that. From printing out the System
Mark> properties it seems that GCJVERSION and PREFIX are not set
Mark> somehow. If I recompile without the NULL checks then all java
Mark> programs just print 'aborted' (they SEGV in strlen).

Mark> Does anybody else have this or is there something wrong with my
Mark> setup?  (I have only a up to date libjava directory the rest of
Mark> my gcc tree is from 28 September.)

I don't see a problem here with my build.
I don't think the compiler version will matter.
I think this patch shouldn't be necessary.

GCJVERSION should be set by configure.
There is an AC_DEFINE_UNQUOTED for it.
You can look in include/config.h in the libjava build tree to see the
setting it gets.  Mine looks like this:

    /* Define to version of GCJ in use.  */
    #define GCJVERSION "3.1"

PREFIX should be set by Makefile.am.

One way to find out what is going wrong would be to run the
natSystem.cc compilation command with -E.  Then look at the
preprocessed output to see what really happened.  It should be pretty
easy to work backwards from there.

Tom



More information about the Java mailing list