Comments (4)
I think that means that you have an old version of thrift installed that
the build is picking up instead of the newer (needed) version. When I've
run into this before, I've fixed it with:
sudo apt-get remove -y python-thrift
sudo pip install thrift
basically, it seems that the version of thrift installed by apt-get is old,
AND takes priority over any other version installed. So you need to make
sure to uninstall it. The version installed by pip seems to be correct,
but is in a lower-priority location (/usr/local vs /usr I believe).
On Wed, Sep 21, 2016 at 9:19 AM, mbudiu-vmw [email protected]
wrote:
g++ -DHAVE_CONFIG_H -I. -I../.. -DBMLOG_DEBUG_ON -DBMLOG_TRACE_ON
-DBMELOG_ON -I../../include -isystem../../third_party/jsoncpp/include
-isystem../../third_party/spdlog -I./thrift/src/ -I./gen-cpp -Wall
-Werror -Wextra -g -O2 -std=c++11 -MT gen-cpp/bm/simple_switch_constants.lo
-MD -MP -MF gen-cpp/bm/.deps/simple_switch_constants.Tpo -c
gen-cpp/bm/simple_switch_constants.cpp -o gen-cpp/bm/simple_switch_constants.o/dev/null 2>&1
gen-cpp/bm/SimpleSwitch.cpp: In member function ‘uint32_t
sswitch_runtime::SimpleSwitch_mirroring_mapping_add_args::
write(apache::thrift::protocol::TProtocol*) const’:
gen-cpp/bm/SimpleSwitch.cpp:66:10: error: ‘class
apache::thrift::protocol::TProtocol’ has no member named
‘incrementRecursionDepth’
oprot->incrementRecursionDepth();—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#198, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AD4c8UuATeO5BoqyMH4ZY_PQeEjiaK47ks5qsVkLgaJpZM4KDAL_
.
from behavioral-model.
This is not a problem with the Python code I think.
I believe you may have a mismatch between your Thrift compiler version (which generates the C++ code from the IDL file) and your Thrift library version. Other people have had this problem, according to SO: http://stackoverflow.com/questions/36070720/tprotocol-does-not-contain-a-definition-for-incrementrecursiondepth.
from behavioral-model.
The behavioral model repo has a link to the thrift sources https://github.com/apache/thrift, which I installed.
This API in thrift has been changed relatively recently:
https://github.com/apache/thrift/blob/master/lib/cpp/src/thrift/protocol/TProtocol.h
The method incrementRecursionDepth has been replaced with two methods incrementInputRecursionDepth and Output.
from behavioral-model.
Please check your compiler and library versions and make sure that they match:
antonin@antonin-torpille:~$ thrift -version
Thrift version 0.9.2
antonin@antonin-torpille:~$ ldconfig -p | grep thrift
libthriftz-0.9.2.so (libc6,x86-64) => /usr/local/lib/libthriftz-0.9.2.so
libthriftnb-0.9.2.so (libc6,x86-64) => /usr/local/lib/libthriftnb-0.9.2.so
libthrift_c_glib.so.0 (libc6,x86-64) => /usr/local/lib/libthrift_c_glib.so.0
libthrift_c_glib.so (libc6,x86-64) => /usr/local/lib/libthrift_c_glib.so
libthrift-0.9.2.so (libc6,x86-64) => /usr/local/lib/libthrift-0.9.2.so
Version 0.9.3
should work as well.
When installing Thrift, I would recommend that you install a released version, not the top of tree.
from behavioral-model.
Related Issues (20)
- Incorrect output when using HashAlgorithm.crc16_custom consecutive times
- how to use hash() in packet-io.p4? HOT 1
- FreeBSD patches
- Incorrect output when using HashAlgorithm.crc16_custom consecutive times HOT 6
- Connection VM to P4 simple_switch HOT 2
- Trying to run make HOT 5
- --use-files should create files for outputs even if the interface is not provided HOT 4
- Does multicast replication preserve local metadata in v1model/simple switch? HOT 7
- Is it possible to interact from the BMv2 mininet host to Ganache (Ethereum) server? HOT 2
- Behavior of tables with empty keys HOT 6
- Installation error with thrift HOT 6
- Known issues with using `pip install nnpy` instead of particular commit SHA of nnpy? HOT 2
- Bringing a bmv2 (simple_switch) interface down freezes the switch program in Ubuntu 22.04 HOT 6
- What is the size of PHV? HOT 4
- how to achieve a timer in bmv2 HOT 3
- Can BMv2 interfaces be bound to virtual network cards of two virtual machines? How should this be done specifically? HOT 2
- Can I get the index of a value in the register by custom_lib? HOT 4
- import thrift
- TCP packets seem not to be processed correctly by bmv2 HOT 2
- Problem using multicast in runtime HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from behavioral-model.