Description
With some recent change I get the following error when building memcached:
../libmemcached_daemon.a(libevent_locking.cc.o): In function `setup_libevent_locking()':
|
/home/shaleny/dev/membase/repo-spock/memcached/daemon/libevent_locking.cc:27: undefined reference to `evthread_use_pthreads'
|
collect2: error: ld returned 1 exit status
|
make[4]: *** [memcached/daemon/CMakeFiles/memcached.dir/build.make:120: memcached/memcached] Error 1
|
make[3]: *** [CMakeFiles/Makefile2:7862: memcached/daemon/CMakeFiles/memcached.dir/all] Error 2
|
Per documentation here, one needs to also link to libevent_pthreads to use evthread_use_pthreads.
Attachments
For Gerrit Dashboard: MB-23836 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
76607,3 | MB-23836: Restrict libevent to the one from cbdeps | master | tlm | Status: ABANDONED | 0 | +1 |
76614,5 | MB-23836: Fix build problems with libevent for non-supported platforms | master | tlm | Status: MERGED | +2 | +1 |
76682,4 | MB-23836: Use LIBEVENT_LIBRARIES instead of LIBEVENT_CORE_LIB | master | memcached | Status: MERGED | +2 | +1 |