Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 946671

Summary: net-analyzer/icinga2-2.14.3 - io-engine.hpp: error: expected unqualified-id before :: token
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Matthew Thode ( prometheanfire ) <prometheanfire>
Status: RESOLVED FIXED    
Severity: normal CC: juippis, kfirufk, satmd, sbraz
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=946392
https://github.com/Icinga/icinga2/pull/10278
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
net-analyzer:icinga2-2.14.3:20241219-015954.log
qlist-info.txt.xz
temp.tar.xz
Patch for icinga 2.14.3 against boost 1.87

Description Toralf Förster gentoo-dev 2024-12-19 16:11:22 UTC
too long lines were shrinked:

[55/411] /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -DBOOST_FILESYSTEM_NO_DEPRECATED -D_GNU_SOURCE -I/var/tmp/portage/net-analyzer/icinga2-2.14.3/work/icinga2-2.14.3/third-party/nlohmann_json -I/var/tmp/portage/net-analyzer/icin
[56/411] /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -DBOOST_FILESYSTEM_NO_DEPRECATED -D_GNU_SOURCE -I/var/tmp/portage/net-analyzer/icinga2-2.14.3/work/icinga2-2.14.3/third-party/nlohmann_json -I/var/tmp/portage/net-analyzer/icin
FAILED: lib/base/CMakeFiles/base.dir/io-engine.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -DBOOST_FILESYSTEM_NO_DEPRECATED -D_GNU_SOURCE -I/var/tmp/portage/net-analyzer/icinga2-2.14.3/work/icinga2-2.14.3/third-party/nlohmann_json -I/var/tmp/portage/net-analyzer/icinga2-2.14.
In file included from /var/tmp/portage/net-analyzer/icinga2-2.14.3/work/icinga2-2.14.3/lib/base/io-engine.cpp:5:
/var/tmp/portage/net-analyzer/icinga2-2.14.3/work/icinga2-2.14.3/lib/base/io-engine.hpp: In lambda function:
/var/tmp/portage/net-analyzer/icinga2-2.14.3/work/icinga2-2.14.3/lib/base/io-engine.hpp:107:65: error: expected unqualified-id before :: token
  107 |                                 } catch (const boost::coroutines::detail::forced_unwind &) {
      |                                                                 ^~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib-20241216-084506

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang version 19.1.6
llvm-config: 19.1.6
Python 3.12.8
go version go1.23.4 linux/amd64
  [1]   php8.3 *
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.83.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
2)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 70e8e4bfdd12cc571ba82d17cab14664a0cad40d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Dec 19 00:33:22 2024 +0000

    2024-12-19 00:33:22 UTC

emerge -qpvO =net-analyzer/icinga2-2.14.3
[ebuild  N    ] net-analyzer/icinga2-2.14.3  USE="console mariadb mysql nano-syntax plugins vim-syntax -jumbo-build -mail -minimal -postgres -systemd"
Comment 1 Toralf Förster gentoo-dev 2024-12-19 16:11:23 UTC
Created attachment 914364 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-12-19 16:11:24 UTC
Created attachment 914365 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-12-19 16:11:25 UTC
Created attachment 914366 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-12-19 16:11:26 UTC
Created attachment 914367 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-12-19 16:11:27 UTC
Created attachment 914368 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-12-19 16:11:28 UTC
Created attachment 914369 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-12-19 16:11:29 UTC
Created attachment 914370 [details]
net-analyzer:icinga2-2.14.3:20241219-015954.log
Comment 8 Toralf Förster gentoo-dev 2024-12-19 16:11:30 UTC
Created attachment 914371 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-12-19 16:11:32 UTC
Created attachment 914372 [details]
temp.tar.xz
Comment 10 Joonas Niilola gentoo-dev 2024-12-19 16:13:54 UTC
*** Bug 946675 has been marked as a duplicate of this bug. ***
Comment 11 Louis Sautier (sbraz) gentoo-dev 2025-01-24 01:50:32 UTC
I'm hitting this too on ~arm64, do we need to report this upstream?
Comment 12 Kfir Ozer 2025-02-18 10:32:44 UTC
any updates on ~amd64 ? no patches fixes.. nothing ? :)
Comment 13 satmd 2025-02-23 15:30:33 UTC
I think bug 946392 is (at least) partially related (to boost upgrades being involved).

I will use this bug to provide my patches.

The patch file has been adapted from parts of https://github.com/Icinga/icinga2/pull/10278/files and https://cgit.freebsd.org/ports/commit/?id=5ca648dbf4d18be35f9dba610421b200ea7d543a which seem to target 2.14.5.

Our patch applies to 2.14.3, but I cannot tell much about its quality, because I'm not familiar with boost at all. At least I did not see anything alarming from the compile log about mismatching types etc.
Comment 14 satmd 2025-02-23 15:32:47 UTC
Created attachment 919743 [details, diff]
Patch for icinga 2.14.3 against boost 1.87

- Patch applies cleanly
- Build on ~amd64 successful
Comment 15 Larry the Git Cow gentoo-dev 2025-04-10 11:34:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=145942026ced5327eaf739f189cf50361c39395a

commit 145942026ced5327eaf739f189cf50361c39395a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-10 11:32:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-10 11:33:51 +0000

    net-analyzer/icinga2: add 2.14.5
    
    The keepdir part of bug #674118 is fixed - the hacks there are needed
    because of bug #638686.
    
    Bug: https://bugs.gentoo.org/674118
    Closes: https://bugs.gentoo.org/946671
    Closes: https://bugs.gentoo.org/946392
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/icinga2/Manifest                      |   1 +
 .../icinga2/files/icinga2-2.14.5-boost-1.87.patch  | 380 +++++++++++++++++++++
 net-analyzer/icinga2/icinga2-2.14.5.ebuild         | 154 +++++++++
 net-analyzer/icinga2/icinga2-9999.ebuild           |  31 +-
 4 files changed, 559 insertions(+), 7 deletions(-)