LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   deluge on current 64b multilib (https://www.linuxquestions.org/questions/slackware-14/deluge-on-current-64b-multilib-4175475479/)

cisneros 09-01-2013 12:51 PM

deluge on current 64b multilib
 
when i tried to compile the slackbuilds every package work except for deluge, this is the output.

Code:

building 'libtorrent' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/libtorrent
creating build/temp.linux-x86_64-2.7/libtorrent/src
creating build/temp.linux-x86_64-2.7/libtorrent/src/kademlia
creating build/temp.linux-x86_64-2.7/libtorrent/bindings
creating build/temp.linux-x86_64-2.7/libtorrent/bindings/python
creating build/temp.linux-x86_64-2.7/libtorrent/bindings/python/src
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.7 -I/usr/include -I -I/usr/include/python2.7 -c ./libtorrent/src/storage.cpp -o build/temp.linux-x86_64-2.7/./libtorrent/src/storage.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -DBOOST_FILESYSTEM_VERSION=2 -O2 -Wno-missing-braces
In file included from /usr/include/boost/filesystem/operations.hpp:24:0,
                from /usr/include/boost/filesystem/convenience.hpp:22,
                from ./libtorrent/src/storage.cpp:46:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
 #  error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
    ^
./libtorrent/src/storage.cpp: In function 'void libtorrent::recursive_copy(const Path&, const Path&, boost::system::error_code&)':
./libtorrent/src/storage.cpp:164:28: error: 'boost::filesystem::basic_directory_iterator' has not been declared
  using boost::filesystem::basic_directory_iterator;
                            ^
./libtorrent/src/storage.cpp:172:9: error: 'basic_directory_iterator' was not declared in this scope
    for (basic_directory_iterator<Path> i(old_path), end; i != end; ++i)
        ^
./libtorrent/src/storage.cpp:172:38: error: expected primary-expression before '>' token
    for (basic_directory_iterator<Path> i(old_path), end; i != end; ++i)
                                      ^
./libtorrent/src/storage.cpp:172:53: error: 'end' was not declared in this scope
    for (basic_directory_iterator<Path> i(old_path), end; i != end; ++i)
                                                    ^
./libtorrent/src/storage.cpp:172:53: note: suggested alternatives:
In file included from /usr/include/boost/range/functions.hpp:19:0,
                from /usr/include/boost/range/iterator_range_core.hpp:28,
                from /usr/include/boost/lexical_cast.hpp:174,
                from ./libtorrent/src/storage.cpp:45:
/usr/include/boost/range/end.hpp:106:61: note:  'boost::range_adl_barrier::end'
 inline BOOST_DEDUCED_TYPENAME range_iterator<const T>::type end( const T& r )
                                                            ^
In file included from /usr/include/boost/mpl/list/aux_/begin_end.hpp:17:0,
                from /usr/include/boost/mpl/list/list0.hpp:27,
                from /usr/include/boost/mpl/list/list10.hpp:18,
                from /usr/include/boost/mpl/list/list20.hpp:18,
                from /usr/include/boost/mpl/list.hpp:36,
                from /usr/include/boost/math/policies/policy.hpp:9,
                from /usr/include/boost/math/special_functions/math_fwd.hpp:28,
                from /usr/include/boost/math/special_functions/sign.hpp:17,
                from /usr/include/boost/lexical_cast.hpp:172,
                from ./libtorrent/src/storage.cpp:45:
/usr/include/boost/mpl/begin_end_fwd.hpp:23:38: note:  'boost::mpl::end'
 template< typename Sequence > struct end;
                                      ^
In file included from /usr/include/boost/range/functions.hpp:19:0,
                from /usr/include/boost/range/iterator_range_core.hpp:28,
                from /usr/include/boost/lexical_cast.hpp:174,
                from ./libtorrent/src/storage.cpp:45:
/usr/include/boost/range/end.hpp:106:61: note:  'boost::range_adl_barrier::end'
 inline BOOST_DEDUCED_TYPENAME range_iterator<const T>::type end( const T& r )
                                                            ^
./libtorrent/src/storage.cpp:172:58: error: 'i' was not declared in this scope
    for (basic_directory_iterator<Path> i(old_path), end; i != end; ++i)
                                                          ^
./libtorrent/src/storage.cpp: In function 'void libtorrent::recursive_remove(const Path&)':
./libtorrent/src/storage.cpp:205:28: error: 'boost::filesystem::basic_directory_iterator' has not been declared
  using boost::filesystem::basic_directory_iterator;
                            ^
./libtorrent/src/storage.cpp:211:9: error: 'basic_directory_iterator' was not declared in this scope
    for (basic_directory_iterator<Path> i(old_path), end; i != end; ++i)
        ^
./libtorrent/src/storage.cpp:211:38: error: expected primary-expression before '>' token
    for (basic_directory_iterator<Path> i(old_path), end; i != end; ++i)
                                      ^
./libtorrent/src/storage.cpp:211:53: error: 'end' was not declared in this scope
    for (basic_directory_iterator<Path> i(old_path), end; i != end; ++i)
                                                    ^
./libtorrent/src/storage.cpp:211:53: note: suggested alternatives:
In file included from /usr/include/boost/range/functions.hpp:19:0,
                from /usr/include/boost/range/iterator_range_core.hpp:28,
                from /usr/include/boost/lexical_cast.hpp:174,
                from ./libtorrent/src/storage.cpp:45:
/usr/include/boost/range/end.hpp:106:61: note:  'boost::range_adl_barrier::end'
 inline BOOST_DEDUCED_TYPENAME range_iterator<const T>::type end( const T& r )
                                                            ^
In file included from /usr/include/boost/mpl/list/aux_/begin_end.hpp:17:0,
                from /usr/include/boost/mpl/list/list0.hpp:27,
                from /usr/include/boost/mpl/list/list10.hpp:18,
                from /usr/include/boost/mpl/list/list20.hpp:18,
                from /usr/include/boost/mpl/list.hpp:36,
                from /usr/include/boost/math/policies/policy.hpp:9,
                from /usr/include/boost/math/special_functions/math_fwd.hpp:28,
                from /usr/include/boost/math/special_functions/sign.hpp:17,
                from /usr/include/boost/lexical_cast.hpp:172,
                from ./libtorrent/src/storage.cpp:45:
/usr/include/boost/mpl/begin_end_fwd.hpp:23:38: note:  'boost::mpl::end'
 template< typename Sequence > struct end;
                                      ^
In file included from /usr/include/boost/range/functions.hpp:19:0,
                from /usr/include/boost/range/iterator_range_core.hpp:28,
                from /usr/include/boost/lexical_cast.hpp:174,
                from ./libtorrent/src/storage.cpp:45:
/usr/include/boost/range/end.hpp:106:61: note:  'boost::range_adl_barrier::end'
 inline BOOST_DEDUCED_TYPENAME range_iterator<const T>::type end( const T& r )
                                                            ^
./libtorrent/src/storage.cpp:211:58: error: 'i' was not declared in this scope
    for (basic_directory_iterator<Path> i(old_path), end; i != end; ++i)
                                                          ^
./libtorrent/src/storage.cpp: In function 'bool libtorrent::match_filesizes(const libtorrent::file_storage&, boost::filesystem::path, const std::vector<std::pair<long int, long int> >&, bool, std::string*)':
./libtorrent/src/storage.cpp:304:16: error: 'const class boost::filesystem::path' has no member named 'external_file_string'
      + i->path.external_file_string()
                ^
./libtorrent/src/storage.cpp:317:16: error: 'const class boost::filesystem::path' has no member named 'external_file_string'
      + i->path.external_file_string()
                ^
./libtorrent/src/storage.cpp: In member function 'virtual bool libtorrent::storage::initialize(bool)':
./libtorrent/src/storage.cpp:449:64: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    || (exists(file_path) && file_size(file_path) > file_iter->size))
                                                                ^
./libtorrent/src/storage.cpp: In member function 'virtual bool libtorrent::storage::verify_resume_data(const libtorrent::lazy_entry&, std::string&)':
./libtorrent/src/storage.cpp:784:42: error: 'const class boost::filesystem::path' has no member named 'external_file_string'
      error = "file size for '" + i->path.external_file_string()
                                          ^
./libtorrent/src/storage.cpp: In member function 'virtual bool libtorrent::storage::move_storage(boost::filesystem::path)':
./libtorrent/src/storage.cpp:831:52: error: no matching function for call to 'std::set<std::basic_string<char> >::insert(std::set<std::basic_string<char> >::iterator, const boost::filesystem::path&)'
    to_move.insert(to_move.begin(), *i->path.begin());
                                                    ^
./libtorrent/src/storage.cpp:831:52: note: candidates are:
In file included from /usr/include/c++/4.8.1/set:61:0,
                from ./libtorrent/src/storage.cpp:38:
/usr/include/c++/4.8.1/bits/stl_set.h:460:7: note: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::basic_string<char>; _Compare = std::less<std::basic_string<char> >; _Alloc = std::allocator<std::basic_string<char> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<std::basic_string<char> >; std::set<_Key, _Compare, _Alloc>::value_type = std::basic_string<char>]
      insert(const value_type& __x)
      ^
/usr/include/c++/4.8.1/bits/stl_set.h:460:7: note:  candidate expects 1 argument, 2 provided
/usr/include/c++/4.8.1/bits/stl_set.h:497:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = std::basic_string<char>; _Compare = std::less<std::basic_string<char> >; _Alloc = std::allocator<std::basic_string<char> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::basic_string<char> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::basic_string<char> >; std::set<_Key, _Compare, _Alloc>::value_type = std::basic_string<char>]
      insert(const_iterator __position, const value_type& __x)
      ^
/usr/include/c++/4.8.1/bits/stl_set.h:497:7: note:  no known conversion for argument 2 from 'const boost::filesystem::path' to 'const value_type& {aka const std::basic_string<char>&}'
/usr/include/c++/4.8.1/bits/stl_set.h:517:2: note: template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = std::basic_string<char>; _Compare = std::less<std::basic_string<char> >; _Alloc = std::allocator<std::basic_string<char> >]
  insert(_InputIterator __first, _InputIterator __last)
  ^
/usr/include/c++/4.8.1/bits/stl_set.h:517:2: note:  template argument deduction/substitution failed:
./libtorrent/src/storage.cpp:831:52: note:  deduced conflicting types for parameter '_InputIterator' ('std::_Rb_tree_const_iterator<std::basic_string<char> >' and 'boost::filesystem::path')
    to_move.insert(to_move.begin(), *i->path.begin());
                                                    ^
./libtorrent/src/storage.cpp: In instantiation of 'void libtorrent::recursive_copy(const Path&, const Path&, boost::system::error_code&) [with Path = boost::filesystem::path]':
./libtorrent/src/storage.cpp:857:42:  required from here
./libtorrent/src/storage.cpp:172:50: error: 'i' was not declared in this scope
    for (basic_directory_iterator<Path> i(old_path), end; i != end; ++i)
                                                  ^
./libtorrent/src/storage.cpp: In instantiation of 'void libtorrent::recursive_remove(const Path&) [with Path = boost::filesystem::path]':
./libtorrent/src/storage.cpp:865:31:  required from here
./libtorrent/src/storage.cpp:211:50: error: 'i' was not declared in this scope
    for (basic_directory_iterator<Path> i(old_path), end; i != end; ++i)
                                                  ^
error: command 'gcc' failed with exit status 1
bash-4.2#

any ideas or advice? thanks a lot.

cisneros 09-01-2013 01:20 PM

i change the deluge and libtorrent version to the ones suggested in this thread:
http://www.linuxquestions.org/questi...ld-4175474773/,

now im in this situation:
http://www.linuxquestions.org/questi...4/#post5018289

dunric 09-01-2013 05:26 PM

I did modified the SlackBuild to work on Slackware64 current.
deluge.SlackBuild
boost-154.patch

cisneros 09-01-2013 05:51 PM

Quote:

Originally Posted by dunric (Post 5019955)
I did modified the SlackBuild to work on Slackware64 current.
deluge.SlackBuild
boost-154.patch


thanks a lot for the answering, the links do not work tho.

jamesf 09-01-2013 07:32 PM

Just checked, the links open pastebin for me.

cisneros 09-01-2013 09:46 PM

Quote:

Originally Posted by dunric (Post 5019955)
I did modified the SlackBuild to work on Slackware64 current.
deluge.SlackBuild
boost-154.patch

thanks a lot man, the problem is i really dont know how to apply the patch, any suggestions or quick tutorial? thanks again.

also, can you please provide me the link where you get libtorrent-rasterbar-0.16.10 ?

ruario 09-02-2013 02:34 AM

@cisneros http://jungels.net/articles/diff-patch-ten-minutes.html


All times are GMT -5. The time now is 02:05 PM.