Ketil Kristiansen writes: 

> 
> I've built courier-imap for IRIX (6.5.15), using gcc 3.0.4 
> 
> After some initial problems getting it to use the right db library, it 
> built OK, but "make check" fails for tcpd. Running the test script 
> manually reveals which parts fail: 
> 
> [...]
> --./tlscachetest +000000000--
> ALERT: tlscache.c(687): corruption detected in test.dat
> ALERT: tlscache.c: : Error 0
> ALERT: tlscache.c: removing test.dat
> tls_cache_walk: Error 0

> 
> Any ideas? 
> 
> All the other tests seem to succeed.

This turns out to be an error in the test script itself.  The following 
patch will fix it. 

-- 
Sam 

Index: tcpd/tlscachetest.c
===================================================================
RCS file: /cvsroot/courier/libs/tcpd/tlscachetest.c,v
retrieving revision 1.1
diff -U3 -r1.1 tlscachetest.c
--- tcpd/tlscachetest.c 24 Jun 2002 03:45:08 -0000      1.1
+++ tcpd/tlscachetest.c 12 Jul 2002 15:09:29 -0000
@@ -3,7 +3,7 @@
 ** See COPYING for distribution information.
 */
 
-#define TLSCACHEMINSIZE 96
+#define TLSCACHEMINSIZE (sizeof(struct hdr) + 5 * (sizeof(struct obj)+8))
 #include "tlscache.c"
 
 static const char tlscachetest_rcsid[]="$Id: tlscachetest.c,v 1.1 2002/06/24 03:45:08 
mrsam Exp $";

Reply via email to