From: Dean O'Connor <dean.oconnor@it...> - 2007-05-04 04:09:55
I am trying to load/compile cl-enumeration CL extension.
I actually went though all of this back on 11/11/2005 looking at (my
copy) of the archives (thread titled "Re: [Ecls-list] map iterator")
I have created a sub-directory under my ECL install directory called
"extensions" and unzipped the package files there.
Then I type this:
> (require 'defsystem)
;;; Loading #P"C:/ECL/DEFSYSTEM.fas"
;;; Loading #P"C:/ECL/cmp.fas"
;;; Loading #P"C:/ECL/sysfun.lsp"
> (mk:add-registry-location "c:/ecl/extensions")
("c:/ecl/extensions" "./" (MAKE::HOME-SUBDIRECTORY "lisp/systems/"))
;; This "hack" proposed by Juanjo to stop ECL (in Win32) thinking the
.system file is a binary (causing a Segmentation Fault).
> (push (cons "system" #'si::load-source) si::*load-hooks*)
(("system" . #<compiled-function LOAD-SOURCE>) ("asd" . LOAD-SOURCE)
("fas" . LOAD-BINARY) ("lsp" . LOAD-SOURCE) ("lisp" . LOAD-SOURCE)
("LSP" . LOAD-SOURCE) ("LISP" . LOAD-SOURCE) (NIL . LOAD-SOURCE))
CL-USER> (mk:load-system "enumerations")
; - Source file C:/ecl/extensions/enumerations/enumerations-pkg.lsp and
; binary file C:/ecl/extensions/enumerations/enumerations-pkg.so not
; found, not loading.
Source file "C:/ecl/extensions/enumerations/enumerations-pkg.lsp" and
binary file "C:/ecl/extensions/enumerations/enumerations-pkg.so" do not
[Condition of type SIMPLE-ERROR]
I got up to this same point last time, with no resolution (I think I
ended up creating my own ASD file in the end).
It would be really nice to have this working with having to go hacking
into extension packages.