You are not logged in.

#1 2008-11-22 20:08:11

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

[UnSolved] Cannot Compile rtorrent with xmlrpc-c

I have been trying to figure this out for so long. Now I am so fed up, I am going to ask for some help.

I have the latest rtorrent and libtorrent from the community repos and xmlrpc-c from aur:

community/rtorrent 0.8.2-2
community/libtorrent 0.12.3-1
aur/xmlrpc-c 1.06.30-1

I then download the rtorrent 0.8.2 from http://libtorrent.rakshasa.no/downloads … 8.2.tar.gz.

I then run the following commands to compile the new rtorrent client:

./autogen.sh
./configure --with-xmlrpc-c
make

After I run the make command, I get the following error.

make[3]: Entering directory `/home/jkern/rtorrent-0.8.2/src/display'
g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../..    -g -O2 -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include   -I/usr/include  -MT text_element_value.o -MD -MP -MF .deps/text_element_value.Tpo -c -o text_element_value.o text_element_value.cc
text_element_value.cc: In member function 'virtual char* display::TextElementValueBase::print(char*, char*, std::vector<display::Attributes, std::allocator<display::Attributes> >*, rpc::target_type)':
text_element_value.cc:108: error: 'tm' is not a member of 'std'
text_element_value.cc:108: error: 'u' was not declared in this scope
text_element_value.cc:108: error: 'gmtime' is not a member of 'std'
text_element_value.cc:117: error: 'tm' is not a member of 'std'
text_element_value.cc:117: error: 'u' was not declared in this scope
text_element_value.cc:117: error: 'gmtime' is not a member of 'std'
make[3]: *** [text_element_value.o] Error 1
make[3]: Leaving directory `/home/jkern/rtorrent-0.8.2/src/display'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jkern/rtorrent-0.8.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jkern/rtorrent-0.8.2'
make: *** [all] Error 2

For those that are running rtorrent with xmlrpc can you do one of two (or two of two) things for me:

1. Tell me what I am doing wrong
2. (If you don't know #1) Tell me the version numbers of rtorrent,libtorrent, and xmlrpc-c that you are using.

Thanks!

(Getting this working is personally important to me, I have three people fighting over a limited Internet connection. Consolidating all torrent activity to one box is really important.)

Offline

#2 2008-11-30 16:22:13

flintmecha
Member
Registered: 2008-07-27
Posts: 41

Re: [UnSolved] Cannot Compile rtorrent with xmlrpc-c

Hey, I had the same problem. Here's what I did:

edit the file in question:

(your editor) rtorrent-0.8.2/src/display/text_element_value.cc

Add the necessary include for the time functions (at the top, just stick it with the existing includes):

#include <time.h>

Go down to the lines mentioned (108 and 117) and remove the "std::" from all instances of "std::tm" nd "std::gmtime"

Save and try make again.

You'll probably get the same error with a different file, just do the same fix. If any other similar problems pop up (I had a few files that these kinds of errors) let me know, as the fixes all involved adding appropriate includes.

Offline

#3 2008-12-01 17:51:29

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: [UnSolved] Cannot Compile rtorrent with xmlrpc-c

Will try that when I get home! Thanks!

Offline

#4 2009-02-26 07:36:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [UnSolved] Cannot Compile rtorrent with xmlrpc-c

fyi - rtorrent 0.8.4 builds against xmlrpc-c with no errors. Yes, I know it's not the current stable release, but it's working fine here.

Offline

Board footer

Powered by FluxBB