首页 > 技术文章 > 安装CPqD/ofdissector遭遇的错误

read-the-spring-and-autumn-annals-in-night 2014-03-18 19:40 原文

为了安装支持openflow1.3的wireshark插件,在下载了ofdissector.git,并进入了其src目录后,执行scons install,出现如下错误:

util/FieldManager.cpp:42: error: 'struct header_field_info' has no member named 'ref_type'

util/FieldManager.cpp:42: error: 'HF_REF_TYPE_NONE' was not declared in this scope

scons: *** [util/FieldManager.os] Error 1

解决办法,注释掉FieldManager.cpp的第42行

// hfri.hfinfo.ref_type = HF_REF_TYPE_NONE;


在git上找的解决办法,未求甚解,但是注释完后,scons install,正常

git问题链接:https://github.com/CPqD/ofdissector/issues/4


 

推荐阅读