AFAIR I received similar problem reportd due to linking wrong db library.
In perl/imap library I had to put version of db library in BDB_LIB
enviroment variable when Makefile.PL was executed.
BDB_LIB=-ldb-4.0 perl Makefile.PL
Andrzej [en:Andrew] Adam Filip XXXX@XXXXX.COM XXXX@XXXXX.COM
*Random Epigram* :
When women kiss it always reminds one of prize fighters shaking hands.
-- H.L. Mencken, "Sententiae"