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

net: replace deprecated ip::address_v4::from_string() #2610

Closed
wants to merge 1 commit into from

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Jan 7, 2025

boost::asio::ip::address_v4::from_string() was removed in boost 1.87, leading to compilation failures:

src/seastar/src/net/ip.cc:44:46: error: no member named 'from_string' in 'boost::asio::ip::address_v4'
    auto ipv4 = boost::asio::ip::address_v4::from_string(addr, ec);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

prior to 1.87, the function had been documented as deprecated:

(Deprecated: Use make_address_v4().)

boost::asio::ip::address_v4::from_string() was removed in boost 1.87,
leading to compilation failures:

src/seastar/src/net/ip.cc:44:46: error: no member named 'from_string' in 'boost::asio::ip::address_v4'
    auto ipv4 = boost::asio::ip::address_v4::from_string(addr, ec);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

prior to 1.87, the function had been documented as deprecated [1]:

> (Deprecated: Use make_address_v4().)

[1] https://www.boost.org/doc/libs/1_86_0/doc/html/boost_asio/reference/ip__address_v4/from_string.html

Signed-off-by: Casey Bodley <[email protected]>
Copy link
Contributor

@tchaikov tchaikov left a comment

Choose a reason for hiding this comment

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

the minimal required boost version in Seastar is 1.73, which contains make_address_v4(), so this change looks good to me.

see also https://www.boost.org/doc/libs/1_73_0/doc/html/boost_asio/reference/ip__address_v4/from_string.html

@tchaikov
Copy link
Contributor

tchaikov commented Jan 8, 2025

@scylladb/seastar-maint hello maintainers, could you help review this change? without which, seastar is not compatible with boost 1.87.

@xemul xemul closed this in 11d1701 Jan 9, 2025
Comrade88 pushed a commit to Comrade88/seastar that referenced this pull request Jan 10, 2025
boost::asio::ip::address_v4::from_string() was removed in boost 1.87,
leading to compilation failures:

src/seastar/src/net/ip.cc:44:46: error: no member named 'from_string' in 'boost::asio::ip::address_v4'
    auto ipv4 = boost::asio::ip::address_v4::from_string(addr, ec);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

prior to 1.87, the function had been documented as deprecated [1]:

> (Deprecated: Use make_address_v4().)

[1] https://www.boost.org/doc/libs/1_86_0/doc/html/boost_asio/reference/ip__address_v4/from_string.html

Signed-off-by: Casey Bodley <[email protected]>

Closes scylladb#2610
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 this pull request may close these issues.

2 participants