Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-971

Issue compiling the latest version from Git

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.4
    • None
    • None
    • Ubuntu
    • 1

    Description

      Hello,

      I am facing a segmentation fault with cbc when creating a user, so I tried to compile the latest version of libcouchbase (and tools) I found on GitHub. Alas, at 96% of the build I get an error. libuv is properly installed, configure reports no error before make.

       

      Here is the error:

       

      [ 96%] Building C object plugins/io/libuv/CMakeFiles/couchbase_libuv.dir/plugin-libuv.c.o

      /home/ubuntu/tmp/libcouchbase/plugins/io/libuv/plugin-libuv.c: In function ‘start_connect’:

      /home/ubuntu/tmp/libcouchbase/plugins/io/libuv/plugin-libuv.c:333:5: error: unknown type name ‘uv_os_fd_t

           uv_os_fd_t fd = INVALID_SOCKET;

           ^

      /home/ubuntu/tmp/libcouchbase/plugins/io/libuv/plugin-libuv.c:371:11: warning: implicit declaration of function ‘uv_fileno[-Wimplicit-function-declaration]

           ret = uv_fileno((uv_handle_t *)&sock->tcp, &fd);

                 ^

      plugins/io/libuv/CMakeFiles/couchbase_libuv.dir/build.make:62: recipe for target 'plugins/io/libuv/CMakeFiles/couchbase_libuv.dir/plugin-libuv.c.o’ failed

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          What Ubuntu version do you use? What version of libuv-dev?

          Could you try to build it with cmake -DLCB_BUILD_LIBUV=OFF?

          avsej Sergey Avseyev added a comment - What Ubuntu version do you use? What version of libuv-dev? Could you try to build it with cmake -DLCB_BUILD_LIBUV=OFF ?
          vincent.lextrait Vincent Lextrait added a comment - - edited

          I have Ubuntu 16.04 and libuv 0.10.36-3.

          Am compiling with make (as suggested by the README). cmake reports an error:

          CMake Error: The source directory "/home/ubuntu/tmp/libcouchbase/build" does not appear to contain CMakeLists.txt.

          Thanks

          vincent.lextrait Vincent Lextrait added a comment - - edited I have Ubuntu 16.04 and libuv 0.10.36-3. Am compiling with make (as suggested by the README). cmake reports an error: CMake Error: The source directory "/home/ubuntu/tmp/libcouchbase/build" does not appear to contain CMakeLists.txt. Thanks

          Build libcouchbase-2.8.5-231 contains libcouchbase commit d0c8ccc with commit message:
          CCBC-971: disable dead socket detection for older libuv

          build-team Couchbase Build Team added a comment - Build libcouchbase-2.8.5-231 contains libcouchbase commit d0c8ccc with commit message: CCBC-971 : disable dead socket detection for older libuv

          Build couchbase-server-6.5.0-1257 contains libcouchbase commit d0c8ccc with commit message:
          CCBC-971: disable dead socket detection for older libuv

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1257 contains libcouchbase commit d0c8ccc with commit message: CCBC-971 : disable dead socket detection for older libuv

          People

            avsej Sergey Avseyev
            vincent.lextrait Vincent Lextrait
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty