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

error: 'swap' is not a member of 'std'

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.6.4
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • Hide

      On Mac OS X 10.6, install MacPorts, then run "sudo port -d install mongodb"

      Show
      On Mac OS X 10.6, install MacPorts, then run "sudo port -d install mongodb"

      Hello, I'm the maintainer of MongoDB in the MacPorts package management system. MongoDB 2.6.4 does not build on Mac OS X 10.6:

      /usr/bin/g++-4.2 -o build/darwin/64/cc__usr_bin_gcc-4.2/cxx__usr_bin_g++-4.2/use-system-boost/use-system-pcre/use-system-snappy/usev8/mongo/shell/linenoise.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -Werror -O3 -m64 -Wno-unused-function -Wno-deprecated-declarations -mmacosx-version-min=10.6 -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D_FILE_OFFSET_BITS=64 -DBOOST_THREAD_VERSION=2 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -Ibuild/darwin/64/cc__usr_bin_gcc-4.2/cxx__usr_bin_g++-4.2/use-system-boost/use-system-pcre/use-system-snappy/usev8/third_party/libstemmer_c/include -Isrc/third_party/libstemmer_c/include -Ibuild/darwin/64/cc__usr_bin_gcc-4.2/cxx__usr_bin_g++-4.2/use-system-boost/use-system-pcre/use-system-snappy/usev8/third_party/s2 -Isrc/third_party/s2 -Ibuild/darwin/64/cc__usr_bin_gcc-4.2/cxx__usr_bin_g++-4.2/use-system-boost/use-system-pcre/use-system-snappy/usev8 -Isrc -Ibuild/darwin/64/cc__usr_bin_gcc-4.2/cxx__usr_bin_g++-4.2/use-system-boost/use-system-pcre/use-system-snappy/usev8/mongo -Isrc/mongo -I/Volumes/Data/macports/snowleopard/include -Ibuild/darwin/64/cc__usr_bin_gcc-4.2/cxx__usr_bin_g++-4.2/use-system-boost/use-system-pcre/use-system-snappy/usev8/third_party/s2 -Isrc/third_party/s2 -Ibuild/darwin/64/cc__usr_bin_gcc-4.2/cxx__usr_bin_g++-4.2/use-system-boost/use-system-pcre/use-system-snappy/usev8/third_party/v8/include -Isrc/third_party/v8/include -Ibuild/darwin/64/cc__usr_bin_gcc-4.2/cxx__usr_bin_g++-4.2/use-system-boost/use-system-pcre/use-system-snappy/usev8/third_party/yaml-cpp-0.5.1/include -Isrc/third_party/yaml-cpp-0.5.1/include src/mongo/shell/linenoise.cpp
      In file included from src/mongo/shell/linenoise.cpp:116:
      src/mongo/shell/linenoise_utf8.h: In member function 'void linenoise_utf8::UtfStringMixin<char_type>::swap(linenoise_utf8::UtfStringMixin<char_type>&)':
      src/mongo/shell/linenoise_utf8.h:145: error: 'swap' is not a member of 'std'
      src/mongo/shell/linenoise_utf8.h:146: error: 'swap' is not a member of 'std'
      src/mongo/shell/linenoise_utf8.h:147: error: 'swap' is not a member of 'std'
      scons: *** [build/darwin/64/cc__usr_bin_gcc-4.2/cxx__usr_bin_g++-4.2/use-system-boost/use-system-pcre/use-system-snappy/usev8/mongo/shell/linenoise.o] Error 1
      scons: building terminated because of errors.
      

      2.6.3 did build on this system.

            Assignee:
            adam.midvidy Adam Midvidy
            Reporter:
            ryandesign Ryan Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: