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

diagnose, rpc: fix compilation with boost 1.87 #2786

Merged
merged 8 commits into from
Jan 12, 2025

Conversation

div72
Copy link
Member

@div72 div72 commented Dec 16, 2024

  • boost::asio::ip::tcp::resolver::query has been removed in 1.87 which causes compilation issues.
  • boost::asio::ip::tcp::resolver::iterator has been removed in 1.87 which causes compilation issues.
  • boost::asio::ip::socket_base::max_connections has been renamed to max_listen_connections.
  • boost::asio::ip::address_v6::to_v4(), boost::asio::ip::address_v6::is_v4_compatible() and boost::asio::ip::address_v4::to_ulong has been removed.

This raises the minimum supported version of Boost to 1.66 which should be safe to do since near-EOL focal has 1.71. Ubuntu bionic CI is bumped to accommodate this.

Fixes the CI issue in #2781.

@jamescowens jamescowens self-requested a review December 16, 2024 16:52
@jamescowens jamescowens added this to the Natasha milestone Dec 16, 2024
@jamescowens
Copy link
Member

jamescowens commented Dec 16, 2024

Opensuse Leap 15.6 is still at 1.66.0, but that is ok with this.

The CI still didn't pass.

You could put #ifdef around this dependent on the boost version and make it work for earlier boost, although I don't know of any distributions that would actually need that.

@div72 div72 changed the title rpc: remove deprecated resolver::query rpc: fix compilation with boost 1.87 Dec 16, 2024
@div72 div72 marked this pull request as draft December 16, 2024 23:03
gentoo-repo-qa-bot pushed a commit to gentoo-mirror/seden that referenced this pull request Dec 22, 2024
There are efforts being made for the next version to be compatible.
See:
gridcoin-community/Gridcoin-Research#2786

Signed-off-by: Sven Eden <[email protected]>
gentoo-bot pushed a commit to gentoo/guru that referenced this pull request Jan 6, 2025
Gridcoin is not yet compatible with Boost 1.87.0.

See: gridcoin-community/Gridcoin-Research#2786
Signed-off-by: Anna (cybertailor) Vyalkova <[email protected]>
@div72 div72 changed the title rpc: fix compilation with boost 1.87 diagnose, rpc: fix compilation with boost 1.87 Jan 9, 2025
div72 added 6 commits January 9, 2025 13:35
`boost::asio::ip::tcp::resolver::query` has been removed in 1.87 which
causes compilation issues.

This raises the minimum supported version of Boost to 1.66 which should
be safe since near-EOL focal has 1.71.
`boost::asio::ip::tcp::resolver::iterator` has been removed in Boost
1.87.
@div72 div72 marked this pull request as ready for review January 9, 2025 10:38
Copy link
Member

@jamescowens jamescowens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@jamescowens jamescowens merged commit c9f3674 into gridcoin-community:development Jan 12, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants