[elephant-devel] upgrade from 0.9 to 1.0

Frank Schorr franks-muc at web.de
Wed Jan 6 09:27:00 UTC 2010


Hi Ian,

thank you for your response.

I can exclude a stale fasl problem. 

This is my-config.sexp:
((:compiler . :cygwin)
 (:berkeley-db-version . "4.7")
 (:berkeley-db-include-dir . "C:/Programme/Oracle/Berkeley DB 4.7.25/include/")
 (:berkeley-db-lib-dir . "C:/Programme/Oracle/Berkeley DB 4.7.25/lib/")
 (:berkeley-db-lib . "C:/Programme/Oracle/Berkeley DB 4.7.25/bin/libdb47.dll")
 (:berkeley-db-deadlock . "C:/Programme/Oracle/Berkeley DB 4.7.25/bin/db_deadlock.exe")
 (: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))

I tried to install ele-bdb.
While memutil.dll is generated by asdf, libberkeley-db.dll is not.
I undestand that 4.7 is the current BDB version.

There is still a conflict in a definition of ssize_t with one of cygwin's include files (see http://thread.gmane.org/gmane.lisp.elephant.devel/271 ) 
This time I deleted the definition of ssize_t from BDB's db.h and db-bdb\libberkeley-db.c is compiled with

$ gcc -L'/cygdrive/C/Programme/Oracle/Berkeley DB 4.7.25/lib/' -I'/cygdrive/C/Programme/O
racle/Berkeley DB 4.7.25/include/' -llibdb47 -mno-cygwin -mwindows -Wall -c -std=c99 "c:\
lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.c"

Some warnings: 

c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.c: In function `lisp_compare2':
c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.c:1053: warning: unused variable
`i'
c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.c: In function `lisp_compare_key2
':
c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.c:1147: warning: unused variable
`i'
c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.c: In function `case_cmp':
c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.c:1306: warning: implicit declara
tion of function `_strnicmp'


$ dlltool -z "c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.def" --export-all-
symbols -e exports.o -l "c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.lib" "c
:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.o"

$ gcc -L'/cygdrive/C/Programme/Oracle/Berkeley DB 4.7.25/lib/' -I'/cygdrive/C/Programme/O
racle/Berkeley DB 4.7.25/include/' -llibdb47 -shared -mno-cygwin -mwindows -Wall "c:\lisp
\libraries\elephant-1.0\src\db-bdb\libberkeley-db.o" exports.o -o "c:\lisp\libraries\elep
hant-1.0\src\db-bdb\libberkeley-db.dll"

c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.o:libberkeley-db.c:(.text+0x2ba):
 undefined reference to `_db_env_create'
c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.o:libberkeley-db.c:(.text+0x2d7):
 undefined reference to `_db_strerror'
c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.o:libberkeley-db.c:(.text+0x489):
 undefined reference to `_db_create'
c:\lisp\libraries\elephant-1.0\src\db-bdb\libberkeley-db.o:libberkeley-db.c:(.text+0xe88):
 undefined reference to `_db_sequence_create'
collect2: ld returned 1 exit status

I hope this can help ?

Best regards,
Frank



> -----Ursprüngliche Nachricht-----
> Von: "Ian Eslick" <eslick at media.mit.edu>
> Gesendet: 03.01.10 23:36:54
> An: Elephant bugs and development <elephant-devel at common-lisp.net>
> Betreff: Re: [elephant-devel] upgrade from 0.9 to 1.0
> Priorität: Niedrig


> Hi Frank,
> 
> Have you tested with BDB?  I'm curious if it's a backend issue (the serialized byte-stream seems to be at fault; it's what's causing the condition to be asserted which itself fails).  
> 
> The other sanity check is to confirming no stale fasls and appropriate settings in my-config.sexp
> 
> I can probably take a look at this in depth this coming weekend, but I'm probably too busy this week.
> 
> Thank you,
> Ian
> 

___________________________________________________________
Preisknaller: WEB.DE DSL Flatrate für nur 16,99 Euro/mtl.! 
http://produkte.web.de/go/02/





More information about the elephant-devel mailing list