Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error with updated debian 6 #4

Open
sraihan opened this issue May 8, 2013 · 2 comments
Open

build error with updated debian 6 #4

sraihan opened this issue May 8, 2013 · 2 comments

Comments

@sraihan
Copy link

sraihan commented May 8, 2013

root@debian-6:/home/user/ofdissector/src# scons install
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o util/FieldManager.os -c -fPIC -I. -I/usr/include/wireshark -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include util/FieldManager.cpp
util/FieldManager.cpp: In member function 'void FieldManager::createField(std::string, const char_, ftenum, int, const void_, guint32, bool)':
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
scons: building terminated because of errors.

@rnudechu
Copy link

Same problem occurs with Ubuntu 10.04

@rnudechu
Copy link

Looks like the problem mentioned above can be resolved by simply commenting out the offending line. The openflow.so file created looks like it works with dissecting openflow 1.3 traffic properly. (This is based on limited testing with trema-edge learning switch)

In FieldManager.cpp include two slash (//) at the beginning of line 42:

// hfri.hfinfo.ref_type = HF_REF_TYPE_NONE;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants