сan't build qbittorrent error on make - address_v4::broadcast(socket->local_endpoint(ec).address().to_v4()

Linux specific questions, problems.
Post Reply
rzn62

сan't build qbittorrent error on make - address_v4::broadcast(socket->local_endpoint(ec).address().to_v4()

Post by rzn62 »

Hi. Trying to build qbittorrent-nox on gentoo, but stuck with error, can someone help please?

Code: Select all

./configure CXXFLAGS="-std=c++17" --disable-gui
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for a sed that does not truncate output... /bin/sed
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... none
checking dependency style of g++... none
checking whether OS is FreeBSD... no
checking whether OS is macOS... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.23... yes
checking whether to enable the Debug build... no
checking whether to enable the stacktrace feature... yes
checking whether to enable the GUI... no
checking whether to install the systemd service file... no
checking whether to enable the WebUI... yes
checking for Qt5 qmake >= 5.11... /usr/lib64/qt5/bin/qmake
checking whether QtDBus should be enabled... no
checking for boostlib >= 1.65 (106500)... yes
configure: Boost CXXFLAGS: "-I/usr/include"
configure: Boost LDFLAGS: "-L/usr/lib64"
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
configure: Boost.System LIB: "-lboost_system"
checking for libtorrent... yes
checking for openssl... yes
checking for zlib... yes
checking if compiler defaults to C++17 or later mode... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating conf.pri
config.status: executing depfiles commands
configure: Running qmake to generate the makefile...
Reading /home/user/software/qbittorrent-nox/src/src.pro
Project MESSAGE: Project is built in RELEASE mode.
Project MESSAGE: Disabling debug output.

configure: Good, the configure finished.

Code: Select all

make
cd src / && (test -e Makefile || / usr / lib64 / qt5 / bin / qmake -o Makefile /home/user/software/qbittorrent-nox/src/src.pro QMAKE_LRELEASE =) && make -f Makefile
make [1]: enter the directory "/ home / user/ software / qbittorrent-nox / src"
compiling app / application.cpp
In the file from /usr/local/include/libtorrent/torrent_handle.hpp:62,
                 from ./base/bittorrent/session.h:38,
                 from app / application.cpp: 65:
/usr/local/include/libtorrent/broadcast_socket.hpp: Member functions "boost :: asio :: ip :: address_v4 libtorrent :: broadcast_socket :: socket_entry :: broadcast_address () const":
/usr/local/include/libtorrent/broadcast_socket.hpp:125:61: error: there is no corresponding function to call “boost :: asio :: ip :: address_v4 :: broadcast (boost :: asio :: ip :: address_v4, const boost :: asio :: ip :: address_v4 &) "
  125 | return address_v4 :: broadcast (socket-> local_endpoint (ec) .address (). to_v4 (), netmask);
      | ~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
In the file from /usr/include/boost/asio/ip/address.hpp:24,
                 from /usr/include/boost/asio/ip/basic_endpoint.hpp:20,
                 from /usr/include/boost/asio/ip/tcp.hpp:24,
                 from /usr/local/include/libtorrent/socket.hpp:53,
                 from /usr/local/include/libtorrent/add_torrent_params.hpp:45,
                 from ./base/bittorrent/session.h:36,
                 from app / application.cpp: 65:
/usr/include/boost/asio/ip/address_v4.hpp:225:21: note: candidate: “static boost :: asio :: ip :: address_v4 boost :: asio :: ip :: address_v4 :: broadcast () "
  225 | static v4_address broadcast () BOOST_ASIO_NOEXCEPT
      | ^ ~~~~~~~~
/usr/include/boost/asio/ip/address_v4.hpp:225:21: note: candidate expects 0 arguments, 2 provided
app / application.cpp: "void Application :: processMessage (const QString &)" member functions:
app / application.cpp: 305: 73: warning: "QString :: SkipEmptyParts" is deprecated [-Wdeprecated-declrations]
  305 | const QStringList params = message.split (PARAMS_SEPARATOR, QString :: SkipEmptyParts);
      | ^ ~~~~~~~~~~~~~
In the file from /usr/include/qt5/QtCore/qhashfunctions.h:44,
                 from /usr/include/qt5/QtCore/qlist.h:47,
                 from /usr/include/qt5/QtCore/qhash.h:46,
                 from /usr/include/qt5/QtCore/qshareddata.h:46,
                 from /usr/include/qt5/QtCore/qsharedpointer.h:45,
                 from /usr/include/qt5/QtCore/qpointer.h:43,
                 from / usr / include / qt5 / QtCore / QPointer: 1,
                 from app / application.h: 32,
                 from app / application.cpp: 30:
/usr/include/qt5/QtCore/qstring.h:605:9: note: declared here
  605 | SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
      | ^ ~~~~~~~~~~~~~
app / application.cpp: 305: 73: warning: "QString :: SkipEmptyParts" is deprecated [-Wdeprecated-declrations]
  305 | const QStringList params = message.split (PARAMS_SEPARATOR, QString :: SkipEmptyParts);
      | ^ ~~~~~~~~~~~~~
In the file from /usr/include/qt5/QtCore/qhashfunctions.h:44,
                 from /usr/include/qt5/QtCore/qlist.h:47,
                 from /usr/include/qt5/QtCore/qhash.h:46,
                 from /usr/include/qt5/QtCore/qshareddata.h:46,
                 from /usr/include/qt5/QtCore/qsharedpointer.h:45,
                 from /usr/include/qt5/QtCore/qpointer.h:43,
                 from / usr / include / qt5 / QtCore / QPointer: 1,
                 from app / application.h: 32,
                 from app / application.cpp: 30:
/usr/include/qt5/QtCore/qstring.h:605:9: note: declared here
  605 | SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
      | ^ ~~~~~~~~~~~~~
app / application.cpp: 305: 45: warning: "QStringList QString :: split (QChar, QString :: SplitBehavior, Qt :: CaseSensitivity) const" is deprecated: use the Qt :: SplitBehavior variant [-Wdeprecated-declrations] instead
  305 | const QStringList params = message.split (PARAMS_SEPARATOR, QString :: SkipEmptyParts);
      | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~~~~~
In the file from /usr/include/qt5/QtCore/qhashfunctions.h:44,
                 from /usr/include/qt5/QtCore/qlist.h:47,
                 from /usr/include/qt5/QtCore/qhash.h:46,
                 from /usr/include/qt5/QtCore/qshareddata.h:46,
                 from /usr/include/qt5/QtCore/qsharedpointer.h:45,
                 from /usr/include/qt5/QtCore/qpointer.h:43,
                 from / usr / include / qt5 / QtCore / QPointer: 1,
                 from app / application.h: 32,
                 from app / application.cpp: 30:
/usr/include/qt5/QtCore/qstring.h:615:17: note: declared here
  615 | QStringList split (QChar sep, SplitBehavior behavior,
      |
User avatar
Peter
Administrator
Administrator
Posts: 2693
Joined: Wed Jul 07, 2010 6:14 pm

Re: сan't build qbittorrent error on make - address_v4::broadcast(socket->local_endpoint(ec).address().to_v4()

Post by Peter »

As qBittorrent is dependent on Qt, libtorrent, you should ask this over at Gentoo's forum IMO.
On Gentoo everything matters too. Like what flags you've used, your make.conf, your profile, etc.
So when you do the post, include all those information too.

OR, you can use a static build.
https://github.com/userdocs/qbittorrent-nox-static

(These builds and projects are not official, nor they are endorsed by the team.
I've seen people use it, it's on Github, it *should be* safe.)
Post Reply