You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Ajay Rathore <ra...@gmail.com> on 2018/04/24 20:42:27 UTC
zookeeper c client build error
Trying to build zookeeper c client from source (master) by following
https://github.com/apache/zookeeper/tree/master/src/c
I am getting following error in step 4) Has anyone seen this?
ajay@ubuntu:~/zookeeper/src/c$ ./configure
checking for doxygen... no
checking for perl... /usr/bin/perl
checking for dot... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
./configure: line 6321: syntax error near unexpected token `newline'
./configure: line 6321: `</td>'
Re: zookeeper c client build error
Posted by Ashwini Keshavarao <as...@gmail.com>.
I am trying to build zookeeper 3.4.12 c client on solaris machine. Below are
the steps that I followed,
1) unzip/untar the source tarball and cd to the zookeeper-x.x.x/src/c
directory.
2) Do a "./configure [OPTIONS]" to generate the makefile.
./configure --without-cppunit
This step fails with below error,
/bin/sh ./libtool --tag=CC --mode=link gcc -Wall -Werror -g -O2
-D_GNU_SOURCE -no-undefined -version-info 2 -lnsl -lsocket
-export-symbols-regex
'(zoo_|zookeeper_|zhandle|Z|format_log_message|log_message|logLevel|deallocate_|allocate_|zerror|is_unrecoverable)'
-o libzookeeper_st.la -rpath /usr/local/lib libzkst.la libhashtable.la
libtool: link: /bin/nm -p ./.libs/libzkst.a ./.libs/libhashtable.a | |
/bin/gsed 's/.* //' | sort | uniq > .libs/libzookeeper_st.exp
./libtool[1732]: eval: syntax error at line 1: `|' unexpected
*** Error code 3
make: Fatal error: Command failed for target `libzookeeper_st.la'
Any idea on the error?
Regards,
Ashwini.
--
Sent from: http://zookeeper-user.578899.n2.nabble.com/
Re: zookeeper c client build error
Posted by Ashwini Keshavarao <as...@gmail.com>.
Makefile.Makefile
<http://zookeeper-user.578899.n2.nabble.com/file/t396532/Makefile.Makefile>
Makefile.am
<http://zookeeper-user.578899.n2.nabble.com/file/t396532/Makefile.am>
Makefile.in
<http://zookeeper-user.578899.n2.nabble.com/file/t396532/Makefile.in>
Hi Patric,
Thanks for the reply. I am looking at the make file. Will let you know if I
get any clues. But understanding make file is a bit difficult task for us
because of the less expertise that we have in that area. But will definitely
give a shot. Here I am attaching the make files for your reference. Please
go through it and let me know if you get any clues.
Regards,
Ashwini.
--
Sent from: http://zookeeper-user.578899.n2.nabble.com/
Re: zookeeper c client build error
Posted by Patrick Hunt <ph...@apache.org>.
We used to have access to solaris on Apache Jenkins, however that was
removed some time ago. As a result we are no longer able to compile/test
against that OS:
https://builds.apache.org/computer/
You might check some of the open jiras to get more insight, esp those
related to libtool:
https://issues.apache.org/jira/issues/?jql=project%20%3D%20ZOOKEEPER%20AND%20text%20~%20libtool%20and%20resolution%20%3D%20unresolved
From the looks of what you sent, in particular
libtool: link: /bin/nm -p ./.libs/libzkst.a ./.libs/libhashtable.a | |
./libtool[1732]: eval: syntax error at line 1: `|' unexpected
it may just be a matter of updating the makefile to remove those trailing
characters. If you work through this issue please do consider submitting a
patch.
Regards,
Patrick
On Wed, Jun 27, 2018 at 8:17 AM Ashwini Keshavarao <as...@gmail.com>
wrote:
> I am trying to build zookeeper 3.4.12 c client on solaris machine. Below
> are
> the steps that I followed,
>
> 1) unzip/untar the source tarball and cd to the zookeeper-x.x.x/src/c
> directory.
> 2) Do a "./configure [OPTIONS]" to generate the makefile.
> ./configure --without-cppunit
>
> This step fails with below error,
>
> /bin/sh ./libtool --tag=CC --mode=link gcc -Wall -Werror -g -O2
> -D_GNU_SOURCE -no-undefined -version-info 2 -lnsl -lsocket
> -export-symbols-regex
> '(zoo_|zookeeper_|zhandle|Z|format_log_message|log_message|logLevel|deallocate_|allocate_|zerror|is_unrecoverable)'
>
> -o libzookeeper_st.la -rpath /usr/local/lib libzkst.la libhashtable.la
> libtool: link: /bin/nm -p ./.libs/libzkst.a ./.libs/libhashtable.a | |
> /bin/gsed 's/.* //' | sort | uniq > .libs/libzookeeper_st.exp
> ./libtool[1732]: eval: syntax error at line 1: `|' unexpected
> *** Error code 3
> make: Fatal error: Command failed for target `libzookeeper_st.la'
>
> Any idea on the error?
>
> Regards,
> Ashwini.
>
>
>
>
>
>
> --
> Sent from: http://zookeeper-user.578899.n2.nabble.com/
>
Re: zookeeper c client build error
Posted by Ashwini Keshavarao <as...@gmail.com>.
I am trying to build zookeeper 3.4.12 c client on solaris machine. Below are
the steps that I followed,
1) unzip/untar the source tarball and cd to the zookeeper-x.x.x/src/c
directory.
2) Do a "./configure [OPTIONS]" to generate the makefile.
./configure --without-cppunit
This step fails with below error,
/bin/sh ./libtool --tag=CC --mode=link gcc -Wall -Werror -g -O2
-D_GNU_SOURCE -no-undefined -version-info 2 -lnsl -lsocket
-export-symbols-regex
'(zoo_|zookeeper_|zhandle|Z|format_log_message|log_message|logLevel|deallocate_|allocate_|zerror|is_unrecoverable)'
-o libzookeeper_st.la -rpath /usr/local/lib libzkst.la libhashtable.la
libtool: link: /bin/nm -p ./.libs/libzkst.a ./.libs/libhashtable.a | |
/bin/gsed 's/.* //' | sort | uniq > .libs/libzookeeper_st.exp
./libtool[1732]: eval: syntax error at line 1: `|' unexpected
*** Error code 3
make: Fatal error: Command failed for target `libzookeeper_st.la'
Any idea on the error?
Regards,
Ashwini.
--
Sent from: http://zookeeper-user.578899.n2.nabble.com/
Re: zookeeper c client build error
Posted by Andor Molnar <an...@cloudera.com>.
Hi Ajay,
I've tried it on latest master following the instructions of the readme:
https://github.com/apache/zookeeper/tree/master/src/c
and it worked fine for me.
It looks like a newline issue on your side. Would you please check if line
endings are compatible with your system?
Regards,
Andor
On Tue, Apr 24, 2018 at 10:42 PM, Ajay Rathore <ra...@gmail.com>
wrote:
> Trying to build zookeeper c client from source (master) by following
> https://github.com/apache/zookeeper/tree/master/src/c
>
> I am getting following error in step 4) Has anyone seen this?
>
> ajay@ubuntu:~/zookeeper/src/c$ ./configure
> checking for doxygen... no
> checking for perl... /usr/bin/perl
> checking for dot... no
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... no
> checking for mawk... mawk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> ./configure: line 6321: syntax error near unexpected token `newline'
> ./configure: line 6321: `</td>'
>