In file included from ./../data/block.h:42:0, from peer.cc:39: ./../../torrent/data/block_transfer.h: In member function ‘bool torrent::BlockTransfer::is_valid() const’: ./../../torrent/data/block_transfer.h:60:73: error: ‘NULL’ was not declared in this scope In file included from peer.cc:39:0: ./../data/block.h: In constructor ‘torrent::Block::Block()’: ./../data/block.h:57:39: error: ‘NULL’ was not declared in this scope ./../data/block.h: In member function ‘bool torrent::Block::is_finished() const’: ./../data/block.h:61:95: error: ‘NULL’ was not declared in this scope In file included from peer.cc:39:0: ./../data/block.h: In member function ‘bool torrent::Block::is_transfering() const’: ./../data/block.h:62:95: error: ‘NULL’ was not declared in this scope ./../data/block.h: In member function ‘bool torrent::Block::is_peer_queued(const torrent::PeerInfo*) const’: ./../data/block.h:64:101: error: ‘NULL’ was not declared in this scope ./../data/block.h: In member function ‘bool torrent::Block::is_peer_transfering(const torrent::PeerInfo*) const’: ./../data/block.h:65:103: error: ‘NULL’ was not declared in this scope ./../data/block.h: In member function ‘torrent::BlockTransfer* torrent::Block::find(const torrent::PeerInfo*)’: ./../data/block.h:149:38: error: ‘NULL’ was not declared in this scope ./../data/block.h: In member function ‘const torrent::BlockTransfer* torrent::Block::find(const torrent::PeerInfo*) const’: ./../data/block.h:159:38: error: ‘NULL’ was not declared in this scope make[4]: *** [peer.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/var/tmp/portage/net-libs/libtorrent-0.12.6/work/libtorrent-0.12.6/src/torrent/peer' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/net-libs/libtorrent-0.12.6/work/libtorrent-0.12.6/src/torrent' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-libs/libtorrent-0.12.6/work/libtorrent-0.12.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-libs/libtorrent-0.12.6/work/libtorrent-0.12.6' make: *** [all] Error 2 Reproducible: Always
Created attachment 269607 [details] build.log
Created attachment 269609 [details, diff] libtorrent-0.12.6-gcc46.patch
I sort of accidentaly re-created your patch, but it seems to work for me and gcc-4.6.0. Committed to repo, should be on mirrors shortly