Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20320

use of undeclared identifier 'drem'

    • Type: Icon: Bug Bug
    • Resolution: Incomplete
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.6
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • Build 9 (09/18/15), Build A (10/09/15), Build B (10/30/15), Build C (11/20/15), Build D (12/11/15), Platforms F (01/29/16)

      Hello, I'm trying to build mongodb 3.0.6 (plus this patch) on OS X 10.7 Lion. I'm using --c++11, --libc++, and a suitably new clang compiler from MacPorts. The error I get is:

      src/third_party/s2/s1angle.cc:28:14: error: use of undeclared identifier 'drem'
        radians_ = drem(radians_, 2.0 * M_PI);
                   ^
      1 error generated.
      scons: *** [build/darwin/64/c++11_on/cc__Volumes_Data_macports_lion_bin_clang-mp-3.4/cxx__Volumes_Data_macports_lion_bin_clang++-mp-3.4/libc++/osx-version-min_10.7/ssl/third_party/s2/s1angle.o] Error 1
      scons: building terminated because of errors.
      Command failed:  cd "/Volumes/Data/macports/lion/var/macports/build/_Volumes_Data_macports_dports_databases_mongodb/mongodb/work/mongodb-src-r3.0.6" && /Volumes/Data/macports/lion/bin/scons all mongobridge mongosniff --cc=/Volumes/Data/macports/lion/bin/clang-mp-3.4 --cxx=/Volumes/Data/macports/lion/bin/clang++-mp-3.4 --c++11 --cpppath=/Volumes/Data/macports/lion/include --disable-warnings-as-errors --libc++ --libpath=/Volumes/Data/macports/lion/lib --osx-version-min=10.7 --ssl --64 
      Exit code: 2
      

      drem is defined in src/third_party/s2/util/math/exactfloat/exactfloat.h. Maybe a #include is missing?

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            ryandesign Ryan Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: