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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0, 5.1.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.1
    • Dev Platform 2021-11-15

      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
      

       

       

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

              Created:
              Updated:
              Resolved: