$ git clone https://github.com/p4lang/behavioral-model.git
$ sudo apt install automake cmake libjudy-dev libgmp-dev libpcap-dev libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libevent-dev libtool flex bison pkg-config g++ libssl-dev
$ ./autogen.sh
$ ./configure
$ make
server.cpp:66:1: error: reference to 'shared_ptr' is ambiguous
shared_ptr<StandardIf> get_handler(bm::SwitchWContexts *switch_);
...
In file included from /usr/include/boost/throw_exception.hpp:42:0,
from /usr/include/boost/numeric/conversion/converter_policies.hpp:16,
from /usr/include/boost/numeric/conversion/converter.hpp:14,
from /usr/include/boost/numeric/conversion/cast.hpp:33,
from /usr/local/include/thrift/transport/TTransportException.h:23,
from /usr/local/include/thrift/transport/TTransport.h:25,
from /usr/local/include/thrift/protocol/TProtocol.h:28,
from /usr/local/include/thrift/protocol/TBinaryProtocol.h:23,
from server.cpp:31:
/usr/include/boost/exception/exception.hpp:148:11: note: candidates are: template<class T> class boost::shared_ptr
$ sudo apt-get install automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config
$ git clone https://github.com/p4lang/behavioral-model.git
$ sudo apt install automake cmake libjudy-dev libgmp-dev libpcap-dev libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libevent-dev libtool flex bison pkg-config g++ libssl-dev
$ ./autogen.sh
$ ./configure
$ make
server.cpp:66:1: error: reference to 'shared_ptr' is ambiguous
shared_ptr<StandardIf> get_handler(bm::SwitchWContexts *switch_);
...
In file included from /usr/include/boost/throw_exception.hpp:42:0,
from /usr/include/boost/numeric/conversion/converter_policies.hpp:16,
from /usr/include/boost/numeric/conversion/converter.hpp:14,
from /usr/include/boost/numeric/conversion/cast.hpp:33,
from /usr/local/include/thrift/transport/TTransportException.h:23,
from /usr/local/include/thrift/transport/TTransport.h:25,
from /usr/local/include/thrift/protocol/TProtocol.h:28,
from /usr/local/include/thrift/protocol/TBinaryProtocol.h:23,
from server.cpp:31:
/usr/include/boost/exception/exception.hpp:148:11: note: candidates are: template<class T> class boost::shared_ptr
$ sudo apt-get install automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config