On Mon 09 Oct 2017 at 22:15:06 +0200, Rhialto wrote: > On Sun 08 Oct 2017 at 19:23:27 +0200, Rhialto wrote: > > I'm unsure how to continue working around what clearly seems a g++ bug. > > Off-list I got the hint to try clang instead. Strangely enough that > makes no difference... the library still has the symbol undefined: > > pkg_comp:default70.conf# nm /usr/pkg/lib/libtorrent.so|grep bucket_count > U _ZN7torrent22request_list_constants12bucket_countE > > and rtorrent's configure phase still failed for the same reason. nm showed that the undefined reference was even from src/protocol/request_list.o. I varied my patches and what eventually worked was a simple definition, not an initialisation, of torrent::request_list_constants::bucket_count, like so: --- src/protocol/request_list.cc.orig 2015-08-08 15:01:49.000000000 +0000 +++ src/protocol/request_list.cc @@ -51,26 +51,27 @@ #include "request_list.h" namespace torrent { + const int request_list_constants::bucket_count; I didn't cut out the rest of the changes (replacing bucket_count with a #define) but that should not be needed. Maybe I'll try that later to make sure. -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly.
Attachment:
signature.asc
Description: PGP signature