/* the location of <cinttypes> */
+#define __STDC_FORMAT_MACROS /* for PRIu64 */
#undef CINTTYPES_H
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
====8< cut here ============================================
Of course, http://en.wikipedia.org/wiki/Printf_format_string clearly states that PRIu64 is defined for ISO C99, and using it in C++ is IMHO incorrect. Is it worth filing a bug about this, or will this start a holy war? :-)
I'm working on building Gearman 0.29 on CentOS 5.7, and ran into similar problems.
I addressed the PRIu64 issue with the following:
====8< cut here ======= ======= ======= ======= ======= ======= ==
--- config.in.orig 2012-03-23 21:02:28.000000000 -0400 UNIVERSAL_ BUILD
+++ config.in 2012-03-23 21:03:01.000000000 -0400
@@ -14,6 +14,7 @@
#undef AC_APPLE_
/* the location of <cinttypes> */ FORMAT_ MACROS /* for PRIu64 */
+#define __STDC_
#undef CINTTYPES_H
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
====8< cut here ======= ======= ======= ======= ======= ======= ==
Of course, http:// en.wikipedia. org/wiki/ Printf_ format_ string clearly states that PRIu64 is defined for ISO C99, and using it in C++ is IMHO incorrect. Is it worth filing a bug about this, or will this start a holy war? :-)