[elephant-devel] Class Heirarchies and Queries

Elliott Slaughter elliottslaughter at gmail.com
Wed Sep 17 22:30:22 UTC 2008


On Wed, Sep 17, 2008 at 1:31 AM, Leslie P. Polzer
<sky at viridian-project.de>wrote:

>
> > Error opening shared object "c:\\Program
> > Files\\asdf\\elephant-unstable\\src\\memutil\\libmemutil.dll":
> >   5.
> >    [Condition of type SIMPLE-ERROR]
> >
> > Can anyone who works regularly with Windows give me advice on compiling
> > these dependencies? Thanks.
>
> I don't, but got a backtrace?
>

Actually, that was just because I didn't know how to compile a dll properly.
With the help of the "cygwin compile script" comment in elephant.asd, I
think I have compiled the dlls properly now. (At least they work properly
with Allegro CL now.)

But in SBCL/win32 I still get an error when attempting to load using my
manually compiled libberkeley-db.dll.

* (asdf:oos 'asdf:load-op :elephant)
...
* (asdf:oos 'asdf:load-op :ele-bdb)
...
Loading C:/Program Files/Oracle/Berkeley DB 4.5.20/bin/libdb45.dll
Attempting to load libberkeley-db.dll...
Loaded C:\Program Files\asdf\elephant-unstable\libberkeley-db.dll

debugger invoked on a UNDEFINED-ALIEN-ERROR:
  Undefined alien: "db_env_get_max_objects"

Restarts:
 0: [RETRY] Retry performing #<ASDF:LOAD-OP NIL {B5EF2E1}> on
#<ASDF:CL-SOURCE-FILE "berkeley-db" {B4A5539}>.
 1: [ACCEPT] Continue, treating #<ASDF:LOAD-OP NIL {B5EF2E1}> on
#<ASDF:CL-SOURCE-FILE "berkeley-db" {B4A5539}> as having been successful.
 2: [ABORT] Return to SLIME's top level.
 3: [CLOSE-CONNECTION] Close SLIME connection
 4: [ABORT] Exit debugger, returning to top level.

Backtrace:
  0: (SB-SYS:ENSURE-DYNAMIC-FOREIGN-SYMBOL-ADDRESS "db_env_get_max_objects"
#<unused argument>)
  1: (SB-IMPL::LINK-FOREIGN-SYMBOL "db_env_get_max_objects" NIL)
  2: ((FLET SB-THREAD::WITH-RECURSIVE-SPINLOCK-THUNK))
  3: (SB-IMPL::ENSURE-FOREIGN-SYMBOL-LINKAGE "db_env_get_max_objects" NIL)
  4: (SB-SYS:FOREIGN-SYMBOL-ADDRESS "db_env_get_max_objects" NIL)
  5: (SB-FASL::FOP-FOREIGN-FIXUP)
  6: (SB-FASL::LOAD-FASL-GROUP #<SB-SYS:FD-STREAM for "file c:\\Program
Files\\asdf\\elephant-unstable\\src\\db-bdb\\berkeley-db.fasl" {B895E49}>)
  7: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK))
  8: (SB-FASL::LOAD-AS-FASL #<SB-SYS:FD-STREAM for "file c:\\Program
Files\\asdf\\elephant-unstable\\src\\db-bdb\\berkeley-db.fasl" {B895E49}>
NIL #<unavailable argument>)
  9: (SB-FASL::%LOAD #<SB-SYS:FD-STREAM for "file c:\\Program
Files\\asdf\\elephant-unstable\\src\\db-bdb\\berkeley-db.fasl" {B895E49}>)
 10: (SB-FASL::%LOAD #P"c:\\Program
Files\\asdf\\elephant-unstable\\src\\db-bdb\\berkeley-db.fasl")
 11: (LOAD #P"c:\\Program
Files\\asdf\\elephant-unstable\\src\\db-bdb\\berkeley-db.fasl")
 12: ((SB-PCL::FAST-METHOD ASDF:PERFORM (ASDF:LOAD-OP ASDF:CL-SOURCE-FILE))
#<unavailable argument> #<unavailable argument> #<ASDF:LOAD-OP NIL
{B5EF2E1}> #<ASDF:CL-SOURCE-FILE "berkeley-db" {B4A5539}>)
 13: ((LAMBDA (SB-PCL::.PV. SB-PCL::.NEXT-METHOD-CALL. SB-PCL::.ARG0.
SB-PCL::.ARG1.)) #<unavailable argument> #<unavailable argument>
#<ASDF:LOAD-OP NIL {B5EF2E1}> #<ASDF:CL-SOURCE-FILE "berkeley-db"
{B4A5539}>)
 14: ((LAMBDA NIL))
 15: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK))
 16: (SB-C::%WITH-COMPILATION-UNIT #<CLOSURE (LAMBDA NIL) {B6FA9FD}>)
 17: (ASDF:OPERATE ASDF:LOAD-OP :ELE-BDB)
 18: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ASDF:OOS (QUOTE ASDF:LOAD-OP) :ELE-BDB)
#<NULL-LEXENV>)
 19: (SWANK::EVAL-REGION "(asdf:oos 'asdf:load-op :ele-bdb)
     ")
 20: ((LAMBDA NIL))
 21: (SWANK::TRACK-PACKAGE #<CLOSURE (LAMBDA NIL) {A9FD8AD}>)
 22: (SWANK::CALL-WITH-BUFFER-SYNTAX #<CLOSURE (LAMBDA NIL) {A9FD895}>)
 23: (SWANK::REPL-EVAL "(asdf:oos 'asdf:load-op :ele-bdb)
     ")
 24: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:LISTENER-EVAL "(asdf:oos
'asdf:load-op :ele-bdb)
     ") #<NULL-LEXENV>)
 25: ((LAMBDA NIL))
 26: ((LAMBDA (SWANK-BACKEND::HOOK SWANK-BACKEND::FUN)) #<FUNCTION
SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA NIL) {A9FD4BD}>)
 27: ((LAMBDA NIL))
 28: ((LAMBDA (SWANK-BACKEND::HOOK SWANK-BACKEND::FUN)) #<FUNCTION
SWANK:SWANK-DEBUGGER-HOOK> #<FUNCTION (LAMBDA NIL) {AF2984D}>)
 29: (SWANK::CALL-WITH-REDIRECTED-IO #<SWANK::CONNECTION {B14DBE9}>
#<CLOSURE (LAMBDA NIL) {A9FC10D}>)
 30: (SWANK::CALL-WITH-CONNECTION #<SWANK::CONNECTION {B14DBE9}> #<FUNCTION
(LAMBDA NIL) {AF2984D}>)
 31: (SWANK::HANDLE-REQUEST #<SWANK::CONNECTION {B14DBE9}>)
 32: (SWANK::SIMPLE-SERVE-REQUESTS #<SWANK::CONNECTION {B14DBE9}>)
 33: (SWANK::SERVE-CONNECTION #<SB-BSD-SOCKETS:INET-SOCKET descriptor -1
{B0C4C01}> NIL NIL :ISO-8859-1)
 34: (SWANK::SETUP-SERVER 0 #<CLOSURE (LAMBDA (SWANK::PORT)) {B048BDD}> NIL
NIL :ISO-8859-1)
 35: (SB-INT:SIMPLE-EVAL-IN-LEXENV (FUNCALL (READ-FROM-STRING
"swank:start-server") "c:/DOCUME~1/ELLIOT~1/LOCALS~1/Temp/slime.2152"
:CODING-SYSTEM "iso-latin-1-unix") #<NULL-LEXENV>)
 36: (SB-INT:SIMPLE-EVAL-IN-LEXENV (PROGN (LOAD "c:/Program
Files/Emacs/slime/swank-loader.lisp" :VERBOSE T) (FUNCALL (READ-FROM-STRING
"swank-loader:init")) (FUNCALL (READ-FROM-STRING "swank:start-server")
"c:/DOCUME~1/ELLIOT~1/LOCALS~1/Temp/slime.2152" :CODING-SYSTEM
"iso-latin-1-unix")) #<NULL-LEXENV>)
 37: (INTERACTIVE-EVAL (PROGN (LOAD "c:/Program
Files/Emacs/slime/swank-loader.lisp" :VERBOSE T) (FUNCALL (READ-FROM-STRING
"swank-loader:init")) (FUNCALL (READ-FROM-STRING "swank:start-server")
"c:/DOCUME~1/ELLIOT~1/LOCALS~1/Temp/slime.2152" :CODING-SYSTEM
"iso-latin-1-unix")))
 38: (SB-IMPL::REPL-FUN NIL)
 39: (SB-IMPL::REPL-FUN NIL)
 40: ((LAMBDA NIL))
 41: ((LAMBDA NIL))
 42: (SB-IMPL::%WITH-REBOUND-IO-SYNTAX #<CLOSURE (LAMBDA NIL) {AC76DD5}>)
 43: (SB-IMPL::TOPLEVEL-REPL NIL)
 44: (SB-IMPL::TOPLEVEL-INIT)
 45: ((LABELS SB-IMPL::RESTART-LISP))
 46: ("foreign function: #x411365")
 47: ("foreign function: #x40A152")


-- 
Elliott Slaughter

"Any road followed precisely to its end leads precisely nowhere." - Frank
Herbert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/elephant-devel/attachments/20080917/f1a0d378/attachment.html>


More information about the elephant-devel mailing list