Thanks for your suggestions. However, I do not think it is a load
path problem. It looks like a dynamic linking problem. It cannot
find the symbol STk_nil:
$ LD_DEBUG=symbols ../Src/stk
.
.
.
(set! *load-verbose* #t)
.
.
.
STk> (define-class A () ((a :initform 10) b))
;; Loading file "../STklos/stklos.stk"
;; Loading file "../Lib/hash.stk"
;; Loading file "../Extensions/hash.so"
11552: symbol=dlopen; lookup in file=../Src/stk [ ELF ]
11552: symbol=dlopen; lookup in file=/usr/openwin/lib/libX11.so.4 [ ELF ]
11552: symbol=dlopen; lookup in file=/usr/lib/libnsl.so.1 [ ELF ]
11552: symbol=dlopen; lookup in file=/usr/lib/libsocket.so.1 [ ELF ]
11552: symbol=dlopen; lookup in file=/usr/lib/libdl.so.1 [ ELF ]
11552: symbol=dlopen; lookup in file=/usr/lib/ld.so.1 [ ELF ]
11552: symbol=dlsym; lookup in file=../Src/stk [ ELF ]
11552: symbol=dlsym; lookup in file=/usr/openwin/lib/libX11.so.4 [ ELF ]
11552: symbol=dlsym; lookup in file=/usr/lib/libnsl.so.1 [ ELF ]
11552: symbol=dlsym; lookup in file=/usr/lib/libsocket.so.1 [ ELF ]
11552: symbol=dlsym; lookup in file=/usr/lib/libdl.so.1 [ ELF ]
11552: symbol=dlsym; lookup in file=/usr/lib/ld.so.1 [ ELF ]
11552:
11552: symbol=STk_init_hash; dlsym() starting at file=../Src/stk
11552: symbol=STk_init_hash; lookup in file=../Src/stk [ ELF ]
11552: symbol=STk_init_hash; lookup in file=/usr/openwin/lib/libX11.so.4 [ ELF ]
11552: symbol=STk_init_hash; lookup in file=/usr/lib/libnsl.so.1 [ ELF ]
11552: symbol=STk_init_hash; lookup in file=/usr/lib/libsocket.so.1 [ ELF ]
11552: symbol=STk_init_hash; lookup in file=/usr/lib/libdl.so.1 [ ELF ]
11552: symbol=STk_init_hash; lookup in file=/usr/lib/libm.so.1 [ ELF ]
11552: symbol=STk_init_hash; lookup in file=/usr/lib/libc.so.1 [ ELF ]
11552: symbol=STk_init_hash; lookup in file=/usr/openwin/lib/libXext.so.0 [ ELF ]
11552: symbol=STk_init_hash; lookup in file=/usr/lib/libw.so.1 [ ELF ]
11552: symbol=STk_init_hash; lookup in file=/usr/lib/libintl.so.1 [ ELF ]
11552: symbol=STk_init_hash; lookup in file=/usr/lib/libmp.so.1 [ ELF ]
11552:
11552: ld.so.1: ../Src/stk: fatal: dlsym: can't find symbol: STk_init_hash
11552:
11552: symbol=printf; lookup in file=../Src/stk [ ELF ]
11552: symbol=printf; lookup in file=/usr/openwin/lib/libX11.so.4 [ ELF ]
11552: symbol=printf; lookup in file=/usr/lib/libnsl.so.1 [ ELF ]
11552: symbol=printf; lookup in file=/usr/lib/libsocket.so.1 [ ELF ]
11552: symbol=printf; lookup in file=/usr/lib/libdl.so.1 [ ELF ]
11552: symbol=printf; lookup in file=/usr/lib/libm.so.1 [ ELF ]
11552: symbol=printf; lookup in file=/usr/lib/libc.so.1 [ ELF ]
11552: symbol=printf; lookup in file=/usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1 [ ELF ]
11552:
11552: symbol=STk_nil; dlsym() starting at file=../Src/stk
11552: symbol=STk_nil; lookup in file=../Src/stk [ ELF ]
11552: symbol=STk_nil; lookup in file=/usr/openwin/lib/libX11.so.4 [ ELF ]
11552: symbol=STk_nil; lookup in file=/usr/lib/libnsl.so.1 [ ELF ]
11552: symbol=STk_nil; lookup in file=/usr/lib/libsocket.so.1 [ ELF ]
11552: symbol=STk_nil; lookup in file=/usr/lib/libdl.so.1 [ ELF ]
11552: symbol=STk_nil; lookup in file=/usr/lib/libm.so.1 [ ELF ]
11552: symbol=STk_nil; lookup in file=/usr/lib/libc.so.1 [ ELF ]
11552: symbol=STk_nil; lookup in file=/usr/openwin/lib/libXext.so.0 [ ELF ]
11552: symbol=STk_nil; lookup in file=/usr/lib/libw.so.1 [ ELF ]
11552: symbol=STk_nil; lookup in file=/usr/lib/libintl.so.1 [ ELF ]
11552: symbol=STk_nil; lookup in file=/usr/lib/libmp.so.1 [ ELF ]
11552:
11552: ld.so.1: ../Src/stk: fatal: dlsym: can't find symbol: STk_nil
Using nm I can see STk_nil defines in stk:
91 nardis> nm stk | grep STk_nil
[2173] | 874496| 4|NOTY |GLOB |0 |17 |STk_nil
but dlsym cannot find it.
No being a dynamic loading expert perhaps someone can give me
suggestions.
Thanks,
Harold
Received on Tue Dec 10 1996 - 07:37:49 CET
This archive was generated by hypermail 2.3.0
: Mon Jul 21 2014 - 19:38:59 CEST