Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-23836

memcached needs to link against libevent_pthreads

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.0.0
    • 5.0.0
    • memcached
    • None
    • Untriaged
    • Unknown

    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

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

        Activity

          People

            Aliaksey Artamonau Aliaksey Artamonau (Inactive)
            Aliaksey Artamonau Aliaksey Artamonau (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty