Re: Compiling c client
It should work. On which ZooKeeper release / version are you doing this? Latest release (3.3.1)? I've done the same steps on the 3.3.1 release, 3.3 branch and trunk and everything seems to work fine. I'm running Ubuntu 10.04 and java 1.6.0_18 (OpenJDK). Try running: $ ant clean compile_jute You should get some output similar to this: Buildfile: build.xml [ ... clean ... ] init: [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/build/classes [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/build/lib [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/build/test/lib jute: [javac] Compiling 38 source files to /home/andrei/current/zk/src/zookeeper/build/classes [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. compile_jute_uptodate: compile_jute: [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/src/java/generated [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/src/c/generated [java] ../../zookeeper.jute Parsed Successfully [java] ../../zookeeper.jute Parsed Successfully [touch] Creating /home/andrei/current/zk/src/zookeeper/src/java/generated/.generated BUILD SUCCESSFUL Total time: 4 seconds On Sat, Aug 7, 2010 at 12:54 AM, Michi Mutsuzaki mic...@yahoo-inc.com wrote: Hi, I'm trying to compile c client, and I'm getting error saying that jute files are missing. I've run ant compile_jute, but it didn't generate any files. Am I missing any steps? $ ant compile_jute Buildfile: build.xml init: jute: compile_jute_uptodate: compile_jute: BUILD SUCCESSFUL Total time: 0 seconds $ cd src/c $ autoreconf -if $ ./configure ... configure: error: jute files are missing! Please run ant compile_jute while in the zookeeper top level directory. Thanks! --Michi -- Indekspot -- http://www.indekspot.com -- Managed Hosting for Apache Solr
Build failed in Hudson: ZooKeeper-trunk #898
See http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/898/ -- Started by timer Building remotely on hadoop8 (Ubuntu) Updating http://svn.apache.org/repos/asf/hadoop/zookeeper/trunk ERROR: Failed to update http://svn.apache.org/repos/asf/hadoop/zookeeper/trunk org.tmatesoft.svn.core.SVNException: svn: unknown host svn: OPTIONS request failed on '/repos/asf/hadoop/zookeeper/trunk' at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:103) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:87) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:616) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:273) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:261) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1001) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getRepositoryUUID(DAVRepository.java:146) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:342) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:330) at org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:535) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:401) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:699) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:660) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.net.UnknownHostException: svn.apache.org at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849) at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1200) at java.net.InetAddress.getAllByName0(InetAddress.java:1153) at java.net.InetAddress.getAllByName(InetAddress.java:1083) at java.net.InetAddress.getAllByName(InetAddress.java:1019) at java.net.InetAddress.getByName(InetAddress.java:969) at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createAddres(SVNSocketFactory.java:132) at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createPlainSocket(SVNSocketFactory.java:54) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.connect(HTTPConnection.java:183) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:323) ... 22 more [WARNINGS] Skipping publisher since build result is FAILURE [FINDBUGS] Skipping publisher since build result is FAILURE Publishing Javadoc Recording fingerprints Archiving artifacts Recording test results Publishing Clover coverage report... Publishing Clover HTML report... Publishing Clover XML report... Publishing Clover coverage results...
Re: Compiling c client
Thanks for the response, Andrei. branch-3.3 didn't work for me, but trunk worked. I'll try what you suggested in branch-3.3. By the way, how can I find out which zookeeper version is in the trunk? I need to fix a bug in 3.3.2, but I wasn't sure which branch I'm supposed to work on. Thanks! --Michi On 8/6/10 11:48 PM, Andrei Savu savu.and...@gmail.com wrote: It should work. On which ZooKeeper release / version are you doing this? Latest release (3.3.1)? I've done the same steps on the 3.3.1 release, 3.3 branch and trunk and everything seems to work fine. I'm running Ubuntu 10.04 and java 1.6.0_18 (OpenJDK). Try running: $ ant clean compile_jute You should get some output similar to this: Buildfile: build.xml [ ... clean ... ] init: [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/build/classes [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/build/lib [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/build/test/lib jute: [javac] Compiling 38 source files to /home/andrei/current/zk/src/zookeeper/build/classes [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. compile_jute_uptodate: compile_jute: [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/src/java/generated [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/src/c/generated [java] ../../zookeeper.jute Parsed Successfully [java] ../../zookeeper.jute Parsed Successfully [touch] Creating /home/andrei/current/zk/src/zookeeper/src/java/generated/.generated BUILD SUCCESSFUL Total time: 4 seconds On Sat, Aug 7, 2010 at 12:54 AM, Michi Mutsuzaki mic...@yahoo-inc.com wrote: Hi, I'm trying to compile c client, and I'm getting error saying that jute files are missing. I've run ant compile_jute, but it didn't generate any files. Am I missing any steps? $ ant compile_jute Buildfile: build.xml init: jute: compile_jute_uptodate: compile_jute: BUILD SUCCESSFUL Total time: 0 seconds $ cd src/c $ autoreconf -if $ ./configure ... configure: error: jute files are missing! Please run ant compile_jute while in the zookeeper top level directory. Thanks! --Michi -- Indekspot -- http://www.indekspot.com -- Managed Hosting for Apache Solr
Re: Compiling c client
I believe the code for the 3.3.2 release should be on the 3.3 branch but I'm not completely sure. The trunk contains many unreleased changes. They should all be part of the upcoming 3.4.0 release. On Sat, Aug 7, 2010 at 9:41 PM, Michi Mutsuzaki mic...@yahoo-inc.com wrote: Thanks for the response, Andrei. branch-3.3 didn't work for me, but trunk worked. I'll try what you suggested in branch-3.3. By the way, how can I find out which zookeeper version is in the trunk? I need to fix a bug in 3.3.2, but I wasn't sure which branch I'm supposed to work on. Thanks! --Michi On 8/6/10 11:48 PM, Andrei Savu savu.and...@gmail.com wrote: It should work. On which ZooKeeper release / version are you doing this? Latest release (3.3.1)? I've done the same steps on the 3.3.1 release, 3.3 branch and trunk and everything seems to work fine. I'm running Ubuntu 10.04 and java 1.6.0_18 (OpenJDK). Try running: $ ant clean compile_jute You should get some output similar to this: Buildfile: build.xml [ ... clean ... ] init: [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/build/classes [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/build/lib [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/build/test/lib jute: [javac] Compiling 38 source files to /home/andrei/current/zk/src/zookeeper/build/classes [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. compile_jute_uptodate: compile_jute: [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/src/java/generated [mkdir] Created dir: /home/andrei/current/zk/src/zookeeper/src/c/generated [java] ../../zookeeper.jute Parsed Successfully [java] ../../zookeeper.jute Parsed Successfully [touch] Creating /home/andrei/current/zk/src/zookeeper/src/java/generated/.generated BUILD SUCCESSFUL Total time: 4 seconds On Sat, Aug 7, 2010 at 12:54 AM, Michi Mutsuzaki mic...@yahoo-inc.com wrote: Hi, I'm trying to compile c client, and I'm getting error saying that jute files are missing. I've run ant compile_jute, but it didn't generate any files. Am I missing any steps? $ ant compile_jute Buildfile: build.xml init: jute: compile_jute_uptodate: compile_jute: BUILD SUCCESSFUL Total time: 0 seconds $ cd src/c $ autoreconf -if $ ./configure ... configure: error: jute files are missing! Please run ant compile_jute while in the zookeeper top level directory. Thanks! --Michi -- Indekspot -- http://www.indekspot.com -- Managed Hosting for Apache Solr -- Indekspot -- http://www.indekspot.com -- Managed Hosting for Apache Solr
C client unit test failure
Hello, I'm having 2 issues while compiling/running c client unit test in branch-3.3. 1. I get this error from make check: g++: unrecognized option `-static-libtool-libs' 2. testAsyncWatcherAutoReset is not working for me. Zookeeper_simpleSystem::testAsyncWatcherAutoResetterminate called after throwing an instance of 'CppUnit::Exception' what(): equality assertion failed- Expected: -101- Actual : -4 Let me know if anybody has seen these errors. Thanks! --Michi