On Mon, Nov 18, Marc Sebastian Pelzer wrote:

> i successfully compiled cyrus-imapd 2.1.9 with SASL 2.1.9 and Berkeley
> DB 3.1.17 on a Sun Sparc 10 with SuSE 7.3 and 128MB RAM and get the
> following errors in /var/log/messages after starting the
> '/usr/cyrus/bin/master' process and try to test it via 'telnet
> prime 143'. Telnet opens the connection and then 'hangs' - no
> prompt from the imap-Server.
> 
> I read the mailinglist-archives, searched the SuSE Help-DB and read the
> FAQ's but didnt find anything that solves the problem. I only found
> questions from users with the same problem - but no answers.
> 
> Please help! :)

You need the attached patch for the bdb3.

-- 
With best regards,

Carsten Hoeger

SuSE, The Linux Experts, http://suse.com - http://unitedlinux.com
--- db-3.1.17/./lock/lock_region.c~     Tue May 30 04:31:14 2000
+++ db-3.1.17/./lock/lock_region.c      Tue Mar 19 14:22:14 2002
@@ -686,17 +686,17 @@
         * map one-to-one with the __db_shalloc calls in __lock_init.
         */
        retval = 0;
-       retval += ALIGN(sizeof(DB_LOCKREGION) + gb, 1);
-       retval += ALIGN(dbenv->lk_modes * dbenv->lk_modes + gb, 1);
-       retval += ALIGN(nelements * (sizeof(DB_HASHTAB) + gb), 1);
-       retval += ALIGN(nelements * (sizeof(DB_HASHTAB) + gb), 1);
+       retval += ALIGN(sizeof(DB_LOCKREGION) + gb, sizeof(db_align_t));
+       retval += ALIGN(dbenv->lk_modes * dbenv->lk_modes + gb, sizeof(db_align_t));
+       retval += ALIGN(nelements * (sizeof(DB_HASHTAB) + gb), sizeof(db_align_t));
+       retval += ALIGN(nelements * (sizeof(DB_HASHTAB) + gb), sizeof(db_align_t));
        for (i = 0; i < nlocks; ++i)
                retval +=
                    ALIGN(sizeof(struct __db_lock) + gb , MUTEX_ALIGN);
        for (i = 0; i < nlocks; ++i)
-               retval += ALIGN(sizeof(DB_LOCKOBJ) + gb , 1);
+               retval += ALIGN(sizeof(DB_LOCKOBJ) + gb , sizeof(db_align_t));
        for (i = 0; i < nlocks; ++i)
-               retval += ALIGN(sizeof(DB_LOCKER) + gb , 1);
+               retval += ALIGN(sizeof(DB_LOCKER) + gb , sizeof(db_align_t));
 
        /*
         * Aproximate the memory allocation overhead.  This breaks the

Attachment: msg09290/pgp00000.pgp
Description: PGP signature

Reply via email to