Bug#99307: libgcj/3419: unresolved symbols when gcj -static is used

Matthias Klose doko@cs.tu-berlin.de
Wed Jan 9 14:24:00 GMT 2002


bryce@gcc.gnu.org writes:
> Synopsis: unresolved symbols when gcj -static is used
> 
> State-Changed-From-To: open->closed
> State-Changed-By: bryce
> State-Changed-When: Sat Sep 29 22:50:20 2001
> State-Changed-Why:
>     Could not reproduce with 3.0.2 branch or current mainline.
>     I suspect this was a mis-installed libgcj or a transient bug.
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3419&database=gcc

FYI, this is a binutils bug, see http://bugs.debian.org/107812 for
more information, introduced by calling strip on libgcj.a

The problem is that some class names in the java library occurs
more than ones with different path names. For example
java/util/Date.o and java/sql/Date.o. ar handles this by storing
two different versions of Date.o in the archive.

When dh_strip executes 'strip --strip-debug libgcj.a', strip
unpacks all object files in a temporary directory without any path
prefix, and the first instance of Date.o seems to be overwritten
by the second.



More information about the Gcc-bugs mailing list