This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Loading native shared-libraries dynamically....


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]