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

Building with system version of libraries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 3.2.0-rc1
    • Fix Version/s: None
    • Component/s: Build, JavaScript
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      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)
    • Sprint:
      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

      Description

      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.

        Attachments

        1. devel.patch
          6 kB
          Marek Skalický
        2. system-libs.patch
          4 kB
          Marek Skalický

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: