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

Build fail in util/allocator.h

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 0.9.9
    • Affects Version/s: 0.9.8
    • Component/s: None
    • None
    • Environment:

      <snip>
      g++ -o shell/utils.o -c -Wnon-virtual-dtor -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -O3 -D_SCONS -DUSE_ASIO_OFF -DXP_UNIX -DUSE_ASIO_OFF -DXP_UNIX -DUSE_READLINE -I. shell/utils.cpp
      g++ -o mongos -fPIC -pthread stdafx.o buildinfo.o db/jsobj.o db/json.o db/commands.o db/lasterror.o db/nonce.o db/queryutil.o shell/mongo.o util/background.o util/mmap.o util/sock.o util/util.o util/message.o util/assert_util.o util/httpclient.o util/md5.o util/md5main.o client/connpool.o client/dbclient.o client/model.o scripting/engine.o util/mmap_posix.o util/processinfo_linux2.o scripting/engine_spidermonkey.o util/message_server_port.o util/message_server_asio.o s/strategy.o s/strategy_shard.o s/strategy_single.o s/commands_admin.o s/commands_public.o s/request.o s/cursors.o s/server.o s/shard.o s/shardkey.o s/config.o -L/usr/lib64 -L/lib64 -lpthread -lstdc++ -lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_system-mt -lpcrecpp -lpcre -ljs
      g++ -o mongo -fPIC -pthread shell/dbshell.o shell/utils.o -L/usr/lib64 -L/lib64 -L. -lmongoclient -lpthread -lstdc++ -lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_system-mt -ljs -lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_system-mt -ljs -lreadline -lncurses -lrt
      shell/utils.o: In function `ourmalloc':
      /var/tmp/portage/dev-db/mongodb-0.9.8/work/mongodb-mongo-75a58367af664525db5e7226db81082be19e4f06/shell/../client/../util/allocator.h:27: undefined reference to `mongo::dbexit(mongo::ExitCode, char const*)'
      shell/utils.o: In function `ourrealloc':
      /var/tmp/portage/dev-db/mongodb-0.9.8/work/mongodb-mongo-75a58367af664525db5e7226db81082be19e4f06/shell/../client/../util/allocator.h:33: undefined reference to `mongo::dbexit(mongo::ExitCode, char const*)'
      /var/tmp/portage/dev-db/mongodb-0.9.8/work/mongodb-mongo-75a58367af664525db5e7226db81082be19e4f06/shell/../client/../util/allocator.h:33: undefined reference to `mongo::dbexit(mongo::ExitCode, char const*)'
      /var/tmp/portage/dev-db/mongodb-0.9.8/work/mongodb-mongo-75a58367af664525db5e7226db81082be19e4f06/shell/../client/../util/allocator.h:33: undefined reference to `mongo::dbexit(mongo::ExitCode, char const*)'
      shell/utils.o: In function `ourmalloc':
      /var/tmp/portage/dev-db/mongodb-0.9.8/work/mongodb-mongo-75a58367af664525db5e7226db81082be19e4f06/shell/../client/../util/allocator.h:27: undefined reference to `mongo::dbexit(mongo::ExitCode, char const*)'
      collect2: ld returned 1 exit status
      scons: *** [mongo] Error 1
      scons: building terminated because of errors.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            jbergstroem Johan Bergström
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: