LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2019, 07:18 AM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,520

Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
libtorrent-rasterbar (qBittorrent) not building on current (boost errors)


I think this is more of a programming issue with boosts functions calls that libtorrent-rasterbar needs to be updated to match boost current release.

if yes, then is the fixed more on waiting for whomever maintains libtorrent-rasterbar to update its code to match boost changes, then anything else to get qbittorrent working again on current?

ver 1.1.12

Code:
 Making all in src
make[1]: Entering directory '/tmp/SBo/libtorrent-rasterbar-1.1.12/src'
  CXX      web_connection_base.lo
In file included from /usr/include/boost/detail/endian.hpp:9,
                 from ../include/libtorrent/config.hpp:53,
                 from web_connection_base.cpp:33:
/usr/include/boost/predef/detail/endian_compat.h:11:161: note: #pragma message: 
The use of BOOST_*_ENDIAN and BOOST_BYTE_ORDER is deprecated.
Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead
 ase include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead")
                                                                               ^

In file included from ../include/libtorrent/tracker_manager.hpp:74,
                 from ../include/libtorrent/torrent.hpp:59,
                 from ../include/libtorrent/web_connection_base.hpp:63,
                 from web_connection_base.cpp:44:
../include/libtorrent/udp_socket.hpp: In member function ‘libtorrent::io_service& libtorrent::udp_socket::get_io_service()’:
../include/libtorrent/udp_socket.hpp:83:53: error: ‘boost::asio::ip::udp::socket’ {aka ‘class boost::asio::basic_datagram_socket<boost::asio::ip::udp>’} has no member named ‘get_io_service’
   io_service& get_io_service() { return m_ipv4_sock.get_io_service(); }
                                                     ^~~~~~~~~~~~~~
In file included from ../include/libtorrent/torrent.hpp:59,
                 from ../include/libtorrent/web_connection_base.hpp:63,
                 from web_connection_base.cpp:44:
../include/libtorrent/tracker_manager.hpp: In member function ‘libtorrent::io_service& libtorrent::timeout_handler::get_io_service()’:
../include/libtorrent/tracker_manager.hpp:289:51: error: ‘libtorrent::deadline_timer’ {aka ‘class boost::asio::basic_waitable_timer<std::chrono::_V2::system_clock>’} has no member named ‘get_io_service’
   io_service& get_io_service() { return m_timeout.get_io_service(); }
                                                   ^~~~~~~~~~~~~~
make[1]: *** [Makefile:940: web_connection_base.lo] Error 1
make[1]: Leaving directory '/tmp/SBo/libtorrent-rasterbar-1.1.12/src'
make: *** [Makefile:626: all-recursive] Error 1
Failures:
  libtorrent-rasterbar: libtorrent-rasterbar.SlackBuild return non-zero
ver 1.2.0
Code:
make[1]: Entering directory '/tmp/SBo/libtorrent-rasterbar-1.2.0/src'
  CXX      libtorrent_rasterbar_la-web_connection_base.lo
In file included from ../include/libtorrent/socks5_stream.hpp:38,
                 from ../include/libtorrent/aux_/socket_type.hpp:39,
                 from ../include/libtorrent/utp_socket_manager.hpp:39,
                 from ../include/libtorrent/aux_/session_udp_sockets.hpp:36,
                 from ../include/libtorrent/aux_/session_interface.hpp:46,
                 from ../include/libtorrent/ip_voter.hpp:40,
                 from ../include/libtorrent/peer_list.hpp:47,
                 from ../include/libtorrent/torrent.hpp:51,
                 from ../include/libtorrent/web_connection_base.hpp:43,
                 from web_connection_base.cpp:38:
../include/libtorrent/proxy_base.hpp: In member function ‘libtorrent::io_service& libtorrent::proxy_base::get_io_service()’:
../include/libtorrent/proxy_base.hpp:249:17: error: ‘boost::asio::ip::tcp::socket’ {aka ‘class boost::asio::basic_stream_socket<boost::asio::ip::tcp>’} has no member named ‘get_io_service’
   return m_sock.get_io_service();

Last edited by BW-userx; 04-18-2019 at 07:39 AM.
 
Old 04-18-2019, 04:04 PM   #2
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 174

Rep: Reputation: 38
So you have already checked the boost version you have and the expected version?
Seems an API mismatch on boost::asio templates.
It seems deprecated https://www.boost.org/doc/libs/1_66_...o_service.html.

https://stackoverflow.com/questions/...get-io-service
 
Old 04-18-2019, 04:26 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,520

Original Poster
Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
yeah the person that wrote the code for libtorrent-rasterbar got a play keep up with the ones that write for boost, so yeah, that is laughable. I might look into updating it later then put boost on hold. but is that even a good idea if it messes up the rest of the system that uses updated boost?
 
Old 04-18-2019, 04:36 PM   #4
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 174

Rep: Reputation: 38
The issue you have is solved by a simple change and it's not like every boost release the entire API is 'improved'.
I would trust it if it compiles and passes the tests if there are any.
 
Old 04-18-2019, 04:48 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,520

Original Poster
Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
Quote:
Originally Posted by hoes View Post
The issue you have is solved by a simple change and it's not like every boost release the entire API is 'improved'.
I would trust it if it compiles and passes the tests if there are any.
yea I know I got a sed / edit the torrent source to match boost. I suppose I could just wait and see after each boost update current does with it,
 
Old 04-23-2019, 08:57 AM   #6
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 243

Rep: Reputation: 38
Does anyone have a patch for libtorrent for this issue? I've seen the docs linked but not a programmer so not sure how to change the source to compile.
 
Old 04-23-2019, 09:04 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,520

Original Poster
Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
Quote:
Originally Posted by rpedrica View Post
Does anyone have a patch for libtorrent for this issue? I've seen the docs linked but not a programmer so not sure how to change the source to compile.
Here:

I downloaded this, it has a little cloud upper right hand side, that you click on to get it.
https://gitlab.com/skaendo/hackbuild...rent-rasterbar
then downloaded 1.2 libtorrent

link:
https://github.com/arvidn/libtorrent...r-1.2.0.tar.gz

page:
https://github.com/arvidn/libtorrent/releases

installed that then ran the scripts for the rest of qbittorrent, and it is back up and running.

Last edited by BW-userx; 04-23-2019 at 09:12 AM.
 
Old 04-24-2019, 01:34 AM   #8
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 243

Rep: Reputation: 38
Hi @BW-userx

A very big thanks for the patch - package built fine now.

Update: Looks like qbittorrent is still an issue:


Quote:
compiling base/bittorrent/infohash.cpp
base/bittorrent/infohash.cpp: In constructor 'BitTorrent::InfoHash::InfoHash(const sha1_hash&)':
base/bittorrent/infohash.cpp:44:43: error: invalid operands of types 'libtorrent::digest32<160>::difference_type() noexcept' {aka 'long int()'} and 'int' to binary 'operator*'
char out[(libtorrent::sha1_hash::size * 2) + 1];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
base/bittorrent/infohash.cpp:45:17: error: 'to_hex' is not a member of 'libtorrent'
libtorrent::to_hex(reinterpret_cast<const char*>(&m_nativeHash[0]), libtorrent::sha1_hash::size, out);
^~~~~~
base/bittorrent/infohash.cpp:45:102: error: 'out' was not declared in this scope
libtorrent::to_hex(reinterpret_cast<const char*>(&m_nativeHash[0]), libtorrent::sha1_hash::size, out);
^~~
base/bittorrent/infohash.cpp: In constructor 'BitTorrent::InfoHash::InfoHash(const QString&)':
base/bittorrent/infohash.cpp:55:31: error: 'from_hex' is not a member of 'libtorrent'
m_valid = libtorrent::from_hex(raw.constData(), 40, reinterpret_cast<char*>(&m_nativeHash[0]));
^~~~~~~~
make[1]: *** [Makefile:3628: infohash.o] Error 1

Last edited by rpedrica; 04-24-2019 at 01:46 AM.
 
1 members found this post helpful.
Old 04-24-2019, 01:56 AM   #9
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 243

Rep: Reputation: 38
Ok apparently this is a known issue against lt 1.2.0:

https://github.com/qbittorrent/qBittorrent/issues/7088

Here is more recent detail on issue:

https://github.com/qbittorrent/qBittorrent/issues/10199

Trying the Noctem backport as listed in 2nd last entry.

Last edited by rpedrica; 04-24-2019 at 02:02 AM.
 
1 members found this post helpful.
Old 04-24-2019, 02:15 AM   #10
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,757

Rep: Reputation: Disabled
you can also try the fix USUARIONUEVO proposed in the other topic

http://cgit.ponce.cc/slackbuilds/com...rent-rasterbar
 
1 members found this post helpful.
Old 04-24-2019, 06:41 AM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,520

Original Poster
Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
I did not clone latest git qbittorrent, nor the qt5 version, the other one, I took it off slackbuilds sight. qbittorrent-3.3.16-x86_64-1_SBo.tgz

The only thing I updated was the libtorrent to 1.2 and left everything else as is.

Looks like Ponce got that link for qt5 for a try. Post #10

Last edited by BW-userx; 04-24-2019 at 06:55 AM.
 
Old 04-24-2019, 09:08 AM   #12
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 243

Rep: Reputation: 38
With the changes in -current and lack of time to look into this further, I've used AlienBob's boost-compat package along with my original libtorrent 1.1.x and qBittorrent 4.1.4 to carry on. I'll look into this again once the source packages (officially) catch up with the latest boost.
 
1 members found this post helpful.
Old 04-24-2019, 04:21 PM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,520

Original Poster
Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
well it was working now it is not... I'll mess with mine later.. I'm busy/
 
Old 04-24-2019, 04:57 PM   #14
Skaendo
Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 881

Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
well it was working now it is not... I'll mess with mine later.. I'm busy/
You're best off using libtorrent-rasterbar-1.1.x with qbittorrent-4.1.5. With the patch from USUARIONUEVO that Ponce just pointed to here.

My libtorrent-rasterbar-1.2.0 is intended to be used with qBittorrent-4.2.x.

Last edited by Skaendo; 04-24-2019 at 04:58 PM.
 
1 members found this post helpful.
Old 04-24-2019, 05:58 PM   #15
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,520

Original Poster
Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
Quote:
Originally Posted by Skaendo View Post
You're best off using libtorrent-rasterbar-1.1.x with qbittorrent-4.1.5. With the patch from USUARIONUEVO that Ponce just pointed to here.

My libtorrent-rasterbar-1.2.0 is intended to be used with qBittorrent-4.2.x.
I got my live e16 slack running finally so yeah I am in here enjoying it right now. When I get back to my laptop hdd I'll give both a try. thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to sync qbittorrent to web page ( choose app ) cannot find qbittorrent in the jango42 Linux - Software 1 03-16-2014 11:57 AM
hrktorrent with libtorrent-rasterbar-0.16 _gin Programming 0 01-31-2013 08:44 PM
[SOLVED] Errors with Alien Bob's libtorrent-rasterbar and qbittorrent packages. Daedra Slackware 6 02-27-2011 02:47 AM
Unable to build qBittorrent with libtorrent-rasterbar 0.15.2 and zlib 1.2.5 robertjinx Linux - Software 0 08-31-2010 06:49 AM
rasterbar's libtorrent compiling a simple_client.cpp vikhr Programming 0 05-25-2008 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration