Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 363243

Summary: net-libs/libtorrent-{0.12.6,0.12.7} with gcc-4.6 - ./../../torrent/data/block_transfer.h:60:73: error: ‘NULL’ was not declared in this scope
Product: Gentoo Linux Reporter: iGentoo <AlphatPC>
Component: [OLD] LibraryAssignee: Gentoo net-p2p team <net-p2p>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 346809    
Attachments: build.log
libtorrent-0.12.6-gcc46.patch

Description iGentoo 2011-04-12 07:04:27 UTC
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
Comment 1 iGentoo 2011-04-12 07:05:45 UTC
Created attachment 269607 [details]
build.log
Comment 2 iGentoo 2011-04-12 07:06:28 UTC
Created attachment 269609 [details, diff]
libtorrent-0.12.6-gcc46.patch
Comment 3 Stanislav Ochotnicky (RETIRED) gentoo-dev 2011-04-13 21:41:19 UTC
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