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

Build fails on OS X Yosemite 10.10.1 - if libbson is not installed

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.0
    • Affects Version/s: 1.1.0
    • Component/s: None
    • Environment:
      OS X Yosemite 10.10.1

      Build of C-driver failed with the following steps on Mac OS X Yosemite (10.10.1)

      git clone git@github.com:mongodb/mongo-c-driver.git
      cd mongo-c-driver/
      ./autogen.sh
      make
      

      Output from autogen:

      ...
      libmongoc was configured with the following options:
      
      Build configuration:
        Enable debugging (slow)                          : no
        Compile with debug symbols (slow)                : no
        Enable GCC build optimization                    : yes
        Enable automatic binary hardening                : yes
        Code coverage support                            : no
        Cross Compiling                                  : no
        Fast counters                                    : no
        SASL                                             : sasl2
        SSL                                              : yes
        Libbson                                          : bundled
      
      Documentation:
        man                                              : no
        HTML                                             : no
      

      Output from make:

      ...
        CC       src/mongoc/libmongoc_priv_la-mongoc-client.lo
      src/mongoc/mongoc-client.c:146:26: error: use of undeclared identifier
            'BSON_ERROR_BUFFER_SIZE'
               char errmsg_buf[BSON_ERROR_BUFFER_SIZE];
                               ^
      1 error generated.
      make[1]: *** [src/mongoc/libmongoc_priv_la-mongoc-client.lo] Error 1
      make: *** [all-recursive] Error 1
      

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: