[ 
https://issues.apache.org/jira/browse/HTRACE-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15764354#comment-15764354
 ] 

Masatake Iwasaki commented on HTRACE-153:
-----------------------------------------

Thanks for working on this, [~cmccabe]. I got error about {{clock_gettime}} 
even with the patch applied on El Capitan (10.11.6 (15G1212)).
{noformat}
     [exec] [ 19%] Building C object CMakeFiles/htrace_test.dir/util/string.c.o
     [exec] /Library/Developer/CommandLineTools/usr/bin/cc   
-I/Users/iwasakims/srcs/incubator-htrace/htrace-c/target/build 
-I/Users/iwasakims/srcs/incubator-htrace/htrace-c/src 
-I/usr/local/include/json-c  -g  -Wall -O2 -fno-strict-aliasing -D_REENTRANT 
-fvisibility=hidden   -o CMakeFiles/htrace_test.dir/util/string.c.o   -c 
/Users/iwasakims/srcs/incubator-htrace/htrace-c/src/util/string.c
     [exec] [ 20%] Building C object CMakeFiles/htrace_test.dir/util/terror.c.o
     [exec] 
/Users/iwasakims/srcs/incubator-htrace/htrace-c/src/util/time.c:60:9: warning: 
implicit declaration of function 'clock_gettime' is invalid in C99 
[-Wimplicit-function-declaration]
     [exec]     if (clock_gettime(CLOCK_REALTIME, &ts)) {
     [exec]         ^
     [exec] 
/Users/iwasakims/srcs/incubator-htrace/htrace-c/src/util/time.c:60:23: error: 
use of undeclared identifier 'CLOCK_REALTIME'
     [exec]     if (clock_gettime(CLOCK_REALTIME, &ts)) {
     [exec]                       ^
     [exec] 
/Users/iwasakims/srcs/incubator-htrace/htrace-c/src/util/time.c:76:23: error: 
use of undeclared identifier 'CLOCK_MONOTONIC'
     [exec]     if (clock_gettime(CLOCK_MONOTONIC, &ts)) {
     [exec]                       ^
{noformat}

> htrace-c should compile with -Pnative on Mac
> --------------------------------------------
>
>                 Key: HTRACE-153
>                 URL: https://issues.apache.org/jira/browse/HTRACE-153
>             Project: HTrace
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>            Reporter: Abraham Elmahrek
>            Assignee: Colin P. McCabe
>         Attachments: HTRACE-153.001.patch
>
>
> The C and C++ code in htrace-c should compile on Mac OS X.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to