This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Loading native shared-libraries dynamically....
- From: Andrew Haley <aph at redhat dot com>
- To: Clemens Eisserer <Linuxhippy at web dot de>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 25 Nov 2002 15:20:19 +0000 (GMT)
- Subject: Loading native shared-libraries dynamically....
- References: <200211251506.gAPF6pX04883@mailgate5.cinetic.de>
Clemens Eisserer writes:
> HI again!
>
> I found this interesting lines, but I dont know waht they mean:
>
> > open("29/lib-bte.so", O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("lib-bte.so", O_RDONLY) = 6
> O.K. this seems to be a found lib-bte.so (I compiled the lib with "gcj bte.java -shared -o lib-bte.so --Classpath..."
-fPIC ?
> But the following lines show, that theres some not working:
>
> open("lib-bte.so", O_RDONLY) = 6
Right, so the shared library loader did find the shared object but
didn't like it. Undefined symbol, bad reloc, that kind of thing. Put
a breakpoint on dlopen() and when it exits print out dlerror().
Andrew.