Quoth "Leslie P. Polzer" <s...@viridian-project.de>:
> This passage is terribly outdated. Use BDB 4.7.

Well I'll update the passage when I submit my patch.

In the mean time, it'd be nice to get elephant working on my Mac (I bet it's
fine under Debian).

I've installed MacPort's db47 but am getting the same error as before:

 ; $ gcc -L/opt/local/lib/db47/ -I/opt/local/include/db47/ -bundle -arch x86_64 
-fPIC -Wall -g -O2 -g
 /Users/admin/cl/clbuild/source\ /elephant/src/db-bdb/libberkeley-db.c -o 
/Users/admin/cl/clbuild/source/elephant/src/db-bdb/libberkeley-db.dylib -lm 
-ldb-4.7
 /Users/admin/cl/clbuild/source/elephant/src/db-bdb/libberkeley-db.c: In 
function ‘lisp_compare2’:
 /Users/admin/cl/clbuild/source/elephant/src/db-bdb/libberkeley-db.c:1061: 
warning: unused variable ‘i’
 /Users/admin/cl/clbuild/source/elephant/src/db-bdb/libberkeley-db.c: In 
function ‘lisp_compare_key2’:
 /Users/admin/cl/clbuild/source/elephant/src/db-bdb/libberkeley-db.c:1155: 
warning: unused variable ‘i’
 ld warning: in /opt/local/lib/db47//libdb-4.7.dylib, file is not of required 
architecture
 Undefined symbols:                                   
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   "_db_env_create", referenced from:
       _db_env_cr in ccmOlpXz.o
   "_db_strerror", referenced from:
       _db_strerr in ccmOlpXz.o
   "_db_create", referenced from:
       _db_cr in ccmOlpXz.o
   "_db_sequence_create", referenced from:
       _db_sequence_create2 in ccmOlpXz.o
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 erred while invoking #<COMPILE-OP NIL {1004908A01}> on
 #<BDB-C-SOURCE "libberkeley-db" {10048FAC41}>
    [Condition of type ASDF:OPERATION-ERROR]

my-config.sexp now reads:

 ((:compiler . :gcc)
  (:berkeley-db-version . "4.5")
  (:berkeley-db-include-dir . "/opt/local/include/db47/")
  (:berkeley-db-lib-dir . "/opt/local/lib/db47/")
  (:berkeley-db-lib . "/opt/local/lib/db47/libdb-4.7.dylib")
  (:berkeley-db-deadlock . "/opt/local/bin/db47_deadlock")
  (:berkeley-db-cachesize . 20971520)
  (:berkeley-db-max-locks . 2000)
  (:berkeley-db-max-objects . 2000)
  (:berkeley-db-map-degree2 . t)
  (:berkeley-db-mvcc . nil)
  (:clsql-lib-paths . nil)
  (:prebuilt-libraries . nil))

The commands the lead to the fail:

 (defconstant +store+
   '(:BDB #p"/Users/admin/cl/my/test/store/")) ;dir created in advnace
 (open-store +store+) ;this fails

Any help very much appreciated.

Seb
--
Emacs' AlsaPlayer - Music Without Jolts
Lightweight, full-featured and mindful of your idyllic happiness.
http://home.gna.org/eap


_______________________________________________
elephant-devel site list
elephant-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel

Reply via email to