Build fails with boost 1.87
In file included from /usr/ports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
In file included from /usr/ports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:51:
In file included from /usr/ports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /usr/ports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:47:
In file included from /usr/ports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/ip_voter.hpp:40:
In file included from /usr/ports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:39:
/usr/ports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io_service.hpp:40:10: fatal error: 'boost/asio/io_service.hpp' file not found
40 | #include <boost/asio/io_service.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 4 errors generated.
Version: 1.2.20 clang-19
Reference:
- #7796 https://github.com/qbittorrent/qBittorrent/issues/22302
As a temporary workaround you can downgrade boost and boost-libs packages to 1.86, compile Libtorrent, upgrade boost and boost-libs back to 1.87 and then ln -s /usr/lib/libboost_system.so.1.87.0 /usr/lib/libboost_system.so.1.86.0 (or whatever the paths are on your system).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
As a temporary workaround you can downgrade
boostandboost-libspackages to 1.86, compile Libtorrent, upgradeboostandboost-libsback to 1.87 and thenln -s /usr/lib/libboost_system.so.1.87.0 /usr/lib/libboost_system.so.1.86.0(or whatever the paths are on your system).
And what would be a permanent fix to this?
This issue seems to be the reason libtorrent-rasterbar port is broken on FreeBSD.
This issue seems to be the reason libtorrent-rasterbar port is broken on FreeBSD.
The changes required to fix libtorrent-rasterbar appear to be extensive, and libtorrent-rasterbar2 seems to work fine now. Given the above it's very unlikely that anyone would ever fix it.
it's been a while, but iirc, it's mostly a bunch of classes and functions that were renamed in boost.asio.
@arvidn take a look at #8027
This issue seems to be the reason libtorrent-rasterbar port is broken on FreeBSD.
The changes required to fix libtorrent-rasterbar appear to be extensive, and libtorrent-rasterbar2 seems to work fine now. Given the above it's very unlikely that anyone would ever fix it.
According to a comment in the Makefile i FreeBSD ports, libtorrent-rasterbar2 has memory issues, which is the reason they haven't switched from libtorrent-rasterbar to libtorrent-rasterbar2 yet.
Is it not the case that there are memory issues in libtorrent-rasterbar2?