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