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

libcouchbase does not build on FreeBSD 10.1-RELEASE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • 2.4.9, 2.5.0
    • library
    • Security Level: Public
    • None
    • FreeBSD 10.1-RELEASE ad64

    Description

      I only tested 2.50 and 2.49 but it's quite possible this has been around longer. The build fails due to missing symbol IPPROTO_TCP ... this can be fixed with a simple patch to /plugins/io/bsdio-inl.c that includes the missing header containing IPPROTO_TCP.

      diff --git a/include/libcouchbase/plugins/io/bsdio-inl.c b/include/libcouchbase/plugins/io/bsdio-inl.c
      index ea3ef48..e97056f 100644
      --- a/include/libcouchbase/plugins/io/bsdio-inl.c
      +++ b/include/libcouchbase/plugins/io/bsdio-inl.c
      @@ -23,6 +23,7 @@
        */
       
       #ifndef _WIN32
      +#include <netinet/in.h>
       #include <netinet/tcp.h>
       #endif
      

      Attachments

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

        Activity

          People

            mnunberg Mark Nunberg (Inactive)
            ahurt ahurt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty