You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Build breaks with boost-libs-1.87.0: fatal error: 'boost/asio/io_service.hpp' file not found #475
I searched in the issues and found nothing similar.
Version
In file included from /usr/ports/net-p2p/pulsar-client-cpp/work/pulsar-client-cpp-3.7.0/lib/BatchMessageKeyBasedContainer.cc:24:
/usr/ports/net-p2p/pulsar-client-cpp/work/pulsar-client-cpp-3.7.0/lib/ClientConnection.h:34:10: fatal error: 'boost/asio/io_service.hpp' file not found
34 | #include <boost/asio/io_service.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
It's recommended to build via vcpkg so that the dependency version could be consistent with the tests. Boost might introduce breaking changes so that it's hard to maintain code compatibility with all versions. Currently the tested version is 1.83:
Activity
BewareMyPower commentedon Feb 21, 2025
It's recommended to build via vcpkg so that the dependency version could be consistent with the tests. Boost might introduce breaking changes so that it's hard to maintain code compatibility with all versions. Currently the tested version is 1.83:
pulsar-client-cpp/vcpkg.json
Line 16 in fca3827
I tried upgrading the dependency to 1.86 before but the PR is drafted due to my lack of time recently:
pulsar-client-cpp/vcpkg.json
Line 16 in fca3827
yurivict commentedon Feb 21, 2025
Ports/packages can't do this. They always use other packages as dependencies.
BewareMyPower commentedon Feb 21, 2025
Sorry I don't understand it. Did you mean your project depends on Boost 1.87 so that the version is pinned?
BTW, it's acceptable to support latest Boost version. I tried upgrading Boost to 1.86 before (#459) but it's not in progress now due to lack of time.
yurivict commentedon Feb 21, 2025
The version is pinned because only one boost version can be installed in the system at any given time.
yurivict commentedon Mar 6, 2025
Can boost compatibility be fixed?
BewareMyPower commentedon Mar 7, 2025
Yes, but I'm busy recently. It should not be a hard job, let me try today.
BewareMyPower commentedon Mar 7, 2025
I just tried 1.87. There are many API changes not only just the
io_service, so it still needs some time to adapt the latest Boost.Asio API.BewareMyPower commentedon Mar 7, 2025
As a workaround, you can add Asio (not Boost.Asio) directly into your project and build with
-DUSE_ASIO=ONoption.BewareMyPower commentedon Mar 9, 2025
I drafted a PR (#477) but might not have time addressing failed tests (if possible) next week.
hdu-sdlzx commentedon Sep 30, 2025
@BewareMyPower I noticed it's been a while since the last update - just checking if you're still working on this?
BewareMyPower commentedon Sep 30, 2025
No.
BewareMyPower commentedon Oct 3, 2025
But I will pick up this issue soon