Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rasterbar libtorrent and btg
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Sno
n00b
n00b


Joined: 07 Mar 2005
Posts: 29

PostPosted: Thu Sep 21, 2006 7:44 pm    Post subject: rasterbar libtorrent and btg Reply with quote

rasterbar libtorrent - http://libtorrent.sourceforge.net/
btg - http://developer.berlios.de/projects/btg/

Well my first problem is this.
I can't get rasterbar libtorrent to compile because it says
Boost:threads
is not on my system
Which is odd because I emerged Boost and used "threads" flag.
anybody got any suggestions?
Back to top
View user's profile Send private message
lenkki
n00b
n00b


Joined: 03 Mar 2004
Posts: 55

PostPosted: Wed Oct 11, 2006 11:23 am    Post subject: Reply with quote

I have the same problem, any one who has a solution to this ?
Back to top
View user's profile Send private message
armin76
Retired Dev
Retired Dev


Joined: 24 Apr 2006
Posts: 174

PostPosted: Wed Oct 11, 2006 7:28 pm    Post subject: Reply with quote

Hehe :)

You have to emerge boost with the 'threads' or 'threads-only' USE flag. Then you have to specify some variables when configuring

Do this:
Code:
./configure --with-boost-date-time=mt --with-boost-filesystem=mt --with-boost-thread=mt --with-boost-regex=mt --with-boost-program_options=mt


It should work. Btg provides a rb_libtorrent ebuild, along with the ebuild of btg itself. You have a rb_libtorrent ebuild in sunrise: http://www.gentoo-sunrise.org/sunrise/browser/sunrise/net-libs/rb_libtorrent/rb_libtorrent-0.10.ebuild

Good luck :)
Back to top
View user's profile Send private message
andrewf
n00b
n00b


Joined: 16 Mar 2004
Posts: 71
Location: Gent, Belgium

PostPosted: Tue Jan 30, 2007 11:14 am    Post subject: Reply with quote

I am trying to compile net-libs/rb_libtorrent-0.11 , it fails with this error:
"piece_picker.cpp:961: internal compiler error: in sweep_string_variable, at protector.c:1158"

Manually getting the tarball, configure & make gives the same error.
Compiling the 0.10 release also gives that error (piece_picker.cpp:922 ..) which makes me think this is Gentoo related.

I have emerged dev-libs/boost-1.33.1-r1 with threads and I even emerged dev-cpp/asio (stated as a dependency in one of the earlier ebuilds)

Code:

piece_picker.cpp: In member function `int libtorrent::piece_picker::add_interesting_blocks_partial(const std::vector<asio::detail::socket_type, std::allocator<asio::detail::socket_type> >&, const std::vector<bool, std::allocator<bool> >&, std::vector<libtorrent::piece_block, std::allocator<libtorrent::piece_block> >&, std::vector<libtorrent::piece_block, std::allocator<libtorrent::piece_block> >&, int, bool, asio::ip::basic_endpoint<asio::ip::tcp>) const':
piece_picker.cpp:961: internal compiler error: in sweep_string_variable, at protector.c:1158
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -ftemplate-depth-50 -I../include -I../include/libtorrent -DNDEBUG -pthread -march=opteron -O2 -pipe -fforce-addr -MT policy.lo -MD -MP -MF .deps/policy.Tpo -c policy.cpp -o policy.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..    -ftemplate-depth-50 -I../include -I../include/libtorrent  -DNDEBUG -pthread  -march=opteron -O2 -pipe -fforce-addr -MT session_impl.lo -MD -MP -MF ".deps/session_impl.Tpo" -c -o session_impl.lo session_impl.cpp; \
        then mv -f ".deps/session_impl.Tpo" ".deps/session_impl.Plo"; else rm -f ".deps/session_impl.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -ftemplate-depth-50 -I../include -I../include/libtorrent -DNDEBUG -pthread -march=opteron -O2 -pipe -fforce-addr -MT session_impl.lo -MD -MP -MF .deps/session_impl.Tpo -c session_impl.cpp  -fPIC -DPIC -o .libs/session_impl.o
Preprocessed source stored into /var/tmp/portage/rb_libtorrent-0.11/temp/ccXpJfhW.out file, please attach this to your bugreport.
make[2]: *** [piece_picker.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -ftemplate-depth-50 -I../include -I../include/libtorrent -DNDEBUG -pthread -march=opteron -O2 -pipe -fforce-addr -MT session_impl.lo -MD -MP -MF .deps/session_impl.Tpo -c session_impl.cpp -o session_impl.o >/dev/null 2>&1
make[2]: Leaving directory `/var/tmp/portage/rb_libtorrent-0.11/work/libtorrent-0.11/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/rb_libtorrent-0.11/work/libtorrent-0.11'
make: *** [all] Error 2

!!! ERROR: net-libs/rb_libtorrent-0.11 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  rb_libtorrent-0.11.ebuild, line 35:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


emerge info : here
preprocessed source : here

I have no idea where i should start looking for the problem. Does anybody have an idea?
_________________
The other day, in the park, I was wondering why frisbees look bigger and bigger as they get closer to you
And then it hit me <http://www.bash.org/?479067>
Back to top
View user's profile Send private message
dr4cul4
n00b
n00b


Joined: 19 Mar 2008
Posts: 17

PostPosted: Thu Apr 03, 2008 12:04 pm    Post subject: Problem with those Reply with quote

I'm trying to get btg online, but I can't compile it.

Code:
USE="webinterface" emerge -v btg


Some standard output (boost and rt_libtorrent already emerged, and I get this error:

Code:
/bin/sh ../libtool --tag=CXX --mode=compile i586-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libtorrent   -I..  -pthread  -O2 -march=i586 -pipe -DNDEBUG -DBTG_DEBUG=0 -DBTG_OPTION_SAVESESSIONS=1 -DBTG_OPTION_EVENTCALLBACK=0 -DBTG_OPTION_UPNP=0 -DBTG_OPTION_USECYBERLINK=0  -O2 -march=i586 -pipe -c -o libdaemon_la-limitmgr.lo `test -f 'limitmgr.cpp' || echo './'`limitmgr.cpp
 i586-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libtorrent -I.. -pthread -O2 -march=i586 -pipe -DNDEBUG -DBTG_DEBUG=0 -DBTG_OPTION_SAVESESSIONS=1 -DBTG_OPTION_EVENTCALLBACK=0 -DBTG_OPTION_UPNP=0 -DBTG_OPTION_USECYBERLINK=0 -O2 -march=i586 -pipe -c limitmgr.cpp  -fPIC -DPIC -o .libs/libdaemon_la-limitmgr.o
limitmgr.cpp:25:45: error: libtorrent/allocate_resources.hpp: No such file or directory
/bin/sh ../libtool --tag=CXX --mode=compile i586-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libtorrent   -I..  -pthread  -O2 -march=i586 -pipe -DNDEBUG -DBTG_DEBUG=0 -DBTG_OPTION_SAVESESSIONS=1 -DBTG_OPTION_EVENTCALLBACK=0 -DBTG_OPTION_UPNP=0 -DBTG_OPTION_USECYBERLINK=0  -O2 -march=i586 -pipe -c -o libdaemon_la-daemondata.lo `test -f 'daemondata.cpp' || echo './'`daemondata.cpp
limitmgr.cpp: In member function 'void btg::daemon::sessionData::update(t_int, t_int, t_int, t_long, t_int)':
limitmgr.cpp:179: error: 'class libtorrent::session' has no member named 'm_ul_bandwidth_quota'
limitmgr.cpp:180: error: 'class libtorrent::session' has no member named 'm_ul_bandwidth_quota'
limitmgr.cpp:183: error: 'class libtorrent::session' has no member named 'm_ul_bandwidth_quota'
limitmgr.cpp:183: error: 'libtorrent::resource_request' has not been declared
limitmgr.cpp:187: error: 'class libtorrent::session' has no member named 'm_ul_bandwidth_quota'
limitmgr.cpp:190: error: 'class libtorrent::session' has no member named 'm_dl_bandwidth_quota'
limitmgr.cpp:191: error: 'class libtorrent::session' has no member named 'm_dl_bandwidth_quota'
limitmgr.cpp:194: error: 'class libtorrent::session' has no member named 'm_dl_bandwidth_quota'
limitmgr.cpp:194: error: 'libtorrent::resource_request' has not been declared
limitmgr.cpp:198: error: 'class libtorrent::session' has no member named 'm_dl_bandwidth_quota'
limitmgr.cpp:207: error: 'class libtorrent::session' has no member named 'm_connections_quota'
limitmgr.cpp:208: error: 'class libtorrent::session' has no member named 'm_connections_quota'
limitmgr.cpp:211: error: 'class libtorrent::session' has no member named 'm_connections_quota'
limitmgr.cpp:211: error: 'libtorrent::resource_request' has not been declared
limitmgr.cpp:215: error: 'class libtorrent::session' has no member named 'm_connections_quota'
limitmgr.cpp:224: error: 'class libtorrent::session' has no member named 'm_uploads_quota'
limitmgr.cpp:225: error: 'class libtorrent::session' has no member named 'm_uploads_quota'
limitmgr.cpp:228: error: 'class libtorrent::session' has no member named 'm_uploads_quota'
limitmgr.cpp:228: error: 'libtorrent::resource_request' has not been declared
limitmgr.cpp:232: error: 'class libtorrent::session' has no member named 'm_uploads_quota'
limitmgr.cpp: In member function 'void btg::daemon::sessionData::set()':
limitmgr.cpp:238: error: 'class libtorrent::session' has no member named 'm_ul_bandwidth_quota'
limitmgr.cpp:239: error: 'class libtorrent::session' has no member named 'm_dl_bandwidth_quota'
limitmgr.cpp:241: error: 'class libtorrent::session' has no member named 'm_uploads_quota'
limitmgr.cpp:242: error: 'class libtorrent::session' has no member named 'm_connections_quota'
limitmgr.cpp: In member function 'void btg::daemon::limitManager::work_add()':
limitmgr.cpp:434: error: 'class libtorrent::session' has no member named 'm_ul_bandwidth_quota'
limitmgr.cpp:435: error: 'class libtorrent::session' has no member named 'm_ul_bandwidth_quota'
limitmgr.cpp:436: error: 'class libtorrent::session' has no member named 'm_ul_bandwidth_quota'
limitmgr.cpp:438: error: 'class libtorrent::session' has no member named 'm_dl_bandwidth_quota'
limitmgr.cpp:439: error: 'class libtorrent::session' has no member named 'm_dl_bandwidth_quota'
limitmgr.cpp:440: error: 'class libtorrent::session' has no member named 'm_dl_bandwidth_quota'
limitmgr.cpp:442: error: 'class libtorrent::session' has no member named 'm_uploads_quota'
limitmgr.cpp:443: error: 'class libtorrent::session' has no member named 'm_uploads_quota'
limitmgr.cpp:444: error: 'class libtorrent::session' has no member named 'm_uploads_quota'
limitmgr.cpp:446: error: 'class libtorrent::session' has no member named 'm_connections_quota'
limitmgr.cpp:447: error: 'class libtorrent::session' has no member named 'm_connections_quota'
limitmgr.cpp:448: error: 'class libtorrent::session' has no member named 'm_connections_quota'
limitmgr.cpp: In member function 'void btg::daemon::limitManager::work_update()':
limitmgr.cpp:488: error: 'libtorrent::resource_request' has not been declared
limitmgr.cpp:497: error: 'allocate_resources' is not a member of 'libtorrent'
limitmgr.cpp:499: error: 'm_ul_bandwidth_quota' is not a member of 'libtorrent::session'
limitmgr.cpp:505: error: 'libtorrent::resource_request' has not been declared
limitmgr.cpp:514: error: 'allocate_resources' is not a member of 'libtorrent'
limitmgr.cpp:516: error: 'm_dl_bandwidth_quota' is not a member of 'libtorrent::session'
limitmgr.cpp:521: error: 'libtorrent::resource_request' has not been declared
limitmgr.cpp:530: error: 'allocate_resources' is not a member of 'libtorrent'
limitmgr.cpp:532: error: 'm_uploads_quota' is not a member of 'libtorrent::session'
limitmgr.cpp:538: error: 'libtorrent::resource_request' has not been declared
limitmgr.cpp:547: error: 'allocate_resources' is not a member of 'libtorrent'
limitmgr.cpp:549: error: 'm_connections_quota' is not a member of 'libtorrent::session'
 i586-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libtorrent -I.. -pthread -O2 -march=i586 -pipe -DNDEBUG -DBTG_DEBUG=0 -DBTG_OPTION_SAVESESSIONS=1 -DBTG_OPTION_EVENTCALLBACK=0 -DBTG_OPTION_UPNP=0 -DBTG_OPTION_USECYBERLINK=0 -O2 -march=i586 -pipe -c daemondata.cpp  -fPIC -DPIC -o .libs/libdaemon_la-daemondata.o
make[3]: *** [libdaemon_la-limitmgr.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 i586-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libtorrent -I.. -pthread -O2 -march=i586 -pipe -DNDEBUG -DBTG_DEBUG=0 -DBTG_OPTION_SAVESESSIONS=1 -DBTG_OPTION_EVENTCALLBACK=0 -DBTG_OPTION_UPNP=0 -DBTG_OPTION_USECYBERLINK=0 -O2 -march=i586 -pipe -c daemondata.cpp -o libdaemon_la-daemondata.o >/dev/null 2>&1
make[3]: Leaving directory `/var/tmp/portage/net-p2p/btg-0.9.6-r1/work/btg-0.9.6/daemon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-p2p/btg-0.9.6-r1/work/btg-0.9.6/daemon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-p2p/btg-0.9.6-r1/work/btg-0.9.6'
make: *** [all] Error 2
 *
 * ERROR: net-p2p/btg-0.9.6-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2035:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-p2p/btg-0.9.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-p2p/btg-0.9.6-r1/temp/environment'.
 *

 * Messages for package net-p2p/btg-0.9.6-r1:

 *
 * ERROR: net-p2p/btg-0.9.6-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2035:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-p2p/btg-0.9.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-p2p/btg-0.9.6-r1/temp/environment'.
 *


Help !
Back to top
View user's profile Send private message
Oak
Apprentice
Apprentice


Joined: 25 Jan 2005
Posts: 239
Location: Sweden

PostPosted: Wed Jul 16, 2008 1:54 pm    Post subject: Reply with quote

Continued from https://forums.gentoo.org/viewtopic-t-600362-postdays-0-postorder-asc-start-0.html, which seems more correct since the old thread was about rtorrent and not btg.

I think I had the fPIC problem with 0.9.6 or maybe it was with rb_libtorrent-v0.13. I can't reproduce the problem at the moment, so I'm sorry I can't be more specific. I'll let you know if I remember or reproduce it.
_________________
GCC-4.3.3-r1 - march=core2, gentoo-sources-2.6.30-r2 SMP x86_64 @ Core2Duo 2.4GHz, 4GB RAM
Back to top
View user's profile Send private message
biatch0
n00b
n00b


Joined: 25 May 2004
Posts: 40

PostPosted: Fri May 15, 2009 12:25 pm    Post subject: Reply with quote

Look around on the BTG site after seeing it in a number of threads and fell in love with the WebUI; clean + sexy!

- emerged fine on x86_64
- configuration was a little hairy (docs are a little lightweight)
- daemon runs fine
- CLI loads and downloads torrents
- WebUI refuses to work :(

I seem to have run into this bug: https://lists.berlios.de/pipermail/btg-devel/2008-November/000069.html
Code:
When the browser submits the login page the following error is visible
in the debug output:

expat reports error code 2
        description: syntax error
        line: 1
        column: 0
        byte index: 0
        total bytes: 0

        data beginning 0 before byte index: POST / HTTP/1.0
Host: 127.0.0.1
Content-Type: text/xml
Use [2008-Nov-24 21:05:53] hdl: alive.


Further on in that thread (thread died without solution):
Quote:
Well, it took me some effort to update to 0.9.9-RC2 (I am running on an
AMD64):

I'm also running Gentoo on AMD64 :cry:

Anyone else with information on this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum