Re: (important) cyrus-imapd 2.4.16 released

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

>>>>> On Thu, 19 Apr 2012 13:19:32 +0100 (BST)
>>>>> Dennis Davis <D.H.Davis@xxxxxxxxxx> said:

D.H.Davis> Got the following error when compiling this on OpenBSD5.0:

D.H.Davis> util.c: In function 'dir_hash_c':
D.H.Davis> util.c:284: error: 'UINT32_MAX' undeclared (first use in this function)
D.H.Davis> util.c:284: error: (Each undeclared identifier is reported only once
D.H.Davis> util.c:284: error: for each function it appears in.)
D.H.Davis> *** Error code 1

D.H.Davis> Quickly fixed by applying the following patch:


D.H.Davis> --- lib/util.c.orig     Thu Apr 19 10:39:51 2012
D.H.Davis> +++ lib/util.c  Thu Apr 19 12:56:31 2012
D.H.Davis> @@ -62,6 +62,10 @@
D.H.Davis>  #include <sys/socket.h>
D.H.Davis>  #include <errno.h>
D.H.Davis>  
D.H.Davis> +#ifdef __OpenBSD__
D.H.Davis> +#include <stdint.h>
D.H.Davis> +#endif /* __OpenBSD__ */
D.H.Davis> +
D.H.Davis>  #include "exitcodes.h"
D.H.Davis>  #include "util.h"
D.H.Davis>  #include "xmalloc.h"

I met this issue on FreeBSD, too.  The patch should be following:

Index: lib/util.c
diff -u -p lib/util.c.orig lib/util.c
--- lib/util.c.orig	2012-04-18 20:28:37.000000000 +0900
+++ lib/util.c	2012-04-18 22:29:24.521844579 +0900
@@ -55,6 +55,9 @@
 #include <syslog.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@xxxxxxxxxxxx  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux