hi! I tried to use the FAQ [1] with the latest SBCL, BDB and Elephant, but open-store fails on Berkeley databases. I did recompile BerkeleyDB 4.7 after applying the patches advised but the magic line for setting the architecture failed:
This line from the FAQ: CCFLAGS="-arch x86_64" LDFLAGS="-arch x86_64" ../dist/configure Threw this error: configure: error: C compiler cannot create executables I looked up "man cc" but the "-arch" option is only documented to work under Darwin. uname -a returns: Linux chaar 2.6.31-9-rt #152-Ubuntu SMP PREEMPT RT Thu Oct 15 13:22:24 UTC 2009 x86_64 GNU/Linux So I am using Ubuntu Karmic Koala with amd64 architecture and a preemptive kernel. My guess is that the compilation was OK and there is another problem. Should I create something like a database before I try open-store or it is enough to have an open and writable directory? [1] http://common-lisp.net/project/elephant/faq10a2.html ----8k----{cut here}----8k---- Berkeley DB error: Invalid argument [Condition of type BDB-DB-ERROR] Restarts: 0: [RETRY] Retry SLIME interactive evaluation request. 1: [ABORT] Return to SLIME's top level. 2: [TERMINATE-THREAD] Terminate this thread (#<THREAD "worker" RUNNING {1003EA0441}>) Backtrace: 0: (DB-BDB::DB-ENV-SET-FLAGS #<unavailable argument> #<unavailable argument>)[:EXTERNAL] 1: ((SB-PCL::FAST-METHOD ELEPHANT::OPEN-CONTROLLER (DB-BDB::BDB-STORE-CONTROLLER)) #<unavailable lambda list>)[:EXTERNAL] 2: (OPEN-STORE (:BDB "/home/mxs/dev/stratobe2/db"))[:EXTERNAL] 3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (OPEN-STORE '(:BDB "/home/mxs/dev/stratobe2/db")) #<NULL-LEXENV>) 4: ((LAMBDA ())) ----8k----{cut here}----8k---- -- maxigas | kiberpunk Exploit code not people! New PGP key: http://maxigas.hu/maxigas.gpg Fingerprint: EE2E D824 B5C3 4544 C2B8 B75F 2183 52B5 8EC1 57C1 _______________________________________________ elephant-devel site list elephant-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/elephant-devel