This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: printing exceptions?
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>, tromey at redhat dot com, Java Discuss List <java at gcc dot gnu dot org>
- Date: 06 Mar 2002 17:22:44 -0300
- Subject: Re: printing exceptions?
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.10.10203052317220.6889-100000@mars.deadcafe.org>
On Mar 6, 2002, Jeff Sturm <jsturm@one-point.com> wrote:
> On Wed, 6 Mar 2002, Bryce McKinlay wrote:
>> And the "gij" produced by this command works perfectly. Maybe it has
>> something to do with -lpthread?
> You must never link -lc ahead of -lpthread. The latter often overrides
> symbols in the former (e.g. wait).
Yup, that sounds like a good lead.
The solution to make sure pthread is always linked in before libc
would be to explicitly link -lpthread before any other library (even
GCJ-internal ones, even if it is going to be duplicated afterwards).
Another, slightly uglier solution, would be to make sure the first
library dependency of libjava also depends on -lpthread, such that the
-lgcc_s -lc -lgcc_s that comes in with it (because it actually depends
on those libraries) doesn't end up before -lpthread.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer