Ticket #925 (new defect)

Opened 3 years ago

Last modified 19 months ago

Simple client 0.9 doesn't compile

Reported by: shingara@gmail.com Owned by: rakshasa
Priority: normal Milestone:
Component: libtorrent Version:
Severity: normal Keywords:
Cc:

Description

The simple client 0.9 doesn't compile with libtorrent 0.11. I have this error :

shingara@shalamarette ~/download/simple_client_0_9 $ make
g++ -O3 -g -Wall -Werror `pkg-config --cflags sigc++-2.0 libtorrent` `curl-config --cflags` -c curl_get.cc
g++ -O3 -g -Wall -Werror `pkg-config --cflags sigc++-2.0 libtorrent` `curl-config --cflags` -c curl_stack.cc
g++ -O3 -g -Wall -Werror `pkg-config --cflags sigc++-2.0 libtorrent` `curl-config --cflags` -c main.cc
main.cc: In function ‘void chunk_passed(torrent::Download)’:
main.cc:29: erreur: ‘class torrent::Download’ has no member named ‘chunks_done’
main.cc:29: erreur: ‘class torrent::Download’ has no member named ‘chunks_total’
main.cc: In function ‘void http_done(torrent::Http*)’:
main.cc:73: erreur: no matching function for call to ‘torrent::Download::hash_check()’
/usr/include/torrent/download.h:72: note: candidats sont: bool torrent::Download::hash_check(bool)
make: *** [main.o] Erreur 1

Attachments

main.cc.patch (0.6 KB) - added by Brice.Lin@gmail.com 3 years ago.
Patch to remove compilation errors from main.cc
main.cc (5.1 KB) - added by deepgreen 21 months ago.

Change History

Changed 3 years ago by rakshasa

If youhave a patch to fix it, please do post it.

Changed 3 years ago by Brice.Lin@gmail.com

Patch to remove compilation errors from main.cc

Changed 21 months ago by deepgreen

Changed 21 months ago by anonymous

Previous patch eliminate the compilation error, but won't work properly.

After the signal signal_chunk_passed is emitted, the chunk_passed function will be triggered, but it actually does nothing, download won't start.

Let d.signal_chunk_passed connect to hash_check_done will solve the problem.

Changed 19 months ago by anonymous

Is the 07/14/07 05:00:45 changed by  Brice.Lin@gmail.com one defective or the 06/12/08 18:34:42 changed by deepgreen? Either way, which patch should I apply?

Graciously yours, Anonymous

Changed 19 months ago by anonymous

The simple client has not been updated in ages, and will probably take a considerable amount of work to function with a recent libtorrent. I doubt that a simple patch will suffice.

Add/Change #925 (Simple client 0.9 doesn't compile)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.