I have a shared lib on IRIX called ./hi.so
When I do
(alien:load-foreign "./hi.so")
I get
; Loading #p"/staff/mbaily/working/test/test.lisp".
;;; Running /usr/bin/ld...
Error in function SYSTEM::LOAD-OBJECT-FILE:
Can't open object "/tmp/92273AG858": "92273:lisp: rld: Fatal Error: Cannot
Successfully map soname '/tmp/92273AG858' under any of the filenames /tmp/92273AG858 "
Restarts:
0: [CONTINUE] Return NIL from load of "test.lisp".
1: [ABORT ] Skip remaining initializations.
Debug (type H for help)
(SYSTEM::LOAD-OBJECT-FILE "/tmp/92273AG858")
Source: Error finding source:
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no longer exists:
target:code/foreign.lisp.
--------------------------------------------------------
If I do
(system::load-object-file "hi.so")
I Get (note it says can't oopen object under ./hi.so yet it is valid
it works fine in a plain C app with dlopen()
$ lisp -load test.lisp
; Loading #p"/staff/mbaily/working/test/test.lisp".
Error in function SYSTEM::LOAD-OBJECT-FILE:
Can't open object "hi.so": "92283:lisp: rld: Fatal Error: Cannot Successfully map
soname 'hi.so' under any of the filenames
./hi.so:/usr/lib/hi.so:/usr/lib/internal/hi.so:/lib/hi.so:/lib/cmplrs/cc/hi.so:/usr/lib/cmplrs/cc/hi.so:/opt/lib/hi.so:
"
Restarts:
0: [CONTINUE] Return NIL from load of "test.lisp".
1: [ABORT ] Skip remaining initializations.
Debug (type H for help)
(SYSTEM::LOAD-OBJECT-FILE "hi.so")
Source: Error finding source:
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no longer exists:
target:code/foreign.lisp.
0] (quit)