Re: Doesn't compile on Solaris 9 - RE: Cyrus IMAPd 2.4.2 Released

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

 



Rosenbaum, Larry M. wrote:
> ### Making all in /usr/local/src/cyrus/cyrus-imapd-2.4.2/lib
> gmake[1]: Entering directory `/usr/local/src/cyrus/cyrus-imapd-2.4.2/lib'
> ...
> gcc -c -I..  -I/usr/local/ssl/include -I/include -I../com_err/et
> -I/usr/local/include -DHAVE_CONFIG_H  -g -O2  \ crc32.c
> In file included from crc32.c:5:
> crc32.h:8:20: stdint.h: No such file or directory
> gmake[1]: *** [crc32.o] Error 1
> 
> Running on Solaris 9 Sparc
> 

Could you tell me whether you have inttypes.h on the Solaris 9 system?

If that turns out to be the case, could you try compiling with the attached 
patch applied and let me know how that works out for you? Don't forget to 
remove sys/stdint.h ;-)

Kind regards,

-- 
Jeroen van Meeuwen
Senior Engineer, Kolab Systems AG

e: vanmeeuwen@xxxxxxxxxxxx
t: +316 42 801 403
w: http://www.kolabsys.com

pgp: 9342 BF08
diff --git a/lib/crc32.h b/lib/crc32.h
index 9047733..6ac837d 100644
--- a/lib/crc32.h
+++ b/lib/crc32.h
@@ -5,7 +5,11 @@
 #define CRC32_H
 #include "util.h"
 #include <sys/uio.h>
-#include <stdint.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#else
+# include <inttypes.h>
+#endif
 
 uint32_t crc32_map(const char *base, unsigned len);
 uint32_t crc32_buf(struct buf *buf);
----
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