Subject: Re: _Unwind* undefined symbols on libstdc++
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 11/20/2003 22:07:39
In article <20031120181540.15eb4953.juan@xtraeme.unixbsd.org>,
Juan RP <juan@xtraeme.unixbsd.org> wrote:
>
>I was trying to find what's the problem with galeon package
>and -current (x86), looking at configure script it seems can't
>find mozilla, because libgtkembedmoz want a few symbols from libstdc++,
>which are undefined (or at least on my libstdc++).
>
>That's the output:
>
>[...]
>configure:12453: checking for gtk_moz_embed_get_type in -lgtkembedmoz
>configure:12484: cc -o conftest  -O2 -O2 -march=athlon-xp -mcpu=athlon-xp -pipe
>-I/usr/pkg/include -I/usr/X11R6/include -I/usr/pkg/include/mozilla 
>-I/usr/pkg/include/libglade-1.0 -I/usr/pkg/include/gdk-pixbuf-1.0
>-I/usr/pkg/include/freetype2  -I/usr/pkg/include -I/usr/X11R6/include 
>-Wl,-R/usr/lib  -Wl,-R/usr/pkg/lib/mozilla -Wl,-E -L/usr/pkg/lib
>-Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/pkg/lib/mozilla
>-lnspr4 -lplc4 -lplds4 -lgtkembedmoz -lxpcom -lgtksuperwin conftest.c
>-lgtkembedmoz   -lintl >&5 
>/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetIP'
>/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_Resume_or_Rethrow'
>/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetRegionStart'
>/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_Resume'
>/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_DeleteException'
>/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_RaiseException'
>/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_SetIP'
>/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetTextRelBase'
>[...]
>configure:12487: $? = 1 
>
>Is this a problem from our libstdc++ ? 
>What's the right way to fix this ?

Ah... Yes, there is a problem and I've opened a PR for it. You cannot
anymore link c++ problems with cc, you need to use g++ because of the
way libgcc_pic.a is resolved right now. It is not a problem with libstdc++,
but a problem with libgcc.

christos