[cffi-devel] uffi-compat and clsql
clisp 2.35 / mingw, cffi-luis-051102-2042, clsql-3.3.3 [1]> (asdf:operate 'asdf:load-op :cffi-uffi-compat) ... 0 errors, 0 warnings NIL [2]> (asdf:operate 'asdf:load-op :clsql-odbc) ... ;; Loaded file C:\CL\lib\clsql\clsql.asd *** - component CLSQL-UFFI-SYSTEM::UFFI not found, required by #<SYSTEM "clsql-uffi" #x1A2B4949> The following restarts are available: ABORT :R1 ABORT Hmm... If copy cffi-uffi-compat.asd to uffi.asd and replace in it "cffi-uffi-compat" to "uffi": [4]> (asdf:operate 'asdf:load-op :clsql-odbc) ... ;; Loaded file C:\CL\lib\clsql\clsql.asd ; loading system definition from C:\CL\lib\cffi\uffi.asd into #<PACKAGE ASDF4287> ... ;; Compiling file C:\CL\lib\clsql\uffi\clsql-uffi-loader.lisp ... *** - READ from #<INPUT BUFFERED FILE-STREAM CHARACTER #P"C:\\CL\\lib\\clsql\\uffi\\clsql-uffi-loader.lisp" @29> : #<PACKAGE CFFI-UFFI-COMPAT> has no external symbol with name "FOREIGN-LIBRARY-TYPES" What is FOREIGN-LIBRARY-TYPES? Thanks!
On 3/nov/2005, at 13:06, Yaroslav Kavenchuk wrote:
*** - component CLSQL-UFFI-SYSTEM::UFFI not found, required by #<SYSTEM "clsql-uffi" #x1A2B4949> The following restarts are available: ABORT :R1 ABORT
Hmm... If copy cffi-uffi-compat.asd to uffi.asd and replace in it "cffi-uffi-compat" to "uffi":
An alternative is to change clsql's ASDF definition and make it depend on cffi-uffi-compat instead of uffi.
: #<PACKAGE CFFI-UFFI-COMPAT> has no external symbol with name "FOREIGN-LIBRARY-TYPES"
What is FOREIGN-LIBRARY-TYPES?
An undocumented UFFI feature. :-) It's in cffi-uffi-compat but I forgot to export it. Fixed that. Thu Nov 3 13:32:45 WET 2005 Luis Oliveira <loliveira@common-lisp.net> * Export foreign-library-types from cffi-uffi-compat (The fix is in cffi-luis-051103-1333.tar.gz) Thanks for the report! -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/ Equipa Portuguesa do Translation Project http://www.iro.umontreal.ca/translation/registry.cgi?team=pt
Luis Oliveira wrote:
Hmm... If copy cffi-uffi-compat.asd to uffi.asd and replace in it "cffi-uffi-compat" to "uffi":
An alternative is to change clsql's ASDF definition and make it depend on cffi-uffi-compat instead of uffi.
$ cat cffi/uffi.asd ;;;-*- Mode: Lisp; Package: COMMON-LISP-USER -*- (defpackage :asdf-uffi (:use #:asdf #:cl)) (in-package :asdf-uffi) (defsystem uffi :depends-on (:cffi-uffi-compat)) ;;; End file uffi.asd :) Thanks for your nice work! -- WBR, Yaroslav Kavenchuk.
On 3/nov/2005, at 15:17, Yaroslav Kavenchuk wrote:
$ cat cffi/uffi.asd ;;;-*- Mode: Lisp; Package: COMMON-LISP-USER -*-
(defpackage :asdf-uffi (:use #:asdf #:cl)) (in-package :asdf-uffi) (defsystem uffi :depends-on (:cffi-uffi-compat))
;;; End file uffi.asd
Ah, good suggestion. I need to add a section in the manual about uffi-compat. I'll mention this possibility then. -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/ Equipa Portuguesa do Translation Project http://www.iro.umontreal.ca/translation/registry.cgi?team=pt
participants (2)
-
Luis Oliveira
-
Yaroslav Kavenchuk