I am trying to compile wireshark source code of version 1.9.2 I made a build folder cd build->cmake..->make install
Now I am getting errors as follows.
/home/techie/wireshark-1.9.2/epan/dissectors/packet-dcerpc-rs_pgo.c: In function ‘dissect_rs_pgo_query_t’:
/home/techie/wireshark-1.9.2/epan/dissectors/packet-dcerpc-rs_pgo.c:631:5: error: typedef ‘rs_pgo_query_t’ locally defined but not used [-Werror=unused-local-typedefs]
} rs_pgo_query_t;
^
/home/techie/wireshark-1.9.2/epan/dissectors/packet-dcerpc-rs_pgo.c: In function ‘dissect_rs_pgo_query_key_t’:
/home/techie/wireshark-1.9.2/epan/dissectors/packet-dcerpc-rs_pgo.c:846:5: error: typedef ‘rs_pgo_query_t’ locally defined but not used [-Werror=unused-local-typedefs]
} rs_pgo_query_t;
^
cc1: all warnings being treated as errors
make[2]: *** [epan/CMakeFiles/epan.dir/dissectors/packet-dcerpc-rs_pgo.c.o] Error 1
make[1]: *** [epan/CMakeFiles/epan.dir/all] Error 2
make: *** [all] Error 2
[root@localhost build]#
If i comment out the part it is calling declared but not used it is throwing new errors. What should I do?