Loading native shared-libraries dynamically....
Andrew Haley
aph@redhat.com
Mon Nov 25 07:44:00 GMT 2002
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.
More information about the Java
mailing list