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

Chris Nauroth edited comment on ZOOKEEPER-2505 at 8/18/16 8:47 PM:
-------------------------------------------------------------------

Here is what that line looks like during the build on my Solaris VM:

{code}
     [exec] libtool: link: /usr/bin/nm -p   ./.libs/libzkst.a 
./.libs/libhashtable.a | sed -n -e 's/^.*[         ]\([BDRT][BDRT]*\)[     ][   
   ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | 
/usr/bin/gsed 's/.* //' | sort | uniq > .libs/libzookeeper_st.exp
{code}

For some reason, it looks like in your environment, you aren't getting the 
intermediate {{sed}} commands inserted.

I found some other notes on how I did my setup.  I used {{pkg install}} for all 
of the following:

{code}
pkg install ant
pkg install autoconf
pkg install automake
pkg install cmake
pkg install gcc
pkg install gcc-c++
pkg install gdb
pkg install git
pkg install --accept jdk-7
pkg install libtool
pkg install package/svr4
pkg install pkg-config
pkg install SUNWpkgcmds
pkg install tree
{code}

For CppUnit, I couldn't find it in a package manager, so I downloaded it from 
http://sourceforge.net/projects/cppunit/files/cppunit/1.12.0/cppunit-1.12.0.tar.gz/download
 and built and installed it myself.

For Automake, I couldn't find a 1.12 version in package management, so I built 
my own by downloading the source from 
http://ftp.gnu.org/gnu/automake/automake-1.12.6.tar.gz.


was (Author: cnauroth):
Here is what that line looks like during the build on my Solaris VM:

{code}
     [exec] libtool: link: /usr/bin/nm -p   ./.libs/libzkst.a 
./.libs/libhashtable.a | sed -n -e 's/^.*[         ]\([BDRT][BDRT]*\)[     ][   
   ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | 
/usr/bin/gsed 's/.* //' | sort | uniq > .libs/libzookeeper_st.exp
{code}

For some reason, it looks like in your environment, you aren't getting the 
intermediate {{sed}} commands inserted.

I found some other notes on how I did my setup.  I used {{pkg install}} for all 
of the following:

{code}
pkg install ant
pkg install autoconf
pkg install automake
pkg install cmake
pkg install gcc
pkg install gcc-c++
pkg install gdb
pkg install git
pkg install --accept jdk-7
pkg install libtool
pkg install package/svr4
pkg install pkg-config
pkg install SUNWpkgcmds
pkg install tree
{code}

For CppUnit, I couldn't find it in a package manager, so I downloaded it from 
http://sourceforge.net/projects/cppunit/files/cppunit/1.12.0/cppunit-1.12.0.tar.gz/download
 and built and intsalled it myself.

For Automake, I couldn't find a 1.12 version in package management, so I built 
my own by downloading the source from 
http://ftp.gnu.org/gnu/automake/automake-1.12.6.tar.gz.

> 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