gcc-3.3 CVS failing during libjava compile with: ./.libs/libgcj.so: undefined reference to `__gcc_personality_v0'

Martin Schlemmer azarah@gentoo.org
Sun Jul 13 17:13:00 GMT 2003


On Tue, 2003-07-01 at 05:08, Jeff Sturm wrote:
> On 30 Jun 2003, Martin Schlemmer wrote:
> > ./.libs/libgcj.so: undefined reference to `__gcc_personality_v0'
> 
> You'll see the same if you link a C program using cleanups with
> -shared-libgcc -fexceptions.  The symbol isn't exported by libgcc_s.so.
> 
> I'd guess you need something like the following.
> 
> Jeff
> 
> Index: libgcc-std.ver
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/libgcc-std.ver,v
> retrieving revision 1.21
> diff -c -p -r1.21 libgcc-std.ver
> *** libgcc-std.ver      7 May 2003 22:11:33 -0000       1.21
> --- libgcc-std.ver      1 Jul 2003 03:06:40 -0000
> *************** GCC_3.3 {
> *** 183,188 ****
> --- 183,190 ----
>     _Unwind_Backtrace
>     _Unwind_Resume_or_Rethrow
>     _Unwind_SjLj_Resume_or_Rethrow
> +   __gcc_personality_v0
> +   __gcc_personality_sj0
>   }
> 
>   %inherit GCC_3.4 GCC_3.3

This does work ... only question now, is will it cause issues on a
system compiled with this gcc, and another gcc (3.4/whatever) is
installed that do not export these functions ?

Also, this only occurs with current glibc CVS, with NPTL (0.48-0.52).
I have not been able to test with linuxthreads, but it works fine
with a glibc snapshot of 2003-05-27/9 that also use NPTL (0.38).


Regards,

-- 

Martin Schlemmer



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030713/772c5912/attachment.sig>


More information about the Libc-alpha mailing list