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

Aditya Pawaskar commented on ZOOKEEPER-2954:
--------------------------------------------

* As mentioned in on GitHub zookeeper 
[page|https://github.com/apache/zookeeper/tree/master/src/c], I could build 
zookeeper 3.4.10  using command : *‘ant compile_jute’*. However, same command 
is not working with zookeeper 3.4.11.  below are the steps followed: 
{noformat}
git clone https://github.com/apache/zookeeper
cd zookeeper
git checkkout tags/release-3.4.10  ### tags/release-3.4.11  for v3.4.11
ant compile_jute   ### works for v3.4.10 however not working for v3.4.11
cd src/c
ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -if
./configure && make && sudo make install
sudo make distclean
{noformat}
With ‘ant compile_jute’ facing an issue mentioned in description. 

* So , As suggested by you, I have used *‘ant clean jar’*  command v 3.4.11 
which worked. Thanks for the help.
New set of instructions for v3.4.11:  
{noformat}
git clone https://github.com/apache/zookeeper
cd zookeeper
git checkkout tags/release-3.4.11
ant clean jar 
cd src/c
ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -if
./configure && make && sudo make install
sudo make distclean
{noformat}

* Also, I tried to use command *‘ant build-generated’*  for v3.4.11 but 
unfortunately it gives me the same error : *
{noformat}
Buildfile: /root/zookeeper/build.xml

init:

jute:
    [javac] Compiling 39 source files to /root/zookeeper/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
    [javac] /root/zookeeper/src/java/main/org/apache/jute/Record.java:21: 
error: package org.apache.yetus.audience does not exist
    [javac] import org.apache.yetus.audience.InterfaceAudience;
    [javac]                                 ^
    [javac] /root/zookeeper/src/java/main/org/apache/jute/Record.java:29: 
error: package InterfaceAudience does not exist
    [javac] @InterfaceAudience.Public
    [javac]                   ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors
    [javac] 1 warning

BUILD FAILED
/root/zookeeper/build.xml:315: Compile failed; see the compiler error output 
for details.
{noformat}

> ant compile_jute is failing for zookeeper 3.4.11
> ------------------------------------------------
>
>                 Key: ZOOKEEPER-2954
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2954
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: build, jute
>    Affects Versions: 3.4.11
>         Environment: Operating system- Ubuntu 16.04
> Platform- x86_64
>            Reporter: Aditya Pawaskar
>
> when I run Apache Zookeeper 3.4.11 using OpenJDK-8 and clone source code from 
> git.
> At 'ant compile_jute' command I get following error message :
> {noformat}
> Buildfile: /root/zookeeper/build.xml
> init:
> jute:
>     [javac] Compiling 39 source files to /root/zookeeper/build/classes
>     [javac] warning: [options] bootstrap class path not set in conjunction 
> with -source 1.6
>     [javac] /root/zookeeper/src/java/main/org/apache/jute/Record.java:21: 
> error: package org.apache.yetus.audience does not exist
>     [javac] import org.apache.yetus.audience.InterfaceAudience;
>     [javac]                                 ^
>     [javac] /root/zookeeper/src/java/main/org/apache/jute/Record.java:29: 
> error: package InterfaceAudience does not exist
>     [javac] @InterfaceAudience.Public
>     [javac]                   ^
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 2 errors
>     [javac] 1 warning
> BUILD FAILED
> /root/zookeeper/build.xml:315: Compile failed; see the compiler error output 
> for details.
> {noformat}
> According to error, ant is unable to get InterfaceAudience which is part of 
> audience-annotations-0.5.0.jar mentioned in build.xml
> when I search for this jar file, I could not find it in source code.  
> Thanks and Regards,
> Aditya



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to