Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363243 - 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
Summary: net-libs/libtorrent-{0.12.6,0.12.7} with gcc-4.6 - ./../../torrent/data/block...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.6
  Show dependency tree
 
Reported: 2011-04-12 07:04 UTC by iGentoo
Modified: 2011-04-13 21:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,19.90 KB, text/plain)
2011-04-12 07:05 UTC, iGentoo
Details
libtorrent-0.12.6-gcc46.patch (libtorrent-0.12.6-gcc46.patch,1.42 KB, patch)
2011-04-12 07:06 UTC, iGentoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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