Linking to memcached failing with : "undefined reference to `evthread_use_pthreads'"

117 views
Skip to first unread message

dho...@us.ibm.com

unread,
Sep 11, 2017, 3:10:33 AM9/11/17
to Couchbase
I am trying to build the latest couchbase source (master) on Ubuntu16.04 with ppc64le platform. 
At the build level its failing with below error : 


[ 75%] Linking CXX executable ../memcached
../libmemcached_daemon.a(libevent_locking.cc.o): In function `setup_libevent_locking()':
/root/meghali/couchbase/kv_engine/daemon/libevent_locking.cc:27: undefined reference to `evthread_use_pthreads'
collect2: error: ld returned 1 exit status
kv_engine/daemon/CMakeFiles/memcached.dir/build.make:119: recipe for target 'kv_engine/memcached' failed
make[2]: *** [kv_engine/memcached] Error 1
CMakeFiles/Makefile2:11718: recipe for target 'kv_engine/daemon/CMakeFiles/memcached.dir/all' failed
make[1]: *** [kv_engine/daemon/CMakeFiles/memcached.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

I found a similar bug being raised at the couchbase issues page, however the fix it mentions is already merged at master still its failing.

Can someone please help me understand the issue and provide some pointers around it? 

Thanks,
Meghali Dhoble
Reply all
Reply to author
Forward
0 new messages