IMAP 2.1.0 Perl module compilation

2002-01-14 Thread Ilya Sedelnikov


Hi, 

There's no "cc" compiler on my Solaris 8 machine.
Did somebody succeed to compile the Perl module ( $BASE_DIR/perl/imapd )
using "gcc" ?
(  Makefile, created from /perl/imap/Makefile.PL uses "cc" as a default
compiler.
   I tries to substitute "gcc" for "cc" but there is an -KPIC option
that "gcc"
   does not recognize )

Ilya 





IMAPD 2.1.0 compilation with BerkeleyDB 4.0.14

2002-01-13 Thread Ilya Sedelnikov
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.