GithubHelp home page GithubHelp logo

Comments (4)

ChrisDodd avatar ChrisDodd commented on June 12, 2024

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.

antoninbas avatar antoninbas commented on June 12, 2024

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.

mihaibudiu avatar mihaibudiu commented on June 12, 2024

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.

antoninbas avatar antoninbas commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.