Compiling fails on latest c-driver (March 26th)

38 views
Skip to first unread message

Guy Shefer

unread,
Mar 27, 2016, 7:38:01 AM3/27/16
to mongodb-user
make fails on OS X :

tests/test-conveniences.c:822:9: error: use of undeclared identifier 'BSON_TYPE_DECIMAL128'; did you mean 'BSON_TYPE_DOCUMENT'?

   case BSON_TYPE_DECIMAL128: return "DECIMAL128";

        ^~~~~~~~~~~~~~~~~~~~

        BSON_TYPE_DOCUMENT


OS and compiler are:

Apple LLVM version 7.0.2 (clang-700.1.81)

Target: x86_64-apple-darwin15.3.0

Thread model: posix



Is anybody else getting this error?

Wan Bachtiar

unread,
Apr 19, 2016, 10:14:01 AM4/19/16
to mongodb-user

Hi Guy,

It’s been a while since you posted this question. Have you found the solution ?

I’ve just ran three tests to build the latest of mongo-c-driver:

For the below setup:

    • Apple LLVM version 7.0.2 (clang-700.1.81)
    • Target: x86_64-apple-darwin15.4.0 (XCode 7.3)
    • Thread model: posix

    All tests worked as expected (built and installed) by following the steps to build the driver from source.

    If you are still having this issue, could you answer the following questions:

    • If building from tarball, what is the version ?
    • If building from git, which branch or tag ?
    • Please provide the output of ./autogen.sh or ./configure (depending on whether you are building from a git checkout or from a tarball). The output starting from “libbson was configured with the following options” is sufficient.

    Kind regards,

    Wan.

    Reply all
    Reply to author
    Forward
    0 new messages