Title: RE: Linux JVM: JNI allow putmsg() syscalls in native code?

The LD_PRELOAD is working out after all. I set this *inside* of my '.java_wrapper'
instead of on the command line. This prevents the process from hanging like before.

LD_DEBUG=symbols,binding.... reveals the following:
        31566:  symbol=putpmsg;  lookup in file=/usr/lib/libLiS.so
        31566:  binding file /home/imslab/jets1000dev/dlpi/libdlpi.so to /usr/lib/libLiS.so: symbol `putpmsg'

Thanks for the help!
Will

-----Original Message-----
From: Juergen Kreileder [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 4:37 PM
To: Quan, William [NGC:B866:EXCH]
Cc: '[EMAIL PROTECTED]'
Subject: Re: Linux JVM: JNI allow putmsg() syscalls in native code?


William Quan <[EMAIL PROTECTED]> writes:

> Q1.) Why is the JVM eclipsing my getmsg() and putmsg() syscalls with
> this from libc?

This not Java specific, you'll get the same problem when dlopening a
library which is linked against libLiS.so.  The first getmsg which
gets found is from libc.
If you set LD_DEBUG=symbols,bindings you can see what's happening.
(E.g. "LD_DEBUG=symbols,bindings java ... 2>&1 | grep getmsg")

In order to get getmsg() from libLiS.so you either have to set
LD_PRELOAD=libLiS.so or create a new startup program (which you'll use
instead of "java") that is linked with libLiS.so.

> Q2.) Does the following restriction apply to the linux 1.3.1 (native
> threads)?

No, the restriction only applies to the green threads VM. 


        Juergen

--
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
Run Java 2 SE v1.3.1 on your iPAQ:
http://www.handhelds.org/pipermail/ipaq/2001-June/007221.html


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

Reply via email to