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

Masatake Iwasaki commented on HTRACE-106:
-----------------------------------------

I got errors below while trying 010.
{noformat}
$ gcc -I/home/iwasakims/srcs/htrace/htrace-c/target/install/include 
-I$HADOOP_HOME/include 
-L/home/iwasakims/srcs/htrace/htrace-c/target/install/lib 
-L$HADOOP_HOME/lib/native -lhtrace -lhdfs -o test_libhdfs_write 
test_libhdfs_write.c
/tmp/cc6uL4oB.o: In function `main':
test_libhdfs_write.c:(.text+0x62): undefined reference to `htrace_start_span'
test_libhdfs_write.c:(.text+0x332): undefined reference to `htrace_scope_close'
collect2: error: ld returned 1 exit status
{noformat}

Those symbols seem not to be exported.
{noformat}
$ nm -D target/install/lib/libhtrace.so.3.2.0 | grep htrace
0000000000002360 T htrace_conf_free
00000000000023c0 T htrace_conf_from_strs
0000000000002610 T htrace_ctx_create
00000000000025b0 T htrace_ctx_free
00000000000025a0 T htrace_ctx_pname
0000000000004510 T htrace_sampler_create
00000000000046f0 T htrace_sampler_free
00000000000046e0 T htrace_sampler_to_str
{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, HTRACE-106.009.patch, 
> HTRACE-106.010.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)

Reply via email to