[
https://issues.apache.org/jira/browse/ZOOKEEPER-2505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427089#comment-15427089
]
Michael Han commented on ZOOKEEPER-2505:
----------------------------------------
Hi [~cnauroth], Thank you for validation / reviewing the patch!
I am having another set of problems of the (native) toolchain set up on Solaris
11 as well, and I'll figure out. For the record, just document what I have done
and the problem I met, in case this might be useful for someone else is going
through this:
* My Solaris 11 spec {{SunOS kosmos 5.11 11.3 i86pc i386 i86pc}}
* The set of toolchains to install from a fresh Solaris: jdk-8 (or 7), ant.
These are enough for build / test ZK server and Java client. For C client:
automake, autoconf, libtool, cppunit.
* On Solaris 11, I used 'pkg' to install toolchain. For example: {{pkg install
libtool}}
* On Solaris 10, I used 'pkgadd'. For example:
https://www.opencsw.org/package/libtool/
* Be aware that the version of automake version needs to >= 1.12, since we
require {{AUTOMAKE_OPTIONS = serial-tests}} which is only available after 1.12.
The automake version installed by 'pkg' command is 1.11, so I used 'pkgadd'
instead.
* On solaris 11, 'ant compile-native' does not work for me with error message
{noformat} [exec] libtool: link: /usr/bin/nm -p ./.libs/libzkst.a
./.libs/libhashtable.a | | /usr/bin/gsed 's/.* //' | sort | uniq >
.libs/libzookeeper_st.exp
[exec] *** Error code 3
[exec] ./libtool[1725]: eval: syntax error at line 1: `|' unexpected
{noformat}. It looks some variable definition is missing on my system leads to
the illegal '|'.
* On Solaris 10, 'ant compile-native' works but 'ant test-core-cppunit' does
not. The problem is the wrapper.opt was somehow not passed in the linker as
options.
> 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)