libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

Build fails with boost 1.87

Open yurivict opened this issue 10 months ago • 8 comments

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

yurivict avatar Feb 19 '25 06:02 yurivict

Reference:

  • #7796 https://github.com/qbittorrent/qBittorrent/issues/22302

xavier2k6 avatar Feb 19 '25 08:02 xavier2k6

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).

Alexey104 avatar Feb 21 '25 01:02 Alexey104

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.

stale[bot] avatar Jul 19 '25 05:07 stale[bot]

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).

And what would be a permanent fix to this?

This issue seems to be the reason libtorrent-rasterbar port is broken on FreeBSD.

bendikro avatar Aug 27 '25 21:08 bendikro

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.

yurivict avatar Aug 28 '25 01:08 yurivict

it's been a while, but iirc, it's mostly a bunch of classes and functions that were renamed in boost.asio.

arvidn avatar Sep 07 '25 14:09 arvidn

@arvidn take a look at #8027

xavier2k6 avatar Sep 07 '25 14:09 xavier2k6

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?

bendikro avatar Sep 07 '25 18:09 bendikro