Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1795

unable to build c client on ubuntu

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.5.0
    • 3.5.0
    • c client
    • None
    • Reviewed

    Description

      Seems there is an issue for Ubuntu (I'm on 13.04), however I'm only seeing it on trunk and not branch 34

      make check
      make  zktest-st zktest-mt
      make[1]: Entering directory `/home/phunt/dev/svn/svn-zookeeper/src/c'
      g++ -DHAVE_CONFIG_H -I.  -I./include -I./tests -I./generated  -DUSE_STATIC_LIB -DZKSERVER_CMD="\"./tests/zkServer.sh\"" -DZOO_IPV6_ENABLED -g -O2 -MT zktest_st-TestReconfigServer.o -MD -MP -MF .deps/zktest_st-TestReconfigServer.Tpo -c -o zktest_st-TestReconfigServer.o `test -f 'tests/TestReconfigServer.cc' || echo './'`tests/TestReconfigServer.cc
      tests/TestReconfigServer.cc: In member function 'bool TestReconfigServer::waitForConnected(zhandle_t*, uint32_t)':
      tests/TestReconfigServer.cc:128:16: error: 'sleep' was not declared in this scope
      make[1]: *** [zktest_st-TestReconfigServer.o] Error 1
      make[1]: Leaving directory `/home/phunt/dev/svn/svn-zookeeper/src/c'
      make: *** [check-am] Error 2
      

      I have

      g++ --version
      g++ (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
      Copyright (C) 2012 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      

      Attachments

        1. ZOOKEEPER-1795.patch
          0.8 kB
          Raúl Gutiérrez Segalés

        Issue Links

          Activity

            People

              rgs Raúl Gutiérrez Segalés
              phunt Patrick D. Hunt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: