Bitcoin Forum
December 04, 2016, 04:28:03 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: boost version for building 0.3.20?  (Read 1796 times)
nounderscores
Newbie
*
Offline Offline

Activity: 23


View Profile
February 23, 2011, 12:52:55 PM
#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

If you liked my post, please send me a bitcoin!

BC: 1J4ous6vWH8bJJ9MRRG1k8Fb9JXZeUMqu3
1480868883
Hero Member
*
Offline Offline

Posts: 1480868883

View Profile Personal Message (Offline)

Ignore
1480868883
Reply with quote  #2

1480868883
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480868883
Hero Member
*
Offline Offline

Posts: 1480868883

View Profile Personal Message (Offline)

Ignore
1480868883
Reply with quote  #2

1480868883
Report to moderator
1480868883
Hero Member
*
Offline Offline

Posts: 1480868883

View Profile Personal Message (Offline)

Ignore
1480868883
Reply with quote  #2

1480868883
Report to moderator
1480868883
Hero Member
*
Offline Offline

Posts: 1480868883

View Profile Personal Message (Offline)

Ignore
1480868883
Reply with quote  #2

1480868883
Report to moderator
LZ
Staff
Legendary
*
Offline Offline

Activity: 1456


Satoshi everywhere!


View Profile WWW
February 23, 2011, 02:33:29 PM
#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()

"Never invest unless you can afford to lose your entire investment." © S3052
ribuck
Donator
Legendary
*
Offline Offline

Activity: 826


View Profile
February 23, 2011, 03:16:42 PM
#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:
http://bitcointalk.org/index.php?topic=1334.msg22412#msg22412
nounderscores
Newbie
*
Offline Offline

Activity: 23


View Profile
February 23, 2011, 04:06:51 PM
#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

If you liked my post, please send me a bitcoin!

BC: 1J4ous6vWH8bJJ9MRRG1k8Fb9JXZeUMqu3
nounderscores
Newbie
*
Offline Offline

Activity: 23


View Profile
February 25, 2011, 09:37:23 AM
#5

Thanks again,

I downgraded from openssl 1.0 to 9.x and now the whole project builds perfectly

If you liked my post, please send me a bitcoin!

BC: 1J4ous6vWH8bJJ9MRRG1k8Fb9JXZeUMqu3
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!