* JNI debugging, "error while loading shared libraries"
@ 2001-08-24 19:52 William Croft
2001-08-24 23:36 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: William Croft @ 2001-08-24 19:52 UTC (permalink / raw)
To: insight
I'd like to use insight to debug our Java JNI native functions, written in C.
A very tiny test program (below), runs fine without insight ("java hi" from
the shell).
public class hi {
public static void main(String[] args) {
System.out.println("hello world");
}
}
But firing up java with insight (the java wrapper looks at export
DEBUG_PROG=gdb), gets the following error as soon as I "run hi" from the gdb
console:
/usr/share/jbuilder5/jdk1.3/bin/i386/native_threads/java: error while loading
shared libraries: libhpi.so: cannot load shared object file: No such file or
directory
----
Do you have any ideas or workarounds? I put a "sh -x" on the java wrapper and
it IS setting up LD_LIBRARY_PATH correctly. Otherwise it wouldnt work in the
case without insight. I even tried manually adding the java libdirs to
/etc/ld.so.conf, that didnt work either.
I'm running insight+dejagnu-20010703
BTW, I get the same failure from insight in "-nw" no windows mode. And from
gdb 5.0rh-5. The OS here is RH7.1.
Thanks for your ideas.
--William
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: JNI debugging, "error while loading shared libraries"
2001-08-24 19:52 JNI debugging, "error while loading shared libraries" William Croft
@ 2001-08-24 23:36 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2001-08-24 23:36 UTC (permalink / raw)
To: William Croft; +Cc: insight
>>>>> "William" == William Croft <croft@mitem.com> writes:
William> Do you have any ideas or workarounds? I put a "sh -x" on the
William> java wrapper and it IS setting up LD_LIBRARY_PATH correctly.
William> Otherwise it wouldnt work in the case without insight. I
William> even tried manually adding the java libdirs to
William> /etc/ld.so.conf, that didnt work either.
Try `set env LD_LIBRARY_PATH ...' from the console before running the
inferior.
William> BTW, I get the same failure from insight in "-nw" no windows
William> mode.
Sounds like a generic gdb bug, probably unconnected to Insight.
Perhaps the gdb list would be a better choice.
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-24 23:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-24 19:52 JNI debugging, "error while loading shared libraries" William Croft
2001-08-24 23:36 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).