Ticket #1186 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

Will DHT work on FreeBSD yet?

Reported by: webmin@fleshmetal.com.au Owned by: rakshasa
Priority: normal Component: libtorrent
Version: Severity: normal
Keywords: Cc:

Description

Hi Guys,

I have been trying to add the DHT capability to my FreeBSD installation of rtorrent and have been running into a strange issue when installing libtorrent.

I have merged the r1025 trunk into the ported source files found in /usr/ports/net-p2p/rtorrent/, with no success. I have also tried a number of different methods, but they all result in the same error, I use this example as I believe it it the best option for FreeBSD compatibility.

I have attached my merged source and the ported source to this ticket.

After running make on the revised source I receive this error:

  g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../.. -g -O2 -g -DDEBUG -fvisibility=hidden -I/usr/local/include -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -MT tracker_control.lo -MD -MP -MF .deps/tracker_control.Tpo -c tracker_control.cc  -fPIC -DPIC -o .libs/tracker_control.o
  tracker_control.cc: In member function 'void torrent::TrackerControl::insert(int, const std::string&)':
  tracker_control.cc:71: error: no matching function for call to 'torrent::TrackerHttp::TrackerHttp(torrent::DownloadInfo*&, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
  tracker_http.h:51: note: candidates are: torrent::TrackerHttp::TrackerHttp(torrent::TrackerList*, const std::string&)
  tracker_http.h:49: note: torrent::TrackerHttp::TrackerHttp(consttorrent::TrackerHttp&)
  tracker_control.cc:74: error: no matching function for call to 'torrent::TrackerUdp::TrackerUdp(torrent::DownloadInfo*&, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
  tracker_udp.h:57: note: candidates are: torrent::TrackerUdp::TrackerUdp(torrent::TrackerList*, const std::string&)
  tracker_udp.h:50: note: torrent::TrackerUdp::TrackerUdp(const torrent::TrackerUdp&)
  *** Error code 1
  
  Stop in /root/sources/libtorrent-0.11.9-SVN1025-PORT/src/tracker.
  *** Error code 1
  
  Stop in /root/sources/libtorrent-0.11.9-SVN1025-PORT/src.
  *** Error code 1
  
  Stop in /root/sources/libtorrent-0.11.9-SVN1025-PORT.
  *** Error code 1

I have tried to figure out what it means, even in the slightest, but I just don't have the know how. I was using FreeBSD 6.2 but it had some very old deps, I upgraded to 7.0 and am still having the exact same result.

Is there a simpler way to add DHT support to rtorrent/libtorrent? Perhaps someone can send me an SVN since 1013 that is known to work with FreeBSD?

Thanks for your time.

Dan

Change History

Changed 4 years ago by rakshasa

  • status changed from new to closed
  • resolution set to invalid

Don't post distro specific bug reports.

Note: See TracTickets for help on using tickets.