Issue compiling the latest version from Git
Description
Environment
Gerrit Reviews
Release Notes Description
Activity
CB robot August 28, 2018 at 8:46 AM
Build couchbase-server-6.5.0-1257 contains libcouchbase commit d0c8ccc with commit message:
https://couchbasecloud.atlassian.net/browse/CCBC-971#icft=CCBC-971: disable dead socket detection for older libuv
CB robot August 28, 2018 at 7:17 AM
Build libcouchbase-2.8.5-231 contains libcouchbase commit d0c8ccc with commit message:
https://couchbasecloud.atlassian.net/browse/CCBC-971#icft=CCBC-971: disable dead socket detection for older libuv
Vincent Lextrait August 24, 2018 at 8:57 PMEdited
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
Sergey Auseyau August 24, 2018 at 8:54 PM
What Ubuntu version do you use? What version of libuv-dev?
Could you try to build it with cmake -DLCB_BUILD_LIBUV=OFF
?
Details
Details
Assignee
Fix versions
Story Points
Reporter
Priority
Instabug
PagerDuty
PagerDuty Incident
PagerDuty

Sentry
Linked Issues
Sentry
Zendesk Support
Linked Tickets
Zendesk Support

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