compiling rtorrent - patching gcc 4.3

Discussion in 'Installation/Configuration' started by y23, Jul 17, 2008.

  1. y23

    y23 New Member

    Hi! I am trying to have a DHT capable torrent ncurses client.

    rtorrent seems right ...

    apt-get from the testing branch as described here
    only installed an older version without dht :-(
    (and I had to add a apt.conf as described here)

    So, I followed the instructions on

    and here is where I got stuck

    9. Configure it
    error missing openssl... fixed it, I had to add
    apt-get install libcurl3-openssl-dev

    10. Compile libtorrent

    make FAILS! Here is what it says:

    g++ .... -c -fPIC -DPIC -o .libs/file_list_iterator.o
    In file included from
    file_list_iterator.h: In member function 'uint32_t torrent::FileListIterator::depth() const':
    file_list_iterator.h:64: error: 'abs' is not a member of 'std'
    make[3]: *** [file_list_iterator.lo] Error 1
    make[3]: Leaving directory `/home/norb/rtorrent/trunk/libtorrent/src/torrent/data'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/home/norb/rtorrent/trunk/libtorrent/src/torrent'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/home/norb/rtorrent/trunk/libtorrent/src'
    make: *** [install-recursive] Error 1

    Found this hint ("you need to apply a patch"):

    I have gcc version 4.3.1 (Debian 4.3.1-2)

    is this the correct patch?[email protected]/msg00171.html

    and what are the commands to apply a patch?
    Last edited: Jul 17, 2008
  2. y23

    y23 New Member

    Nobody has a hint who I might be able to ask?

    Nobody care to speculate or explain the PATCH process?
  3. falko

    falko Super Moderator ISPConfig Developer

    I think I'd try to install another GCC version and then try the compilation again.

Share This Page