fatal error: 'cinttypes' file not found

Bug #1358084 reported by Ryan Schmidt on 2014-08-18
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Gearman
Undecided
Unassigned

Bug Description

gearmand 1.1.12 does not build on OS X 10.6, 10.7, 10.8:

In file included from libgearman/check.cc:40:
In file included from ./libgearman/common.h:50:
./libgearman-1.0/gearman.h:53:12: fatal error: 'cinttypes' file not found
# include <cinttypes>
           ^
1 error generated.

It does build on OS X 10.9.

Note that gearmand 1.1.11 did not build on 10.9 due to the use of the tr1 namespace; see bug #1236815. We were able to build 1.1.11 on 10.9 by removing "tr1/" from libgearman-1.0/gearman.h.

Note that under OS X 10.9 and later you cannot use the tr1 namespace because it is not present, but that OS X 10.8 and earlier require the use of the tr1 namespace if you want cinttypes etc.

Filippo (dedalo) wrote :

I'm having the same issue on Mac OS X 10.7.5. No way to get gearman installed on Mac OS X. Can someone point a solution?

Filippo (dedalo) wrote :

I have fixed this changing ./libgearman-1.0/gearman.h file, including <tr1/cinttypes>:

#ifdef __cplusplus
#ifdef _LIBCPP_VERSION
# include <cinttypes>
#else
# include <tr1/cinttypes>
#endif
# include <cstddef>
# include <cstdlib>
# include <ctime>
#else
# include <inttypes.h>

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers