CMUCL 19d

Tim Howe <[email protected]> Sun, 01 Apr 2007 07:43:40 -0400
Newsgroups gmane.lisp.clsql.devel
Organization quadium.net
Message-ID <[email protected]>
I, like others, have encountered problems loading CLSQL on CMUCL 19d.
In my case the call which triggered the problems is:

   * (asdf:oos 'asdf:load-op :clsql-postgresql)

   Undefined foreign symbol: "atol64"
      [Condition of type KERNEL:SIMPLE-PROGRAM-ERROR]

I am able to circumvent the problem as follows:

   * (alien:load-foreign
      #p"/home/vsync/devel/vendor/clsql-3.8.2/uffi/clsql_uffi.so")
     ; I assume the above requires the file to have been generated by
     ; the failed LOAD-OP
   * (asdf:oos 'asdf:load-op :clsql-postgresql)
   ; Compilation unit finished.
   ;   2 notes

   NIL
   * 

It seems that the problem lies in uffi/src/libraries.lisp:

   #+cmu
   (let ((type (pathname-type (parse-namestring filename))))
     (if (string-equal type "so")
         (sys::load-object-file filename)
         (alien:load-foreign filename
                             :libraries
                             (convert-supporting-libraries-to-string
                              supporting-libraries))))

I wonder if the issue can be resolved by removing the IF and simply
replacing it with the else-form.  However at a quick glance at the CMUCL
changelog I wasn't able to determine whether this was deliberately
changed between 19c and 19d.  So I leave further exploration to you.

-- 
vsync
http://quadium.net/~vsync/

Every answer asks a more beautiful question.
        -- http://www.cyberciti.biz/faq/