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

Cannot compile libev plugin when switching from v3 to latest 4.11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.0
    • 2.0.0beta2
    • library
    • Security Level: Public
    • None
    • CentOS 6.x, 64-bit

    Description

      I'm trying to track down the cause of some timeout errors that I am now getting under heavy load since the
      "network error" return issue has been resolved and I was able to abandon the use of lcb_wait(). I don't know
      if this is due to using an old libev OR these are some commands being lost in ringbuffer logic when I pound it
      with tons of lcb_get() calls within a loop (before control is returned to the event loop)

      So, easiest step it to try a new libev first before I come here crying :>

      When I try to compile the plugin with v4.11 (latest from Feb 2012) it will not compile
      unless I add the following

      #include <stdlib.h>
      #include <string.h>
      #include <unistd.h>
      #include <fcntl.h>
      #define INVALID_SOCKET -1

      into either the header file or the top of the code. And, yes, I did add -DHAVE_LIBEV4 to my gcc line

      warning: implicit declaration of function memset
      warning: implicit declaration of function fcntl
      error: INVALID_SOCKET undeclared (first use in this function)
      warning: implicit declaration of function free
      etc

      Looks like the old libev headers sucked in more includes than they do now.

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            mleib Michael Leib
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty