printing exceptions?

Alexandre Oliva aoliva@redhat.com
Wed Mar 6 12:22:00 GMT 2002


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /