[
https://issues.apache.org/jira/browse/HTRACE-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14494586#comment-14494586
]
Masatake Iwasaki commented on HTRACE-106:
-----------------------------------------
Compilation failed with 008 applied.
{noformat}
[exec] In file included from
/iwasakims/srcs/htrace/htrace-c/src/test/rtestpp.cc:27:0:
[exec] /iwasakims/srcs/htrace/htrace-c/src/test/rtestpp.cc: In function
‘int doit(RTestData&, rtest*)’:
[exec] /iwasakims/srcs/htrace/htrace-c/src/test/test.h:171:52: error:
expected ‘)’ before ‘PRIu64’
[exec] snprintf(expected_buf, sizeof(expected_buf), "%" PRIu64,
expected); \
{noformat}
Defining {{__STDC_FORMAT_MACROS}} before including inttypes.h resolved this.
{noformat}
--- a/htrace-c/src/test/test.h
+++ b/htrace-c/src/test/test.h
@@ -19,6 +19,7 @@
#ifndef APACHE_HTRACE_TEST_TEST_H
#define APACHE_HTRACE_TEST_TEST_H
+#define __STDC_FORMAT_MACROS
#include <inttypes.h> /* for PRIdPTR */
#include <stdarg.h> /* for va_list */
#include <unistd.h> /* for size_t */
{noformat}
> htrace: add C / C++ native client
> ---------------------------------
>
> Key: HTRACE-106
> URL: https://issues.apache.org/jira/browse/HTRACE-106
> Project: HTrace
> Issue Type: New Feature
> Affects Versions: 3.2.0
> Reporter: Colin Patrick McCabe
> Assignee: Colin Patrick McCabe
> Attachments: HTRACE-106.001.patch, HTRACE-106.002.patch,
> HTRACE-106.003.patch, HTRACE-106.005.patch, HTRACE-106.006.patch,
> HTRACE-106.007.patch, HTRACE-106.008.patch
>
>
> Add a native client that is usable by C / C++ programs. This client would
> also be useful for building other things on top of, like a Python client.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)