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

Building with system version of libraries

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.0-rc1
    • Component/s: Build, JavaScript
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      scons all \
      -j8 \
      --use-system-tcmalloc \
      --use-system-pcre \
      --use-system-boost \
      --use-system-snappy \
      --use-system-zlib \
      --use-system-stemmer \
      --use-system-yaml \
      --use-system-mozjs \
      --nostrip \
      --ssl \
      --disable-warnings-as-errors \
      %ifarch x86_64
      --wiredtiger=on \
      %else
      --wiredtiger=off \
      %endif
      --experimental-decimal-support=off \
      CCFLAGS="%{?optflags}" LINKFLAGS="%{?__global_ldflags}"

      (tried in Fedora Rawhide)

      Show
      scons all \ -j8 \ --use-system-tcmalloc \ --use-system-pcre \ --use-system-boost \ --use-system-snappy \ --use-system-zlib \ --use-system-stemmer \ --use-system-yaml \ --use-system-mozjs \ --nostrip \ --ssl \ --disable-warnings-as-errors \ %ifarch x86_64 --wiredtiger=on \ %else --wiredtiger=off \ %endif --experimental-decimal-support=off \ CCFLAGS="%{?optflags}" LINKFLAGS="%{?__global_ldflags}" (tried in Fedora Rawhide)
    • Platforms 15 (06/03/16), Platforms 16 (06/24/16), Platforms 17 (07/15/16), Platforms 18 (08/05/16), Platforms 2016-08-26, Platforms 2016-09-19, Platforms 2016-10-10, Platforms 2016-10-31, Platforms 2016-11-21

      I am trying to build MongoDB with system versions of libraries. However it is not possible.

      Some fixes was merged after r3.2.0-rc1 so it is merged in master. But also I would like to be able to build with system version of mozjs.
      However it there is used unpublic functions in src/mongo/scripting/mozjs/valuereader.cpp. I was trying to use new c++11 functions from <locale> and <codecvt>, it is building but with running 'mongo' I get some Chinese chars instead of startup warning. What form of data is expected by jsstring?

      Other thing is, that asio is only header "library" and it should be good to check a presence of this header.

      Patch attached.

        1. devel.patch
          6 kB
        2. system-libs.patch
          4 kB

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mskalick Marek Skalický
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: