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

Fails to build with boost >= 1.87.0 #821

Closed
berolinux opened this issue Dec 13, 2024 · 1 comment
Closed

Fails to build with boost >= 1.87.0 #821

berolinux opened this issue Dec 13, 2024 · 1 comment

Comments

@berolinux
Copy link

Issue Description

uhd host libs fail to build with boost >= 1.87.0 (1.86 is ok) due to the removal of previously deprecated functions

Setup Details

OpenMandriva Lx Cooker or any other OS with boost 1.87.0 or higher

Expected Behavior

compiles

Actual Behaviour

fails to compile

Steps to reproduce the problem

  1. Update to boost 1.87.0
  2. Try to build uhd

Additional Information

Here's a partial patch that fixes the obvious issues that have a straight forward replacement.
uhd-boost-1.87.0.patch.txt

It's not a complete fix though, after fixing these issues it gets to another problem.

/home/bero/abf/uhd/BUILD/uhd-4.7.0.0-build/uhd-4.7.0.0/host/lib/deps/rpclib/lib/rpc/client.cc:159:18: error: no matching member function for call to 'resolve'
  159 |         resolver.resolve({pimpl->addr_, std::to_string(pimpl->port_)});
      |         ~~~~~~~~~^~~~~~~

and

/home/bero/abf/uhd/BUILD/uhd-4.7.0.0-build/uhd-4.7.0.0/host/lib/deps/rpclib/lib/rpc/client.cc:44:21: error: no type named 'iterator' in 'boost::asio::ip::basic_resolver<boost::asio::ip::tcp>'; did you mean 'std::_Bit_const_iterator::iterator'?
   44 |     void do_connect(tcp::resolver::iterator endpoint_iterator) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
      |                     std::_Bit_const_iterator::iterator

Not sure how to fix those right now.

@mbr0wn
Copy link
Contributor

mbr0wn commented Dec 18, 2024

@berolinux you must have just missed the updates -- e75629c and adfe953 takes care of this.

@mbr0wn mbr0wn closed this as completed Dec 18, 2024
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

No branches or pull requests

2 participants