[dovecot] Re: Using on AIX

Adam Lackorzynski adam at os.inf.tu-dresden.de
Mon Apr 21 23:57:34 EEST 2003


On Mon Apr 21, 2003 at 23:02:13 +0300, Timo Sirainen wrote:
> Hmm.. This is quite likely because struct mail_index_data_record_header
> isn't padded to take 8 bytes with 32bit off_t. Has all systems until now
> really had 64bit off_t? This should fix it:
>
> +       time_t filler;

Now, the error message is different:

imap(xxx): Apr 21 20:42:14 Error: Corrupted index data file .../Mail/.imap/INBOX/.imap.index.data: Invalid location field for record 1
imap(xxx): Apr 21 20:42:14 Error: Corrupted index data file .../Mail/.imap/INBOX/.imap.index.data: Invalid location field for record 1
dovecot: Apr 21 20:42:14 Error: child 73232 (imap) killed with signal 11

I deleted the .imap dir before connecting and the mbox file is empty in
this case here.

If the mbox contains some mails (7 in this case), I'm getting this
(.imap dir also didn't exist before):

imap(xxx): Apr 21 20:52:52 Error: Corrupted index data file .../Mail/test/.imap/box2/.imap.index.data: Invalid location field for record 7



That's what I have for now. The AC_AIX is probably not needed...

diff -ur dovecot-0.99.9-test6.orig/configure.in dovecot-0.99.9-test6/configure.in
--- dovecot-0.99.9-test6.orig/configure.in	Mon Apr 21 17:54:11 2003
+++ dovecot-0.99.9-test6/configure.in	Mon Apr 21 22:06:09 2003
@@ -5,6 +5,7 @@
 
 AM_MAINTAINER_MODE
 
+AC_AIX
 AC_ISC_POSIX
 AC_PROG_CC
 AC_PROG_CPP
diff -ur dovecot-0.99.9-test6.orig/src/auth/mycrypt.c dovecot-0.99.9-test6/src/auth/mycrypt.c
--- dovecot-0.99.9-test6.orig/src/auth/mycrypt.c	Tue Nov 26 19:39:57 2002
+++ dovecot-0.99.9-test6/src/auth/mycrypt.c	Mon Apr 21 22:15:16 2003
@@ -1,5 +1,5 @@
 #define _XOPEN_SOURCE 4
-#define _XOPEN_SOURCE_EXTENDED
+#define _XOPEN_SOURCE_EXTENDED 1
 #define _XOPEN_VERSION 4
 #define _XPG4_2
 #include <unistd.h>
diff -ur dovecot-0.99.9-test6.orig/src/lib/fdpass.c dovecot-0.99.9-test6/src/lib/fdpass.c
--- dovecot-0.99.9-test6.orig/src/lib/fdpass.c	Wed Apr  9 00:58:30 2003
+++ dovecot-0.99.9-test6/src/lib/fdpass.c	Mon Apr 21 22:20:28 2003
@@ -32,7 +32,9 @@
 */
 
 #define _XPG4_2
-#define _XOPEN_SOURCE_EXTENDED /* for Tru64 */
+#ifndef _AIX
+#  define _XOPEN_SOURCE_EXTENDED /* for Tru64, breaks AIX */
+#endif
 
 #include "lib.h"
 #include "fdpass.h"
diff -ur dovecot-0.99.9-test6.orig/src/lib-index/mail-index.h dovecot-0.99.9-test6/src/lib-index/mail-index.h
--- dovecot-0.99.9-test6.orig/src/lib-index/mail-index.h	Mon Apr 21 17:45:52 2003
+++ dovecot-0.99.9-test6/src/lib-index/mail-index.h	Mon Apr 21 22:40:04 2003
@@ -167,6 +167,7 @@
 	unsigned int data_size; /* including this header */
 
 	time_t internal_date;
+	time_t filler;
 	uoff_t virtual_size;
 
 	uoff_t header_size;


Adam
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/



More information about the dovecot mailing list