From: Dmitry Gorbatovsky
Subject: Elephant installation
Date: 
Message-ID: <e4vrba$j1v$1@emma.aioe.org>
Hello everybody,
please maybe someone have an experience
with Elephant(berkeley db) on SBCL and
Debian testing.
I get a lot of fatal errors while compiling
Elephant from source and can't find asdf or debian package.

Thanks ,
dmitry

-- 
Ignorance more frequently begets confidence 
than does knowledge.
    -- Charles Darwin

From: Bill Atkins
Subject: Re: Elephant installation
Date: 
Message-ID: <87psi4wice.fsf@rpi.edu>
Dmitry Gorbatovsky <········@yahoo.com> writes:

> Hello everybody,
> please maybe someone have an experience
> with Elephant(berkeley db) on SBCL and
> Debian testing.
> I get a lot of fatal errors while compiling
> Elephant from source and can't find asdf or debian package.
>

What can we do about it without the text of the errors you're getting?

-- 
You fool! You fell victim to one of the classic blunders! The most
famous is, "Never get involved in a land war in Asia", but only
slightly less well-known is this: "Never go in against a Sicilian when
death is on the line"!
From: Dmitry Gorbatovsky
Subject: Re: Elephant installation
Date: 
Message-ID: <e500vi$5es$1@emma.aioe.org>
Bill Atkins wrote:

> Dmitry Gorbatovsky <········@yahoo.com> writes:
> 
>> Hello everybody,
>> please maybe someone have an experience
>> with Elephant(berkeley db) on SBCL and
>> Debian testing.
>> I get a lot of fatal errors while compiling
>> Elephant from source and can't find asdf or debian package.
>>
> 
> What can we do about it without the text of the errors you're getting?
> 
I did not meant to get such deep into it.
But as requested:
1.I download version 0.5 from http://common-lisp.net/project/elephant/

2.It makes compiled without errors in ~/elephant

3.I copied ~/elephant to /usr/share/common-lisp/source/elephant 

4.Make link from /usr/share/common-lisp/source/elephant/     
to /usr/share/common-lisp/systems/ for elephant.asd elephant-bdb.asd
elephant-test.asd

5.Then with slime-repl sbcl:

cl-user> (asdf:operate 'asdf:load-op :elephant)
=>...
=>Nil
cl-user> (asdf:operate 'asdf:load-op :ele-bdb)
=>; loading system definition from
=>; /usr/share/common-lisp/systems/ele-bdb.asd into #<PACKAGE "ASDF1090">
=>; registering #<SYSTEM ELE-BDB {AF711B9}> as ELE-BDB

sldb:
end of file on #<SB-SYS:FD-STREAM
for "file /var/cache/common-lisp-controller/1000/sbcl/elephant/src/bdb-enable.fasl"
{B0494C1}>
   [Condition of type END-OF-FILE]

Restarts:
  0: [RETRY] Retry performing #<ASDF:LOAD-OP NIL {ADB7C81}> on
#<ASDF:CL-SOURCE-FILE "bdb-enable" {AF88249}>.
  1: [ACCEPT] Continue, treating #<ASDF:LOAD-OP NIL {ADB7C81}> on
#<ASDF:CL-SOURCE-FILE "bdb-enable" {AF88249}> as having been successful.
  2: [ABORT-REQUEST] Abort handling SLIME request.
  3: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread"
{B22DCC1}>)

6. I choose 1: accept/continue
7.Then:
CL-USER> (use-package "ELE")
T
CL-USER> (open-store "~/testdb")

sldb:
Attempt to call an undefined alien function.
   [Condition of type SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR]

Restarts:
  0: [ABORT-REQUEST] Abort handling SLIME request.
  1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread"
{B22DCC1}>)

Backtrace:
  0: (SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR)
  1: ("foreign function: call_into_lisp")
  2: ("foreign function: funcall0")
  3: ("foreign function: undefined_alien_function")
  4: (SLEEPYCAT::%DB-ENV-CREATE 0)
  5: (SLEEPYCAT:DB-ENV-CREATE)
  6: ((SB-PCL::FAST-METHOD OPEN-CONTROLLER (BDB-STORE-CONTROLLER)) (#(NIL
1) . #()) #<unavailable argument> #<BDB-STORE-CONTROLLER {B141079}>
(:RECOVER NIL :RECOVER-FATAL NIL :THREAD T))
  7: (ELEPHANT::GET-CONTROLLER "~/testdb")
  8: (OPEN-STORE "~/testdb" :RECOVER NIL :RECOVER-FATAL NIL :THREAD T)
  9: (SB-INT:EVAL-IN-LEXENV (OPEN-STORE "~/testdb") #<NULL-LEXENV>)
 10: (SWANK::EVAL-REGION "(open-store \"~/testdb\")
" T)
 11: ((LAMBDA NIL))
 12: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-SYNTAX-HOOKS (T))
#<unused argument> #<unused argument> #<CLOSURE (LAMBDA NIL) {B140D05}>)
 13: (SWANK::CALL-WITH-BUFFER-SYNTAX #<CLOSURE (LAMBDA NIL) {B140D05}>)
 14: (SB-INT:EVAL-IN-LEXENV (SWANK:LISTENER-EVAL "(open-store \"~/testdb\")
") #<NULL-LEXENV>)
 15: ((LAMBDA NIL))
 16: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T))
#<unused argument> #<unused argument> #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK>
#<CLOSURE (LAMBDA NIL) {B140675}>)
 17: ((LAMBDA NIL))
 18: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T))
#<unused argument> #<unused argument> #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK>
#<FUNCTION (LAMBDA NIL) {AA9F985}>)
 19: (SWANK::CALL-WITH-REDIRECTED-IO #<SWANK::CONNECTION {B0AF7F1}>
#<CLOSURE (LAMBDA NIL) {B140525}>)
 20: (SWANK::CALL-WITH-CONNECTION #<SWANK::CONNECTION {B0AF7F1}> #<FUNCTION
(LAMBDA NIL) {AA9F985}>)
 21: (SWANK::HANDLE-REQUEST #<SWANK::CONNECTION {B0AF7F1}>)
 22: ((LAMBDA NIL))
 23: ((LAMBDA NIL))
 24: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T))
#<unused argument> #<unused argument> #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK>
#<CLOSURE (LAMBDA NIL) {B2470B5}>)
 25: (SWANK::CALL-WITH-REDIRECTED-IO #<SWANK::CONNECTION {B0AF7F1}>
#<CLOSURE (LAMBDA NIL) {B2470C5}>)
 26: (SWANK::CALL-WITH-CONNECTION #<SWANK::CONNECTION {B0AF7F1}> #<CLOSURE
(LAMBDA NIL) {B2470B5}>)
 27: (SWANK::CALL-WITH-BINDINGS NIL #<CLOSURE (LAMBDA NIL) {B247095}>)
 28: ((LAMBDA NIL))
 29: ("foreign function: call_into_lisp")
 30: ("foreign function: funcall0")
 31: ("foreign function: new_thread_trampoline")
 32: ("foreign function: #xB7FBEE60")

Thats all there is to it.
I can't go any forther from this point.
Sorry for such long file.

Thank you,
dmitry

-- 
Ignorance more frequently begets confidence than does knowledge.
        -- Charles Darwin
From: John Thingstad
Subject: Re: Elephant installation
Date: 
Message-ID: <op.s91l2abkpqzri1@pandora.upc.no>
On Tue, 23 May 2006 22:33:49 +0200, Dmitry Gorbatovsky  
<········@yahoo.com> wrote:

> Hello everybody,
> please maybe someone have an experience
> with Elephant(berkeley db) on SBCL and
> Debian testing.
> I get a lot of fatal errors while compiling
> Elephant from source and can't find asdf or debian package.
>
> Thanks ,
> dmitry
>

hrm.. Are you aware that mysql has a berkleyDB kernel option?

(mysql 5.0 is worth looking into anyhow. There are some major improvements  
there.
Transaction control (Olap) is default. It has stored procedures,
triggers, views, kernel option for distributed databases, etc.)

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
From: Dmitry Gorbatovsky
Subject: Re: Elephant installation
Date: 
Message-ID: <e52hac$h3u$1@emma.aioe.org>
John Thingstad wrote:

> hrm.. Are you aware that mysql has a berkleyDB kernel option?
> 
> (mysql 5.0 is worth looking into anyhow. There are some major improvements
> there.
> Transaction control (Olap) is default. It has stored procedures,
> triggers, views, kernel option for distributed databases, etc.)
> 
Maybe you right ...
Iam going to rethink 
cheers
Dmitry

-- 
?If we knew what it was we were doing, it would not be called research,
would it??
        --Albert Einstein