Hi Byung-Gon, Unfortunately, htrace-c currently doesn't compile on MacOS X. See https://issues.apache.org/jira/browse/HTRACE-153
Basically, there are a few things from POSIX that are missing from MacOS X, like clock_gettime. This should be relatively easy to fix by using the platform-specific equivalents instead when compiling for Mac. Unfortunately I don't have access to a Mac right now, or else I'd fix it. If someone wants to take a crack at it, or provide us with some Mac hardware, we could do it. best, Colin On Mon, Sep 19, 2016, at 12:15, Byung-Gon Chun wrote: > Hi, > > I'd like to build htrace-c on mac os x el capitan. > I'm getting the following errors. How do I fix this? > > Thanks! > -Gon > > incubator-htrace/htrace-c/src/core/htracer.h:22: > > [exec] In file included from /usr/include/pthread.h:78: > > [exec] /usr/include/sys/_types/_sigset_t.h:30:9: error: unknown type > name '__darwin_sigset_t'; did you mean '__darwin_size_t'? > > [exec] typedef __darwin_sigset_t sigset_t; > > [exec] ^ > > [exec] /usr/include/i386/_types.h:92:24: note: '__darwin_size_t' > declared here > > [exec] typedef __SIZE_TYPE__ __darwin_size_t; /* > sizeof() */ > > [exec] ^ > > [exec] 2 errors generated. > > [exec] make[2]: *** [CMakeFiles/htrace_test.dir/receiver/noop.c.o] > Error 1 > > [exec] make[1]: *** [CMakeFiles/htrace_test.dir/all] Error 2 > > [exec] make: *** [all] Error 2