libtool crap

Date view Thread view Subject view Author view

From: Archie Cobbs (archie@whistle.com)
Date: Tue Feb 02 1999 - 20:09:47 EST


I just found out something (I think) that makes this libtool
stuff bascially unacceptable to me. I hope this is easy to fix.
I'm really getting sick of this.

I have a class Foo.class with a native method. The native method
is implemented in a shared library /usr/local/lib/libfoo.so.1.1.

Foo.java contains this:

  static {
    final String LIBNAME = "foo";
    try {
      System.loadLibrary(LIBNAME);
    } catch (UnsatisfiedLinkError e) {
      System.err.println("Error: can't load library ``" + LIBNAME + "''");
      System.exit(SysExits.SOFTWARE);
    }
  }

My $LD_LIBRARY_PATH contains /usr/local/lib, but when I run
"kaffe Foo" it can't load the library for some reason. Ktrace
output included below.

Requiring me to create a ".la" file is not an acceptable answer!!

Thanks,
-Archie

___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com

 28115 Kaffe CALL open(0xefbfc3b4,0,0x1b6)
 28115 Kaffe NAMI "/usr/local/lib/kaffe/libfoo.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL open(0x5dc080,0,0x1b6)
 28115 Kaffe NAMI "/usr/local/lib/kaffe/libfoo.la.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc080,0xefbfbdd0)
 28115 Kaffe NAMI "/usr/local/lib/kaffe/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL open(0xefbfc3b4,0,0x1b6)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL open(0x5dc080,0,0x1b6)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc080,0xefbfbdd0)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL open(0xefbfc3b4,0,0x1b6)
 28115 Kaffe NAMI "/usr/lib/libfoo.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL open(0x260a0,0,0x1b6)
 28115 Kaffe NAMI "/usr/lib/libfoo.la.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x260a0,0xefbfbdd0)
 28115 Kaffe NAMI "/usr/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc140,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc140,0xefbfbd98)
 28115 Kaffe NAMI "/usr/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc140,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc140,0xefbfbd98)
 28115 Kaffe NAMI "/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc140,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL open(0xefbfc3b4,0,0x1b6)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL open(0x5dc080,0,0x1b6)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc080,0xefbfbdd0)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL open(0xefbfc3b4,0,0x1b6)
 28115 Kaffe NAMI "/usr/X11R6/lib/libfoo.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL open(0x5dc080,0,0x1b6)
 28115 Kaffe NAMI "/usr/X11R6/lib/libfoo.la.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc080,0xefbfbdd0)
 28115 Kaffe NAMI "/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe PSIG SIGVTALRM caught handler=0x2006c4c8 mask=0x0 code=0x0
 28115 Kaffe CALL sigaction(0x1a,0xefbfbdac,0)
 28115 Kaffe RET sigaction 0
 28115 Kaffe CALL sigprocmask(0x2,0x2000000)
 28115 Kaffe RET sigprocmask 37756928/0x2402000
 28115 Kaffe CALL sigreturn(0xefbfbdf0)
 28115 Kaffe RET sigreturn JUSTRETURN
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL open(0xefbfc3b4,0,0x1b6)
 28115 Kaffe NAMI "/usr/local/usr/X11R6/lib/libfoo.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL open(0x5dc080,0,0x1b6)
 28115 Kaffe NAMI "/usr/local/usr/X11R6/lib/libfoo.la.la"
 28115 Kaffe RET open -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc080,0xefbfbdd0)
 28115 Kaffe NAMI "/usr/local/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL stat(0x5dc180,0xefbfbd98)
 28115 Kaffe NAMI "/usr/local/usr/X11R6/lib/libfoo.la.so"
 28115 Kaffe RET stat -1 errno 2 No such file or directory
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe PSIG SIGVTALRM caught handler=0x2006c4c8 mask=0x0 code=0x0
 28115 Kaffe CALL sigaction(0x1a,0xefbfc4a0,0)
 28115 Kaffe RET sigaction 0
 28115 Kaffe CALL sigprocmask(0x2,0x2000000)
 28115 Kaffe RET sigprocmask 37756928/0x2402000
 28115 Kaffe CALL sigreturn(0xefbfc4e4)
 28115 Kaffe RET sigreturn JUSTRETURN
 28115 Kaffe CALL sigprocmask(0x1,0)
 28115 Kaffe RET sigprocmask 0
 28115 Kaffe CALL write(0x2,0x157548,0x2b)
 28115 Kaffe GIO fd 2 wrote 43 bytes
       "Error: can't load library ``foo''
       "


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:54 EDT