Should this search LD_LIBRARY_PATH and the standard directories?
(ext:load-foreign "libpq.so")
The documentation says:
"If files is a simple-string, the file that it designates is loaded
using the platform's dlopen mechanism.
If it is a list of strings, the platform linker ld is invoked ..."
Man dlopen(3) says that LD_LIBRARY_PATH should be searched.
I just get a "File does not exist".
This is CMUCL 19a on Linux with a 2.4.22 kernel.
Regards,
Craig Ludington
P.S. Here's a transcript:
CMU Common Lisp 19a, running on headmistress
With core: /usr/bin/lisp.core
Dumped on: Wed, 2004-07-28 11:51:48-05:00 on lorien
See <http://www.cons.org/cmucl/> for support information.
Loaded subsystems:
Python 1.1, target Intel x86
CLOS based on Gerd's PCL 2004/04/14 03:32:47
* (ext:load-foreign "libpq.so")
;;; Running /usr/bin/ld...
File-error in function LOAD-FOREIGN: File does not exist: libpq.so.
[Condition of type KERNEL:SIMPLE-FILE-ERROR]
Restarts:
0: [ABORT] Return to Top-Level.
Debug (type H for help)
(LOAD-FOREIGN "libpq.so" :LIBRARIES ("-lc") :BASE-FILE ...)
Source: Error finding source:
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no
longer exists:
target:code/foreign.lisp.
0] 0
* (probe-file "/usr/lib/libpq.so")
#p"/usr/lib/libpq.so.3.0"
* (ext:load-foreign *)
;;; Opening shared library /usr/lib/libpq.so.3.0 ...
;;; Done.
NIL