Title: IMAPD 2.1.0 compilation with BerkeleyDB 4.0.14

Hi,

  when trying to compile IMAPD-2.1.0-BETA with cyrus-sasl-2.0.5-BETA and BerkeleyDB 4.0.14 installed

  on Solaris 8,

  I get following error:

  cyrusdb_db3.c: In function `init'

  cyrusdb_db3.c:151: too many arguments to function

  Corresponding lines in cyrusdb_db3.c are

#if DB_VERSION_MINOR > 0

    r = dbenv->open(dbenv, dbdir, flags, 0644);

#else

    r = dbenv->open(dbenv, dbdir, NULL, flags, 0644);

#endif

 

   Definition of type DB_ERR, found in include file "db.h" created when installing BerkeleyDB 4.0.14 and

   used by "cyrusdb_db3.c" includes declaration of function "open":

   int  (*open) __P((DB_ENV *, const char *, u_int32_t, int));

       

   Note that this function has 4 parameters.

  Also, "db.h"  contains following definition

 # define DB_VERSION_MINOR 0

 So, reason for the error message I get when trying to compile "cyrusdb_db3.c" is clear.

 Did anyone have similar problem ?

 Does anybody know how to solve the problem ?

 

 Regards,

Ilya Sedelnikov

P.S.

 

 


       

  

  

Reply via email to