[Libtorrent-devel] building rtorrent fails

aoeu silentgreen at gmx.de
Tue Dec 26 13:14:35 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Hi,

I'm running a console-only install of Ubuntu 6.1 with gcc 4.1.2 and make
3.81 . I noticed, that the rtorrent package is not up to date, so I
tried to compile it myself.
After some struggling with OpenSSL (configure did not search the right
path) I successfully built and installed libtorrent, but upon trying to
build rtorrent make fails. Here's the output:

 sudo make
Password:
make  all-recursive
make[1]: Betrete Verzeichnis '/home/adrian/rtorrent-0.6.4'
Making all in doc
make[2]: Betrete Verzeichnis '/home/adrian/rtorrent-0.6.4/doc'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/adrian/rtorrent-0.6.4/doc'
Making all in src
make[2]: Betrete Verzeichnis '/home/adrian/rtorrent-0.6.4/src'
Making all in core
make[3]: Betrete Verzeichnis '/home/adrian/rtorrent-0.6.4/src/core'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../..    -O2 -Wall
- -g -DDEBUG -I/usr/local/include -I/usr/include/sigc++-2.0
- -I/usr/lib/sigc++-2.0/include    -MT download.o -MD -MP -MF
".deps/download.Tpo" -c -o download.o download.cc; \
        then mv -f ".deps/download.Tpo" ".deps/download.Po"; else rm -f
".deps/download.Tpo"; exit 1; fi
In file included from download.cc:52:
download.h:43:31: error: torrent/file_list.h: No such file or directory
download.h:139: error: field ‘m_fileList’ has incomplete type
download.h: In member function ‘bool core::Download::is_done() const’:
download.h:69: error: ‘const class torrent::Download’ has no member
named ‘chunks_done’
download.h:69: error: ‘const class torrent::Download’ has no member
named ‘chunks_total’
download.h: In member function ‘torrent::FileList*
core::Download::file_list()’:
download.h:90: error: ‘m_fileList’ was not declared in this scope
download.h: In member function ‘bool core::Download::operator==(const
std::string&)’:
download.h:111: error: no match for ‘operator==’ in ‘str ==
((core::Download*)this)->core::Download::m_download.
torrent::Download::info_hash()’
download.cc: In constructor ‘core::Download::Download(torrent::Download)’:
download.cc:58: error: class ‘core::Download’ does not have any field
named ‘m_fileList’
download.cc:93: error: ‘m_fileList’ was not declared in this scope
download.cc:93: error: incomplete type ‘torrent::FileList’ used in
nested name specifier
download.cc: In member function ‘float
core::Download::distributed_copies() const’:
download.cc:224: error: ‘const class torrent::Download’ has no member
named ‘chunks_total’
download.cc:240: error: ‘const class torrent::Download’ has no member
named ‘chunks_total’
download.cc: In member function ‘void
core::Download::set_root_directory(const std::string&)’:
download.cc:252: error: ‘m_fileList’ was not declared in this scope
download.cc:257: error: ‘m_fileList’ was not declared in this scope
../../rak/functional_fun.h: In member function ‘Result
rak::convert_fn0_t<Result, SrcResult>::operator()() [with Result =
std::basic_string<char, std::char_traits<char>, std::allocator<char> >,
SrcResult = const torrent::HashString&]’:
download.cc:264:   instantiated from here
../../rak/functional_fun.h:263: error: conversion from ‘const
torrent::HashString’ to non-scalar type ‘std::basic_string<char,
std::char_traits<char>, std::allocator<char> >’ requested
make[3]: *** [download.o] Fehler 1
make[3]: Verlasse Verzeichnis '/home/adrian/rtorrent-0.6.4/src/core'
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlasse Verzeichnis '/home/adrian/rtorrent-0.6.4/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/adrian/rtorrent-0.6.4'
make: *** [all] Fehler 2

I guess some path is not correctly set, because
/usr/local/include/torrent/data/file_list.h
exists, but it seems to be looking in /usr/local/include/torrent/. What
shall I do to correct this?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFkSA711V8mqIQMRsRA3X9AJ96auhGNdp8NZjT2a6FcISAuW6/WgCfZdUp
BbySZS/3NlLPsKexi1Z/P9w=
=CZGb
-----END PGP SIGNATURE-----


More information about the Libtorrent-devel mailing list