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

Michael Han commented on ZOOKEEPER-2505:
----------------------------------------

Thanks Chris, I figured out some of my problems and can build and run (st) test 
now. Notes for future readers:

* About the error './libtool eval: syntax error at line 1: `|' unexpected':
It's a 'bug' introduced in Solaris 11.3 (which is the version I am using):
https://lists.gnu.org/archive/html/bug-libtool/2016-01/msg00000.html
This can be workaround by doing this before executing ant commands in same 
shell:
{{export NM=/usr/bin/gnm;}}

* CppUnit can be installed by {{pkg install cppunit}} on Solaris 11.3.

> Use shared library instead of static library in C client unit test
> ------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2505
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2505
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: c client
>    Affects Versions: 3.5.2
>            Reporter: Michael Han
>            Assignee: Michael Han
>            Priority: Minor
>             Fix For: 3.5.3
>
>         Attachments: ZOOKEEPER-2505.patch
>
>
> Currently we are statically linking c unit tests to ZK client library - we 
> should use shared library instead as there seems no particular reason to 
> stick to static library, plus one benefit of using shared library is that 
> would allow us to use overrides function calls from standard libraries at 
> link time so we can simulate the wrap option for ld linker on os x. 



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

Reply via email to