Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support boost 1.87 #10347

Open
fvalenduc opened this issue Feb 7, 2025 · 4 comments · May be fixed by #10278
Open

Support boost 1.87 #10347

fvalenduc opened this issue Feb 7, 2025 · 4 comments · May be fixed by #10278
Assignees

Comments

@fvalenduc
Copy link

Describe the bug

Compilation fails with boost-1.87.0

To Reproduce

  1. Upgrade to boost-1.87.0 like in archlinux
  2. Try to compile icinga-2.14.5 or the latest git version
  3. It fails with this error:

Dans le fichier inclus depuis /usr/src/icinga2/src/icinga2-2.14.5/lib/base/tcpsocket.cpp:3,
depuis /usr/src/icinga2/src/icinga2-2.14.5/build/lib/base/base_unity.cpp:65:
/usr/src/icinga2/src/icinga2-2.14.5/lib/base/tcpsocket.hpp: Dans la fonction « void icinga::Connect(Socket&, const String&, const String&) »:
/usr/src/icinga2/src/icinga2-2.14.5/lib/base/tcpsocket.hpp:44:24: erreur: « query » n'est pas un membre de « boost::asio::ip::tcp::resolver » {aka « boost::asio::ip::basic_resolverboost::asio::ip::tcp »}
44 | tcp::resolver::query query (node, service);
| ^~~~~
/usr/src/icinga2/src/icinga2-2.14.5/lib/base/tcpsocket.hpp:45:39: erreur: « query » n'a pas été déclaré dans cette portée
45 | auto result (resolver.resolve(query));
| ^~~~~
/usr/src/icinga2/src/icinga2-2.14.5/lib/base/tcpsocket.hpp:45:39: note: alternatives suggérées:
Dans le fichier inclus depuis /usr/include/boost/asio/execution/blocking.hpp:23,
depuis /usr/include/boost/asio/execution/any_executor.hpp:31,
depuis /usr/include/boost/asio/execution.hpp:19,
depuis /usr/include/boost/asio/system_executor.hpp:20,
depuis /usr/include/boost/asio/associated_executor.hpp:24,
depuis /usr/include/boost/asio/executor_work_guard.hpp:20,
depuis /usr/include/boost/beast/core/detail/work_guard.hpp:13,
depuis /usr/include/boost/beast/core/async_base.hpp:17,
depuis /usr/include/boost/beast/core.hpp:15,
depuis /usr/src/icinga2/src/icinga2-2.14.5/lib/base/string.hpp:8,
depuis /usr/src/icinga2/src/icinga2-2.14.5/lib/base/type.hpp:7,
depuis /usr/src/icinga2/src/icinga2-2.14.5/lib/base/object.hpp:225,
depuis /usr/src/icinga2/src/icinga2-2.14.5/build/lib/base/application-ti.hpp:4,
depuis /usr/src/icinga2/src/icinga2-2.14.5/lib/base/application.hpp:8,
depuis /usr/src/icinga2/src/icinga2-2.14.5/lib/base/application.cpp:3,
depuis /usr/src/icinga2/src/icinga2-2.14.5/build/lib/base/base_unity.cpp:1:
/usr/include/boost/asio/query.hpp:114:6: note: « boost_asio_query_fn::query »

@freaknils
Copy link

Same error here

@yhabteab
Copy link
Member

Hi, thanks for reporting! We're already working on support for Boost 1.87, but it hasn't been a top priority until now.

@yhabteab yhabteab changed the title compile error with boost-1.87.0: « query » is not a member of « boost::asio::ip::tcp::resolver » {aka « boost::asio::ip::basic_resolver<boost::asio::ip::tcp> »} Support boost 1.87 Feb 10, 2025
dsh2dsh added a commit to dsh2dsh/freebsd-ports that referenced this issue Feb 14, 2025
@Al2Klimov Al2Klimov self-assigned this Mar 5, 2025
@Al2Klimov Al2Klimov linked a pull request Mar 5, 2025 that will close this issue
@Al2Klimov
Copy link
Member

@julianbrost You mentioned an AUR with an older Boost which can be used to build Icinga. Is the OP's action required to use that older version or yours as Icinga packager of Arch?

@julianbrost
Copy link
Contributor

https://aur.archlinux.org/packages/icinga2 currently explicitly depends on Boost 1.86, so that package should just work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants