This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug#99307: libgcj/3419: unresolved symbols when gcj -static is used
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- To: bryce at gcc dot gnu dot org, 99307 at bugs dot debian dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 9 Jan 2002 23:20:43 +0100
- Subject: Re: Bug#99307: libgcj/3419: unresolved symbols when gcj -static is used
- References: <20010930055021.2545.qmail@sourceware.cygnus.com>
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.