Bugzilla – Bug 1089808
incinga2: Fails to build with Boost 1.67.0
Last modified: 2018-07-31 15:30:32 UTC
New Boost library has been released and unfortunately this package fails to build with it. The new boost library is already submitted to devel:libraries:c_c++/boost and will be submitted to openSUSE:Factory shortly. https://build.opensuse.org/package/live_build_log/home:adamm:boost_test/icinga2/openSUSE_Tumbleweed/x86_64 > [ 95s] /home/abuild/rpmbuild/BUILD/icinga2-2.8.2/lib/base/timer.cpp: In static member function 'static void icinga::Timer::TimerThreadProc()': > [ 95s] /home/abuild/rpmbuild/BUILD/icinga2-2.8.2/lib/base/timer.cpp:269:74: error: no matching function for call to 'boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>::subsecond_duration(double)' > [ 95s] l_TimerCV.timed_wait(lock, boost::posix_time::milliseconds(wait * 1000)); > [ 95s] ^ The cause of this is change in Boost:DateTime that no longer accepts non-integer types. In the past, these types were implicitly cast down to integer values. Now this requires explicit cast. https://svn.boost.org/trac10/ticket/11168
Many thanks Adam for the detailed report. I have forward the issue upstream: https://github.com/Icinga/icinga2/issues/6232
I have back ported the upstream fix, so building should be possible now if you upgrade you test package from Factory.
This is an autogenerated message for OBS integration: This bug (1089808) was mentioned in https://build.opensuse.org/request/show/597478 Factory / icinga2
Yes, builds fine with new boost. Thank you.
This is an autogenerated message for OBS integration: This bug (1089808) was mentioned in https://build.opensuse.org/request/show/624310 Backports:SLE-12 / icinga2
This is an autogenerated message for OBS integration: This bug (1089808) was mentioned in https://build.opensuse.org/request/show/626737 Backports:SLE-12 / icinga2