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

[BUG] Can't install last qbittorrent (4.6.5) #1178

Open
Gradius2 opened this issue Jul 24, 2024 · 4 comments
Open

[BUG] Can't install last qbittorrent (4.6.5) #1178

Gradius2 opened this issue Jul 24, 2024 · 4 comments
Labels

Comments

@Gradius2
Copy link

What happened?

Steps to reproduce:

  1. box install qbittorrent

INFO Installing qbittorrent
DOCS Further reference: https://swizzin.ltd/applications/qbittorrent
... Building libtorrent-rasterbar
ERROR The cmake build of libtorrent did not complete successfully
Please consult the above and/or check the log (less -R +G /root/logs/swizzin.log)

Part of log (compile error), it start from lib version:
cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake)

Then it gets messy:

[38/156] Building CXX object CMakeFiles/torrent-rasterbar.dir/src/hasher.cpp.o
/tmp/libtorrent/src/hasher.cpp: In constructor ‘libtorrent::hasher::hasher()’:
/tmp/libtorrent/src/hasher.cpp:53:26: warning: ‘int SHA1_Init(SHA_CTX*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   53 |                 SHA1_Init(&m_context);
      |                 ~~~~~~~~~^~~~~~~~~~~~
In file included from /tmp/libtorrent/include/libtorrent/hasher.hpp:55,
                 from /tmp/libtorrent/src/hasher.cpp:33:
/usr/include/openssl/sha.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
      |                           ^~~~~~~~~
/tmp/libtorrent/src/hasher.cpp: In member function ‘libtorrent::hasher& libtorrent::hasher::update(libtorrent::span<const char>)’:
/tmp/libtorrent/src/hasher.cpp:105:28: warning: ‘int SHA1_Update(SHA_CTX*, const void*, size_t)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  105 |                 SHA1_Update(&m_context, reinterpret_cast<unsigned char const*>(data.data())
      |                 ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  106 |                         , static_cast<std::size_t>(data.size()));
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

At the end:

/opt/boost_1_85_0/boost/math/cstdfloat/cstdfloat_cmath.hpp:714:16: warning: non-standard suffix on floating constant [-Wpedantic]
  714 |                else if (x == BOOST_FLOAT128_C(0.0))
      |                ^~~~
/opt/boost_1_85_0/boost/math/cstdfloat/cstdfloat_cmath.hpp:717:16: warning: non-standard suffix on floating constant [-Wpedantic]
  717 |                if (::BOOST_CSTDFLOAT_FLOAT128_FABS(x) < BOOST_CSTDFLOAT_FLOAT128_MIN)
      |                ^~
ninja: build stopped: subcommand failed.
[Wed Jul 24 14:48:26] ERROR     The cmake build of libtorrent did not complete successfully
[Wed Jul 24 14:48:26]   Please consult the above and/or check the log (less -R +G /root/logs/swizzin.log)
[Wed Jul 24 14:52:24] LOG       >>>> `box install qbittorrent`
[Wed Jul 24 14:52:24] LOG       git @ b2be91e 2>&1
[Wed Jul 24 14:52:24] INFO      Installing qbittorrent
[Wed Jul 24 14:52:24] DOCS      Further reference: https://swizzin.ltd/applications/qbittorrent
[Wed Jul 24 14:52:44] ERROR     Function not supported
[Wed Jul 24 14:52:44]   Please consult the above and/or check the log (less -R +G /root/logs/swizzin.log)

Swizzin commit

b2be91e

What OS are you using?

Debian 12 (Bookworm)

What architecture is your OS?

amd64

Relevant logs and output

No response

@Gradius2 Gradius2 added the bug label Jul 24, 2024
@Gradius2
Copy link
Author

Update: Installing 4.5.5 works fine, the bug is on 4.6.5

@Sayrix
Copy link

Sayrix commented Nov 2, 2024

Why can't we select 5.0 ?

@siedenburg2
Copy link
Contributor

Why can't we select 5.0 ?

I tried to prepare the 5.0.1 installer but the above mentioned error hinders the installation. libtorrent seems to use openssl1 functions and the base openssl nowadays is 3 where SHA1_Init etc is missing. Sadly i don't have the time or the experience to fix that problem.

While at it, libtorrent could be updated to v2 instead of 1.2 see qb 5.0.1 news:

Libtorrent 1.2.x users who stuck with it due to memory usage issues, you might want to try the libtorrent 2.0.x variant and change the disk IO type to the new option "Simple pread/pwrite". Memory usage issues should be eliminated with it.

@luckiestone
Copy link

5.X please, which fixed the exploit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants