Icinga2: Build error with Boost 1.72: no member named 'end' in namespace 'boost'; did you mean simply 'end'?

Created on 31 Dec 2019  路  2Comments  路  Source: Icinga/icinga2

Describe the bug

On MacOS 387c2c8b7 fails to build with the error quoted above.

To Reproduce

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

Expected behavior

It compiles.

Your Environment

MacOS 10.15.2 with brew

Additional context

I actually switched to boost 1.66, but this may hit us sooner or later on Linux, too.

aresetup stalled

Most helpful comment

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

All 2 comments

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
Was this page helpful?
0 / 5 - 0 ratings