Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-447

_sasl_client_done() not found on Yosemite

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.0
    • Affects Version/s: 1.0.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OS X 10.10 (Yosemite)

      Building on yosemite:

      Making all in src/libbson
      make[1]: Nothing to be done for `all'.
        CCLD     libmongoc-1.0.la
      clang: warning: argument unused during compilation: '-pthread'
      Undefined symbols for architecture x86_64:
        "_sasl_client_done", referenced from:
            __mongoc_sasl_destroy in libmongoc_1_0_la-mongoc-sasl.o
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make[1]: *** [libmongoc-1.0.la] Error 1
      make: *** [all-recursive] Error 1
      

      Current workaround is to build without sasl support:

      $ ./configure --enable-sasl=no
      

      /usr/include/sasl/sasl.h on Yosemite indicates the version is 2.1.26. mongoc-sasl.c thinks that this should include sasl_client_done() but apparently it does not:

      #if (SASL_VERSION_MAJOR >= 2) && \
          (SASL_VERSION_MINOR >= 1) && \
          (SASL_VERSION_STEP >= 24)
         sasl_client_done ();
      #endif
      

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            tyler@10gen.com Tyler Brock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: