On MacOS 387c2c8b7 fails to build with the error quoted above.
mkdir -p build2-osx
cd build2-osx
cmake \
"-DCMAKE_INSTALL_PREFIX=$(dirname "$(pwd)")/prefix2-osx" \
"-DICINGA2_USER=$(whoami)" \
-DICINGA2_GROUP=staff \
-DICINGA2_COMMAND_GROUP=staff \
"-DICINGA2_PLUGINDIR=$(dirname "$(pwd)")/prefix-osx/usr/lib/nagios/plugins" \
-DICINGA2_WITH_MYSQL=OFF \
-DICINGA2_WITH_PGSQL=OFF \
-DBoost_NO_BOOST_CMAKE=ON \
..
make -j2 install
It compiles.
MacOS 10.15.2 with brew
I actually switched to boost 1.66, but this may hit us sooner or later on Linux, too.
Same as #7730 with Boost 1.72.
In order to fix the development environment on macOS until 1.73 is released:
wget https://www.boost.org/patches/1_72_0/0001-revert-cease-dependence-on-range.patch
patch -p0 < 0001-revert-cease-dependence-on-range.patch
File to patch: /usr/local/include/boost/coroutine/asymmetric_coroutine.hpp
Most helpful comment
In order to fix the development environment on macOS until 1.73 is released: