Re: How CLSQL finds and loads foreign libraries

Kevin Rosenberg <kevin-HJRc7zDS/[email protected]>
Newsgroups gmane.lisp.clsql.devel
Message-ID <[email protected]>
Edi Weitz wrote:
> [...]
> Now, suppose we have PostgreSQL's libpq installed in a standard
> location, like in /usr/lib/libpq.so on Linux/Unix or in
> C:\WINDOWS\system32\libpq.dll on Windows.  The following operators
> will find and load the library if /only/ the string "libpq.so" (or
> "libpq.dll") is provided:
> [...]
>   CMUCL:      SYS::LOAD-OBJECT-FILE

Are you sure this works for CMUCL? An test case illustrating
http://bugs.debian.org/317097

kevin@tiger:~> ls -l /usr/lib/libz.so
0 lrwxrwxrwx  1 root root 9 2005-07-06 06:01 /usr/lib/libz.so -> libz.so.1
kevin@tiger:~> lisp
CMU Common Lisp CVS 19b 19b-release-20050628-3 + minimal debian patches (19B), running on tiger
[...]
* (sys::load-object-file "libz.so")

File-error in function TRUENAME:  The file "libz.so" does not exist.
   [Condition of type KERNEL:SIMPLE-FILE-ERROR]

For now, I've worked around this by adding a /usr/lib/ to the search
path in /etc/clsql-init.lisp.

Kevin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.