Page 1 of 1

Error svn 1260 [SOLVED]

Posted: Sat Aug 04, 2007 6:17 am
by shirish
Hi all,
I updated the svn one & I got error while compiling :-

Code: Select all

src/deluge_core.cpp: In function ‘libtorrent::partial_piece_info internal_get_piece_info(libtorrent::torrent_handle, long int)’:
src/deluge_core.cpp:195: warning: control reaches end of non-void function
g++ -pthread -shared -Wl,-O1 build/temp.linux-i686-2.5/libtorrent/src/torrent.o build/temp.linux-i686-2.5/libtorrent/src/ip_filter.o build/temp.linux-i686-2.5/libtorrent/src/socks4_stream.o build/temp.linux-i686-2.5/libtorrent/src/identify_client.o build/temp.linux-i686-2.5/libtorrent/src/bt_peer_connection.o build/temp.linux-i686-2.5/libtorrent/src/peer_connection.o build/temp.linux-i686-2.5/libtorrent/src/stat.o build/temp.linux-i686-2.5/libtorrent/src/connection_queue.o build/temp.linux-i686-2.5/libtorrent/src/http_stream.o build/temp.linux-i686-2.5/libtorrent/src/tracker_manager.o build/temp.linux-i686-2.5/libtorrent/src/udp_tracker_connection.o build/temp.linux-i686-2.5/libtorrent/src/socks5_stream.o build/temp.linux-i686-2.5/libtorrent/src/file.o build/temp.linux-i686-2.5/libtorrent/src/sha1.o build/temp.linux-i686-2.5/libtorrent/src/ut_pex.o build/temp.linux-i686-2.5/libtorrent/src/torrent_info.o build/temp.linux-i686-2.5/libtorrent/src/metadata_transfer.o build/temp.linux-i686-2.5/libtorrent/src/session_impl.o build/temp.linux-i686-2.5/libtorrent/src/policy.o build/temp.linux-i686-2.5/libtorrent/src/logger.o build/temp.linux-i686-2.5/libtorrent/src/lsd.o build/temp.linux-i686-2.5/libtorrent/src/file_pool.o build/temp.linux-i686-2.5/libtorrent/src/piece_picker.o build/temp.linux-i686-2.5/libtorrent/src/escape_string.o build/temp.linux-i686-2.5/libtorrent/src/storage.o build/temp.linux-i686-2.5/libtorrent/src/entry.o build/temp.linux-i686-2.5/libtorrent/src/upnp.o build/temp.linux-i686-2.5/libtorrent/src/pe_crypto.o build/temp.linux-i686-2.5/libtorrent/src/alert.o build/temp.linux-i686-2.5/libtorrent/src/instantiate_connection.o build/temp.linux-i686-2.5/libtorrent/src/http_connection.o build/temp.linux-i686-2.5/libtorrent/src/disk_io_thread.o build/temp.linux-i686-2.5/libtorrent/src/allocate_resources.o build/temp.linux-i686-2.5/libtorrent/src/session.o build/temp.linux-i686-2.5/libtorrent/src/web_peer_connection.o build/temp.linux-i686-2.5/libtorrent/src/natpmp.o build/temp.linux-i686-2.5/libtorrent/src/http_tracker_connection.o build/temp.linux-i686-2.5/libtorrent/src/torrent_handle.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/node.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/dht_tracker.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/routing_table.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/traversal_algorithm.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/closest_nodes.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/refresh.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/find_data.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/rpc_manager.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/node_id.o build/temp.linux-i686-2.5/src/deluge_core.o -lboost_filesystem -lboost_date_time -lboost_thread -lz -lpthread -lssl -o build/lib.linux-i686-2.5/deluge/deluge_core.so
/usr/bin/ld: cannot find -lboost_filesystem
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
make: *** [all] Error 1
I was using 'make' to do the compiling, eternalswd told me
shirish, by the way, are you one of the people that has to manually update setup.py, because if so it probably got overwritten with the last svn update
I dunno what he meant about manually updating setup.py? If he meant if I do svn up & then do make then yes.

Anyway this happpened twice, then I cleaned up the deluge svn & checked out the whole tree afresh & still came up with the above error.

I just made clean & going through the

Code: Select all

python setup.py build
thing, let's see if it does make any difference, if not then I'm afraid I need some help/guidance.

Update :- With further counselling with eternalswd , he asked me to try & see if adding my distro, 7.10 to the line 113 makes any difference, so I did that, made clean & restarted again , it still has the same issue as given before, this is how I edited the line.

Before edit :-

Code: Select all

  if os.WEXITSTATUS(os.system('grep -iq "Debian GNU/Linux 4.0\|Ubuntu 7.04\|Ubuntu 6.06\|Ubuntu 6.10\Fedora Core release 6\|openSUSE 10.2\|Mandriva Linux release 2007.1\|Fedora release 7\|BLAG release 60001\|Yellow Dog Linux release 5.0 (Phoenix)\|CentOS release 5 (Final)" /etc/issue')) == 0:
After edit :-

Code: Select all

  if os.WEXITSTATUS(os.system('grep -iq "Debian GNU/Linux 4.0\Ubuntu7.10\|Ubuntu 7.04\|Ubuntu 6.06\|Ubuntu 6.10\Fedora Core release 6\|openSUSE 10.2\|Mandriva Linux release 2007.1\|Fedora release 7\|BLAG release 60001\|Yellow Dog Linux release 5.0 (Phoenix)\|CentOS release 5 (Final)" /etc/issue')) == 0:
Aha, found little mistake, there should be a space between Ubuntu & 7.10 , did that, let's see if that was the issue.

Re: Error svn 1260

Posted: Sat Aug 04, 2007 7:19 am
by markybob
shirish wrote:Hi all,
I updated the svn one & I got error while compiling :-

Code: Select all

src/deluge_core.cpp: In function ‘libtorrent::partial_piece_info internal_get_piece_info(libtorrent::torrent_handle, long int)’:
src/deluge_core.cpp:195: warning: control reaches end of non-void function
g++ -pthread -shared -Wl,-O1 build/temp.linux-i686-2.5/libtorrent/src/torrent.o build/temp.linux-i686-2.5/libtorrent/src/ip_filter.o build/temp.linux-i686-2.5/libtorrent/src/socks4_stream.o build/temp.linux-i686-2.5/libtorrent/src/identify_client.o build/temp.linux-i686-2.5/libtorrent/src/bt_peer_connection.o build/temp.linux-i686-2.5/libtorrent/src/peer_connection.o build/temp.linux-i686-2.5/libtorrent/src/stat.o build/temp.linux-i686-2.5/libtorrent/src/connection_queue.o build/temp.linux-i686-2.5/libtorrent/src/http_stream.o build/temp.linux-i686-2.5/libtorrent/src/tracker_manager.o build/temp.linux-i686-2.5/libtorrent/src/udp_tracker_connection.o build/temp.linux-i686-2.5/libtorrent/src/socks5_stream.o build/temp.linux-i686-2.5/libtorrent/src/file.o build/temp.linux-i686-2.5/libtorrent/src/sha1.o build/temp.linux-i686-2.5/libtorrent/src/ut_pex.o build/temp.linux-i686-2.5/libtorrent/src/torrent_info.o build/temp.linux-i686-2.5/libtorrent/src/metadata_transfer.o build/temp.linux-i686-2.5/libtorrent/src/session_impl.o build/temp.linux-i686-2.5/libtorrent/src/policy.o build/temp.linux-i686-2.5/libtorrent/src/logger.o build/temp.linux-i686-2.5/libtorrent/src/lsd.o build/temp.linux-i686-2.5/libtorrent/src/file_pool.o build/temp.linux-i686-2.5/libtorrent/src/piece_picker.o build/temp.linux-i686-2.5/libtorrent/src/escape_string.o build/temp.linux-i686-2.5/libtorrent/src/storage.o build/temp.linux-i686-2.5/libtorrent/src/entry.o build/temp.linux-i686-2.5/libtorrent/src/upnp.o build/temp.linux-i686-2.5/libtorrent/src/pe_crypto.o build/temp.linux-i686-2.5/libtorrent/src/alert.o build/temp.linux-i686-2.5/libtorrent/src/instantiate_connection.o build/temp.linux-i686-2.5/libtorrent/src/http_connection.o build/temp.linux-i686-2.5/libtorrent/src/disk_io_thread.o build/temp.linux-i686-2.5/libtorrent/src/allocate_resources.o build/temp.linux-i686-2.5/libtorrent/src/session.o build/temp.linux-i686-2.5/libtorrent/src/web_peer_connection.o build/temp.linux-i686-2.5/libtorrent/src/natpmp.o build/temp.linux-i686-2.5/libtorrent/src/http_tracker_connection.o build/temp.linux-i686-2.5/libtorrent/src/torrent_handle.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/node.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/dht_tracker.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/routing_table.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/traversal_algorithm.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/closest_nodes.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/refresh.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/find_data.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/rpc_manager.o build/temp.linux-i686-2.5/libtorrent/src/kademlia/node_id.o build/temp.linux-i686-2.5/src/deluge_core.o -lboost_filesystem -lboost_date_time -lboost_thread -lz -lpthread -lssl -o build/lib.linux-i686-2.5/deluge/deluge_core.so
/usr/bin/ld: cannot find -lboost_filesystem
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
make: *** [all] Error 1
I was using 'make' to do the compiling, eternalswd told me
shirish, by the way, are you one of the people that has to manually update setup.py, because if so it probably got overwritten with the last svn update
I dunno what he meant about manually updating setup.py? If he meant if I do svn up & then do make then yes.

Anyway this happpened twice, then I cleaned up the deluge svn & checked out the whole tree afresh & still came up with the above error.

I just made clean & going through the

Code: Select all

python setup.py build
thing, let's see if it does make any difference, if not then I'm afraid I need some help/guidance.

Update :- With further counselling with eternalswd , he asked me to try & see if adding my distro, 7.10 to the line 113 makes any difference, so I did that, made clean & restarted again , it still has the same issue as given before, this is how I edited the line.

Before edit :-

Code: Select all

  if os.WEXITSTATUS(os.system('grep -iq "Debian GNU/Linux 4.0\|Ubuntu 7.04\|Ubuntu 6.06\|Ubuntu 6.10\Fedora Core release 6\|openSUSE 10.2\|Mandriva Linux release 2007.1\|Fedora release 7\|BLAG release 60001\|Yellow Dog Linux release 5.0 (Phoenix)\|CentOS release 5 (Final)" /etc/issue')) == 0:
After edit :-

Code: Select all

  if os.WEXITSTATUS(os.system('grep -iq "Debian GNU/Linux 4.0\Ubuntu7.10\|Ubuntu 7.04\|Ubuntu 6.06\|Ubuntu 6.10\Fedora Core release 6\|openSUSE 10.2\|Mandriva Linux release 2007.1\|Fedora release 7\|BLAG release 60001\|Yellow Dog Linux release 5.0 (Phoenix)\|CentOS release 5 (Final)" /etc/issue')) == 0:
Aha, found little mistake, there should be a space between Ubuntu & 7.10 , did that, let's see if that was the issue.
this is a perfect example of why you shouldnt mess with stuff you dont understand. 7.10, or gutsy, isnt on that list because it shouldnt be. you shouldnt have added it yourself.

Re: Error svn 1260

Posted: Sat Aug 04, 2007 7:29 am
by shirish
point taken, eternalswd told me hence I did it, he sends quite a few patches hence thought he would be able to guide me & you were not around. also did the corrections told by Pizzaking but ended up with no difference.

Code: Select all

     if os.WEXITSTATUS(os.system('grep -iq "Debian GNU/Linux 4.0\|Ubuntu 7.10\|Ubuntu 7.04\|Ubuntu 6.06\|Ubuntu 6.10\Fedora Core release 6\|openSUSE 10.2\|Mandriva Linux release 2007.1\|Fedora release 7\|BLAG release 60001\|Yellow Dog Linux release 5.0 (Phoenix)\|CentOS release 5 (Final)" /etc/issue')) == 0:
Anyways markybob did an update , trying out svn 1261 now, let's see if that fixes things up. It finally did, I was able to compile it , whoohaaa