Thrift Ruby gem

后端 未结 4 815
夕颜
夕颜 2021-01-04 06:25

I cannot, for the life of me, successfully run \"gem install thrift\", the thing fails when building the gem\'s native extensions; this is the output:

(acib7         


        
4条回答
  •  孤街浪徒
    2021-01-04 07:17

    the issue for the moment can be found at https://issues.apache.org/jira/browse/THRIFT-2219

    As a temporary fix for folks using gems, you can try setting the #define'ing the _FORTIFY_SOURCE macro to 0 to make strlcpy a function rather than a macro:

    gem install thrift -- --with-cppflags='-D_FORTIFY_SOURCE=0'
    

    or if you're using bundler, you can set the cflags for thrift locally via:

    bundle config build.thrift --with-cppflags='-D_FORTIFY_SOURCE=0'
    

提交回复
热议问题