Hi,
I get a compilation error when building under Ubuntu Lucid in an x86_64 arch. I just got the latest version from github, and the only modification I made was adding the following code to the end of cmake-bitcoinr/CMakeLists.txt as described previously in this thread.
IF(NOT WIN32)
TARGET_LINK_LIBRARIES(bitcoinr pthread)
ENDIF(NOT WIN32)
Anyway, though the invocation of 'cmake .' succeeds:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.40.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- program_options
-- regex
-- system
-- thread
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so
-- Found BerkeleyDB: /usr/lib/libdb.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/smark/software/bitcoin-pool
the actual compilation fails:
smark@mymachine:~/software/bitcoin-pool$ make
[ 11%] Building CXX object cmake-bitcoinr/CMakeFiles/bitcoinr.dir/__/src/remote/remoteminerclient.cpp.o
In file included from /home/smark/software/bitcoin-pool/src/remote/../headers.h:127,
from /home/smark/software/bitcoin-pool/src/remote/remotebitcoinheaders.h:33,
from /home/smark/software/bitcoin-pool/src/remote/remoteminerclient.h:30,
from /home/smark/software/bitcoin-pool/src/remote/remoteminerclient.cpp:19:
/home/smark/software/bitcoin-pool/src/remote/../net.h: In member function ‘void CNode::EndMessage()’:
/home/smark/software/bitcoin-pool/src/remote/../net.h:710: warning: invalid access to non-static data member ‘CMessageHeader::nMessageSize’ of NULL object
/home/smark/software/bitcoin-pool/src/remote/../net.h:710: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
/home/smark/software/bitcoin-pool/src/remote/../net.h:718: warning: invalid access to non-static data member ‘CMessageHeader::nChecksum’ of NULL object
/home/smark/software/bitcoin-pool/src/remote/../net.h:718: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
/home/smark/software/bitcoin-pool/src/remote/../net.h:719: warning: invalid access to non-static data member ‘CMessageHeader::nChecksum’ of NULL object
/home/smark/software/bitcoin-pool/src/remote/../net.h:719: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
/home/smark/software/bitcoin-pool/src/remote/remoteminerclient.cpp: In member function ‘void RemoteMinerClient::SendFoundHash(int64, const std::vector >&, unsigned int)’:
/home/smark/software/bitcoin-pool/src/remote/remoteminerclient.cpp:631: error: conversion from ‘long long int’ to ‘const json_spirit::Value_impl, std::allocator > > >’ is ambiguous
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:283: note: candidates are: json_spirit::Value_impl::Value_impl(double) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:275: note: json_spirit::Value_impl::Value_impl(uint64_t) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:267: note: json_spirit::Value_impl::Value_impl(int64_t) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:259: note: json_spirit::Value_impl::Value_impl(int) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:251: note: json_spirit::Value_impl::Value_impl(bool) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:219: note: json_spirit::Value_impl::Value_impl(typename Config::String_type::const_pointer) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/remoteminerclient.cpp:637: error: conversion from ‘int64’ to ‘const json_spirit::Value_impl, std::allocator > > >’ is ambiguous
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:283: note: candidates are: json_spirit::Value_impl::Value_impl(double) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:275: note: json_spirit::Value_impl::Value_impl(uint64_t) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:267: note: json_spirit::Value_impl::Value_impl(int64_t) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:259: note: json_spirit::Value_impl::Value_impl(int) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:251: note: json_spirit::Value_impl::Value_impl(bool) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:219: note: json_spirit::Value_impl::Value_impl(typename Config::String_type::const_pointer) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/remoteminerclient.cpp: In member function ‘void RemoteMinerClient::SendMetaHash(int64, const std::vector >&, unsigned int, const std::vector >&, const uint256&, unsigned int)’:
/home/smark/software/bitcoin-pool/src/remote/remoteminerclient.cpp:658: error: conversion from ‘long long int’ to ‘const json_spirit::Value_impl, std::allocator > > >’ is ambiguous
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:283: note: candidates are: json_spirit::Value_impl::Value_impl(double) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:275: note: json_spirit::Value_impl::Value_impl(uint64_t) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:267: note: json_spirit::Value_impl::Value_impl(int64_t) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:259: note: json_spirit::Value_impl::Value_impl(int) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:251: note: json_spirit::Value_impl::Value_impl(bool) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:219: note: json_spirit::Value_impl::Value_impl(typename Config::String_type::const_pointer) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/remoteminerclient.cpp:664: error: conversion from ‘int64’ to ‘const json_spirit::Value_impl, std::allocator > > >’ is ambiguous
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:283: note: candidates are: json_spirit::Value_impl::Value_impl(double) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:275: note: json_spirit::Value_impl::Value_impl(uint64_t) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:267: note: json_spirit::Value_impl::Value_impl(int64_t) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:259: note: json_spirit::Value_impl::Value_impl(int) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:251: note: json_spirit::Value_impl::Value_impl(bool) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:219: note: json_spirit::Value_impl::Value_impl(typename Config::String_type::const_pointer) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/remoteminerclient.cpp:667: error: conversion from ‘int64’ to ‘const json_spirit::Value_impl, std::allocator > > >’ is ambiguous
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:283: note: candidates are: json_spirit::Value_impl::Value_impl(double) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:275: note: json_spirit::Value_impl::Value_impl(uint64_t) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:267: note: json_spirit::Value_impl::Value_impl(int64_t) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:259: note: json_spirit::Value_impl::Value_impl(int) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:251: note: json_spirit::Value_impl::Value_impl(bool) [with Config = json_spirit::Config_vector, std::allocator > >]
/home/smark/software/bitcoin-pool/src/remote/../json/json_spirit_value.h:219: note: json_spirit::Value_impl::Value_impl(typename Config::String_type::const_pointer) [with Config = json_spirit::Config_vector, std::allocator > >]
make[2]: *** [cmake-bitcoinr/CMakeFiles/bitcoinr.dir/__/src/remote/remoteminerclient.cpp.o] Error 1
make[1]: *** [cmake-bitcoinr/CMakeFiles/bitcoinr.dir/all] Error 2
make: *** [all] Error 2
Any idea of what might wrong here? Thanks in advance!
Jon.