[PATCH] Re: How exactly does one build libjava successfully?
Bryce McKinlay
bryce@albatross.co.nz
Wed Feb 14 17:04:00 GMT 2001
Zack Weinberg wrote:
> There are a couple of different things I would like to try out gcj
> with, but I cannot successfully build libgcj. On both HEAD and the
> branch, with or without --enable-shared to configure, I get these link
> errors:
>> ./.libs/libgcj.so: undefined reference to `__eh_alloc@GCC_3.0'
> ./.libs/libgcj.so: undefined reference to `__eh_free@GCC_3.0'
> ./.libs/libgcj.so: undefined reference to `__throw@GCC_3.0'
> ./.libs/libgcj.so: undefined reference to `__get_eh_info@GCC_3.0'
> ./.libs/libgcj.so: undefined reference to `__get_eh_table_language@GCC_3.0'
> ./.libs/libgcj.so: undefined reference to `__terminate@GCC_3.0'
> ./.libs/libgcj.so: undefined reference to `__terminate_set_func@GCC_3.0'
> ./.libs/libgcj.so: undefined reference to `__rethrow@GCC_3.0'
>> Any clues would be appreciated. This is i686-pc-linux-gnu.
>> zw
The problem is that ENABLE_SHARED_LIBGCC was not being defined when building
java/jvspec.o, resulting in gcj's link command using -lgcc when it should have
been using -lgcc_s.
This patch seems to fix it. Not that I removed $(OUTPUT_OPTION), since
cp/Make-lang.in doesn't use it and I can't figure out what it would be for.
Okay to commit?
regards
[ bryce ]
More information about the Java
mailing list