Author Topic: compilation problem  (Read 1847 times)

0 Members and 1 Guest are viewing this topic.

Offline tytus

looks like in boost 6.1 make_fcontext has changed and it requires bigger changes in libraries/fc/src/thread/thread_d.hpp (why do we need our own thread handling ?)

Is there a chance that somebody will update the bitshares code to libboost 6.1 compatibility in the near future ?

Offline tytus

The boost version is 61
#define BOOST_VERSION 106100
#define BOOST_LIB_VERSION "1_61"

Offline tytus

I had an older debian machine where the compilation succeeded.
After doing dist-upgrade, and autoremove cmake failed because of missing libboost.
I added this:
apt-get install gcc g++ cmake make libbz2-dev libdb++-dev libdb-dev libssl-dev openssl libreadline-dev autoconf libtool git libboost-all-dev
after this, cmake finishes with no errors but the compliation stops with the error above (‘fcontext_t’ in namespace ‘bc’ does not name a type).



Offline tytus

I had to upgrade my debian machine to "stretch" to be able to install libboost (at sufficient level). (kernel: 4.6.4-1)
The compilation stops at :
libraries/fc/src/thread/thread.cpp:5:
libraries/fc/src/thread/context.hpp:215:9: error: ‘fcontext_t’ in namespace ‘bc’ does not name a type
     bc::fcontext_t               my_context;
         ^~~~~~~~~~

is this a know problem ? Do I need to change some libraries to compile the code ?