On Wed, 4 Apr 2001, [EMAIL PROTECTED] wrote:

> OK, I lied (due to an unfortunate typo). export
> LD_PRELOAD=libpthread.so fixed it; also adding it to
> /etc/ld.so.preload works.

This is a hack, you should link your application with "-lpthread".
Without getting libpthread in somehow your code will use the normal
functions from libc instead of the thread-safe variants from
libpthread.  Also compile your code with -D_REENTRANT.

Our 1.3 comes with a script j2sdk-config, which helps to set compiler
and linker flags.  E.g. 'j2sdk-config --libs' returns something like
"-L/usr/lib/j2re1.3/lib/i386/client -ljvm -lpthread".


        Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
JVM'01: http://www.usenix.org/events/jvm01/


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to