This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-3.0, libjava]: Unresolved dependency to __cxa_call_unexpected
- To: manfred dot h at gmx dot net
- Subject: Re: [gcc-3.0, libjava]: Unresolved dependency to __cxa_call_unexpected
- From: Tom Tromey <tromey at redhat dot com>
- Date: 19 Jun 2001 12:32:24 -0600
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <3B2F8A3C.6BDD6DD9@gmx.net>
- Reply-To: tromey at redhat dot com
>>>>> "Manfred" == Manfred Hollstein <manfred.h@gmx.net> writes:
Manfred> I was just building plain vanilla 3.0 sources when I faced
Manfred> this problem:
Manfred> --enable-java-awt=xlib,gtk
FYI, this isn't really tested much, which is why it is disabled by
default. This might be related to your problem, see below.
Manfred> Everything built fine until when 'jv-convert' should be linked;
Manfred> this failed like follows:
Manfred> /.libs/libgcj.so: undefined reference to `__cxa_call_unexpected'
Manfred> The symbol is clearly defined in
Manfred> i686-redhat7-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.3.0.0
Manfred> but it looks like libtool is not linking with it.
Java programs by default aren't linked against libstdc++.
This error means that one of the libjava files, and I'm guessing it is
one of the AWT peer files that you enabled with --enable-java-awt, is
using the C++ exception code and not the Java exception code. There
is a pragma that can be used to fix this.
Meanwhile, just don't use that option.
Tom