-
Notifications
You must be signed in to change notification settings - Fork 24
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
error: 'dissector_add' was not declared in this scope #2
Comments
Hi Wolfgang, I tried cloning the repository and building from the scratch here, and it's working. Please, provide us with more information about the SO and versions involved. Allan |
Hi Allan, OK removed and updated all kind of stuff and checked for dependencies. Wireshark is compiling fine from source. [23:36:28][wriedel@wriedel-mbp:/usr/local/wireshark/OpenFlow/ng-of-dissector/src]$ scons install I using latest wireshark-1.9.0-SVN-47135 and barnstorm-ng-of-dissector-6ac464c9dc56.tar.gz Thank you, |
Hi Wolfgang, You are using the ng-of-dissector. We sort of forked it a while ago and added support for OpenFlow 1.2 and 1.3. Allan |
In Wireshark 1.10.3 I was able to fix this issue by replacing dissector_add() with dissector_add_uint(). It seems that dissector_add() is just an alias that no longer exists in newer versions of Wireshark. Reference: http://ask.wireshark.org/questions/6738/how-does-dissector_add-work |
dissector_add_uint was introduced in Wireshark 1.6.0, with dissector_add remaining as a compatibility macro. dissector_add was finally removed in 1.6.11. This closes CPqD#2.
Hi Folks,
any idea where the problem might be?
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o openflow-common.os -c -fPIC -I. -I/usr/local/Cellar/wireshark/wireshark-1.9.0-SVN-47042 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include openflow-common.cpp
In file included from openflow-common.cpp:9:
./of13/openflow-130.hpp:12:1: warning: "PROTO_TAG_OPENFLOW_VER" redefined
In file included from openflow-common.cpp:8:
./of12/openflow-120.hpp:13:1: warning: this is the location of the previous definition
openflow-common.cpp: In function 'void proto_reg_handoff_openflow()':
openflow-common.cpp:59: error: 'dissector_add' was not declared in this scope
scons: *** [openflow-common.os] Error 1
scons: building terminated because of errors.
Thank you,
Wolfgang
The text was updated successfully, but these errors were encountered: