[elephant-devel] can't get started: open-store fails with "Invalid argument"

Ben ben at medianstrip.net
Sat Sep 25 01:17:55 UTC 2004


sorry i've been out of town.  also for some reason the elephant
mailing list rejected my last message.

that non-illuminating error (which Berkeley DB produces) indicates
that one of the arguments passed to berkeley makes it unhappy.
unfortunately as is common with C libraries, it doesn't tell you which
one.  what OS / DB package are you using?

the only way i know how to test this is to use the underlying
sleepycat function.  try opening a new environment directly using the
"db-env-open" function -- the code for "open-controller" in
"controller.lisp" should be easy to follow, but flip some of the
switches.  if i had to make a guess, perhaps your libdb was compiled
without thread support.  i'm assuming that you have a clean and
writable directory to work with.

i don't think any of the header constants have changed within the 4.2
release of berkeley db, but worse come to worse you might try
compiling berkeley db yourself.

sorry i can't be more help.  let me know what you find out -- it would
be important to know for me what common berkeley DB packages are like.

take care, B

On Fri, 24 Sep 2004, Zach Beane wrote:

> I downloaded UFFI 1.4.26 and Elephant 0.2. I changed the path to libdb
> to point to my /lib/libdb-4.2.so, which is part of the db4 package on
> my system.
>
> When I try (open-store "xach"), I get:
>
>   debugger invoked on a SLEEPYCAT:DB-ERROR in thread 22150:
>     Berkeley DB error: Invalid argument
>   restarts (invokable by number or by possibly-abbreviated name):
>     0: [ABORT   ] Abort handling SLIME request.
>     1:            Reduce debugger level (leaving debugger, returning to
> 		   toplevel).
>     2: [TOPLEVEL] Restart at toplevel READ/EVAL/PRINT loop.
>   ("varargs entry for SLEEPYCAT:DB-ENV-OPEN"
>    #<SB-ALIEN-INTERNALS:ALIEN-VALUE :SAP #X08276430 :TYPE (* T)>
>    "xach"
>    :JOINENV
>    NIL
>    :INIT-CDB
>    NIL
>    :INIT-LOCK
>    T
>    :INIT-LOG
>    T
>    :INIT-MPOOL
>    T
>    :INIT-REP
>    NIL
>    :INIT-TXN
>    T
>    :RECOVER
>    NIL
>    :RECOVER-FATAL
>    NIL
>    :CREATE
>    T
>    :LOCKDOWN
>    NIL
>    :PRIVATE
>    NIL
>    :SYSTEM-MEM
>    NIL
>    :THREAD
>    T
>    :MODE
>    416)
>   0]
>
> What should I do?
>
> Zach
>
> _______________________________________________
> elephant-devel site list
> elephant-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/elephant-devel
>




More information about the elephant-devel mailing list