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

Unable to use --use-system-{pcre,boost,...} with r5.1.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.2.0, 5.1.1
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.1
    • Dev Platform 2021-11-15

    Description

      Old behavior:

       

      # Checkout to the last known good version
      git reset --hard r5.0.3
       
      # Build with --use-system-pcre
      git clean -f -x -d && python buildscripts/scons.py --dbg=off --disable-warnings-as-errors --enable-free-mon=on --enable-http-client=on --opt=on --release --server-js=on --ssl=on --wiredtiger=on --ninja=enabled --use-system-pcre generate-ninja
       
      # Check if the compile and link commands have -lpcre in them? Yes!
      grep 'lpcre' build.ninja | wc -l
      132

      Current behavior:

       

      # Checkout to the latest version
      git reset --hard r5.1.0
      # Build with --use-system-pcre
      git clean -f -x -d && python buildscripts/scons.py --dbg=off --disable-warnings-as-errors --enable-free-mon=on --enable-http-client=on --opt=on --release --server-js=on --ssl=on --wiredtiger=on --ninja=enabled --use-system-pcre generate-ninja
      # Check if the compile and link commands have -lpcre in them? No!
      grep lpcre build.ninja | wc -l
      0
      

      A git bisect reveals that the following commit is the cause:

       

      commit b7aeb64343266da73e29632ef96ebfad5df91495 (refs/bisect/bad)
      Author: Andrew Morrow <acm@mongodb.com>
      Date: Tue Aug 10 13:57:18 2021 -0400
      SERVER-54487 Third-party shim libraries do not need to be linked to or installed
      

       

       

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow
            nehaljw.kkd1@gmail.com Nehal J Wani
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: