Author

Topic: boost version for building 0.3.20? (Read 2131 times)

newbie
Activity: 25
Merit: 0
February 25, 2011, 04:37:23 AM
#5
Thanks again,

I downgraded from openssl 1.0 to 9.x and now the whole project builds perfectly
newbie
Activity: 25
Merit: 0
February 23, 2011, 11:06:51 AM
#4
Thanks!

downgrading to boost-static-devel has made most of the errors go away, now it's only complaining about boost's context_service.hpp

g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -I"/usr/local/ssl/include/" -o obj/nogui/rpc.o rpc.cpp
In file included from /usr/include/boost/asio/ssl/context_service.hpp:31,
                 from /usr/include/boost/asio/ssl/context.hpp:23,
                 from /usr/include/boost/asio/ssl.hpp:20,
                 from rpc.cpp:13:
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp: In member function âvoid boost::asio::ssl::detail::openssl_context_service::create(SSL_CTX*&, boost::asio::ssl::context_base::method)â:
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:74: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:77: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:80: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:83: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:86: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:89: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:92: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:95: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:98: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:101: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:104: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:107: error: invalid conversion from âconst SSL_METHOD*â to âSSL_METHOD*â
make: *** [obj/nogui/rpc.o] Error 1
donator
Activity: 826
Merit: 1060
February 23, 2011, 10:16:42 AM
#3
I'm running fedora core 12, with kernel 2.6.30, openssl 1.0.0 (installed by hand), and boost version 1.45.

unfortunately I had to change some of the static linked libraries to dynamic linked libraries for boost and db_cxx (I seem to be lacking .a files, I've only got .so files so I had to change the linker flags in the Makefile)

You need to stick with the static libs, else you're on your own. You can install them from package boost-static.

I'm now using Fedora 14, but when I was using Fedora 12 I was able to compile bitcoin using boost-static-1.39.0 as described here:
https://bitcointalksearch.org/topic/m.22412
LZ
legendary
Activity: 1722
Merit: 1072
P2P Cryptocurrency
February 23, 2011, 09:33:29 AM
#2
I absolutely do not understand boost's code and its terrible subversion repository.
But I think that Bitcoin is just not compatible with your new boost version yet. Tongue

In the build-unix.txt file you can read that it is required the old boost version 1.37.

http://svn.boost.org/svn/boost/tags/release/Boost_1_45_0/libs/system/src/error_code.cpp
Code:
namespace boost
{
  namespace system
  {
[...]
    BOOST_SYSTEM_DECL const error_category & generic_category()
    {
      static const generic_error_category generic_category_const;
      return generic_category_const;
    }
[...]
  } // namespace system
} // namespace boost

http://svn.boost.org/svn/boost/tags/release/Boost_1_37_0/libs/system/src/error_code.cpp
Code:
namespace boost
{
  namespace system
  {
[...]
    BOOST_SYSTEM_DECL const error_category & get_generic_category()
    {
      static const generic_error_category generic_category_const;
      return generic_category_const;
    }
[...]
  } // namespace system
} // namespace boost

get_generic_category() ↔ generic_category()
newbie
Activity: 25
Merit: 0
February 23, 2011, 07:52:55 AM
#1
Hi All,

I'm trying to apply the getblock patch

http://yyz.us/bitcoin/patch.bitcoin-getblock

to the source of Bitcoin 0.3.20, and I've successfully merged the changes to rpc.cpp in.

I'm running fedora core 12, with kernel 2.6.30, openssl 1.0.0 (installed by hand), and boost version 1.45.

unfortunately I had to change some of the static linked libraries to dynamic linked libraries for boost and db_cxx (I seem to be lacking .a files, I've only got .so files so I had to change the linker flags in the Makefile)

now I'm running into problems with building bitcoind
eg:
/usr/local/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::generic_category()'

please help!

Cheers,
nos
Jump to: