Fixed compile error on Debian jessie (gcc version 4.8.2)
Missed stdint.h in alert.cpp
Fixed compile error on Debian jessie (gcc version 4.8.2)
Missed stdint.h in alert.cpp
ACK -- though it would have been nice to paste the actual compiler (a) execution command and (b) precise error output.
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/74f66a5e2901136f22e221dfa2ee425b585cd80d for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
This was my output after pulling the last git head (master), running ./autogen.sh and ./configure --with-incompatible-bdb and make
Solved by addding stdint.h to alert.cpp
$ make
Making all in src
make[1]: Entering directory `/home/mikalv/repos/git/cpp/bitcoin/src'
make all-recursive
make[2]: Entering directory `/home/mikalv/repos/git/cpp/bitcoin/src'
Making all in .
make[3]: Entering directory `/home/mikalv/repos/git/cpp/bitcoin/src'
CXX addrman.o
CXX alert.o
In file included from /usr/include/boost/atomic.hpp:12:0,
from /usr/include/boost/thread/pthread/once_atomic.hpp:20,
from /usr/include/boost/thread/once.hpp:20,
from allocators.h:14,
from serialize.h:9,
from alert.h:9,
from alert.cpp:6:
/usr/include/boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope
typedef atomic<uintptr_t> atomic_uintptr_t;
^
/usr/include/boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
typedef atomic<uintptr_t> atomic_uintptr_t;
^
/usr/include/boost/atomic/atomic.hpp:202:43: error: invalid type in declaration before ‘;’ token
typedef atomic<uintptr_t> atomic_uintptr_t;
^
make[3]: *** [alert.o] Error 1
make[3]: Leaving directory `/home/mikalv/repos/git/cpp/bitcoin/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mikalv/repos/git/cpp/bitcoin/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mikalv/repos/git/cpp/bitcoin/src'
make: *** [all-recursive] Error 1
ACK