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)
- 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
- Empty action-parameter vector is always accessed in ActionFnEntry::execute HOT 3
- How to build behavioral-model on the MacOS(Apple M1 Pro(13.5)) HOT 1
- How to track fileds of metadata with p4dbg? HOT 2
- Approximate conversion of bmv2 p4 performance to hardware performance HOT 3
- Applying the same table twice HOT 2
- Required to set forwarding pipeline before using the dataplane for streaming packets HOT 10
- Update project to require C++17 HOT 9
- Race conditions when passing in a BMv2 JSON config HOT 12
- To Add PNA support into BMv2. HOT 5
- How to build simple_switch / simple_switch_grpc on Ubuntu 24.04 ? HOT 4
- Why bmi_port.c is a C code? HOT 2
- Race conditions when processing packet in the egress pipeline. HOT 6
- Heap Buffer Overflow when installing many table entries HOT 1
- CMake support HOT 2
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.