Snort mailing list archives
Re: Building Extra against Snort 3 build 268
From: Y M via Snort-devel <snort-devel () lists snort org>
Date: Fri, 28 Feb 2020 15:40:50 +0000
Thank you, Shravan!
YM
________________________________
From: Shravan Rangarajuvenkata (shrarang) <shrarang () cisco com>
Sent: Friday, February 28, 2020 6:36 PM
To: Y M <snort () outlook com>; snort-devel () lists snort org <snort-devel () lists snort org>
Subject: Re: [Snort-devel] Building Extra against Snort 3 build 268
snort3_extra on github has not been updated for the past 3 months. We will soon push a new update. Thanks for bringing
this to our notice!
Thanks,
Shravan
From: Snort-devel <snort-devel-bounces () lists snort org> on behalf of Y M via Snort-devel <snort-devel () lists snort
org>
Reply-To: Y M <snort () outlook com>
Date: Friday, February 28, 2020 at 10:06 AM
To: "snort-devel () lists snort org" <snort-devel () lists snort org>
Subject: [Snort-devel] Building Extra against Snort 3 build 268
Hello,
I am getting an error building Extra against Snort 3 build 268. Reviewing the changelog, its looks like there have a
number of changes to appid relating to third-party. Is there away to get this build successfully?
Thank you.
OS:
CentOS 8.1
Snort 3 build command:
./configure_cmake.sh --prefix=/opt/snort --enable-tcmalloc --enable-shell --enable-large-pcap
Extra build command:
./configure_cmake.sh --prefix=/opt/snort/extra
Error:
Scanning dependencies of target tp_mock
[ 98%] Building CXX object src/tp_appid/mock/CMakeFiles/tp_mock.dir/tp_mock.cc.o
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:53:1: error: expected class-name before ‘{’ token
{
^
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:66:9: error: ‘int
ThirdPartyAppIDModuleImpl::pinit(ThirdPartyConfig&)’ marked ‘override’, but does not override
int pinit(ThirdPartyConfig&) override
^~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:73:9: error: ‘int ThirdPartyAppIDModuleImpl::tinit()’ marked
‘override’, but does not override
int tinit() override
^~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:81:9: error: ‘int ThirdPartyAppIDModuleImpl::reconfigure(const
ThirdPartyConfig&)’ marked ‘override’, but does not override
int reconfigure(const ThirdPartyConfig&) override
^~~~~~~~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:87:9: error: ‘int ThirdPartyAppIDModuleImpl::pfini()’ marked
‘override’, but does not override
int pfini() override
^~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:93:9: error: ‘int ThirdPartyAppIDModuleImpl::tfini()’ marked
‘override’, but does not override
int tfini() override
^~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:101:9: error: ‘int ThirdPartyAppIDModuleImpl::print_stats()’
marked ‘override’, but does not override
int print_stats() override { return 0; }
^~~~~~~~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:102:9: error: ‘int ThirdPartyAppIDModuleImpl::reset_stats()’
marked ‘override’, but does not override
int reset_stats() override { return 0; }
^~~~~~~~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc: In constructor
‘ThirdPartyAppIDModuleImpl::ThirdPartyAppIDModuleImpl(uint32_t, const char*)’:
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:56:11: error: class ‘ThirdPartyAppIDModuleImpl’ does not have
any field named ‘ThirdPartyAppIDModule’
: ThirdPartyAppIDModule(ver, mname)
^~~~~~~~~~~~~~~~~~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc: At global scope:
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:106:1: error: expected class-name before ‘{’ token
{
^
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:109:10: error: ‘bool ThirdPartyAppIDSessionImpl::reset()’
marked ‘override’, but does not override
bool reset() override { return 1; }
^~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:110:13: error: ‘TPState
ThirdPartyAppIDSessionImpl::process(const snort::Packet&, AppidSessionDirection, std::vector<int>&,
ThirdPartyAppIDAttributeData&)’ marked ‘override’, but does not override
TPState process(
^~~~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:122:9: error: ‘int
ThirdPartyAppIDSessionImpl::disable_flags(uint32_t)’ marked ‘override’, but does not override
int disable_flags(uint32_t) override { return 0; }
^~~~~~~~~~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:123:13: error: ‘TPState
ThirdPartyAppIDSessionImpl::get_state()’ marked ‘override’, but does not override
TPState get_state() override { return state; }
^~~~~~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:124:10: error: ‘void
ThirdPartyAppIDSessionImpl::set_state(TPState)’ marked ‘override’, but does not override
void set_state(TPState s) override { state=s; }
^~~~~~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:125:10: error: ‘void
ThirdPartyAppIDSessionImpl::clear_attr(TPSessionAttr)’ marked ‘override’, but does not override
void clear_attr(TPSessionAttr attr) override { flags &= ~attr; }
^~~~~~~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:126:10: error: ‘void
ThirdPartyAppIDSessionImpl::set_attr(TPSessionAttr)’ marked ‘override’, but does not override
void set_attr(TPSessionAttr attr) override { flags |= attr; }
^~~~~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:127:14: error: ‘unsigned int
ThirdPartyAppIDSessionImpl::get_attr(TPSessionAttr)’ marked ‘override’, but does not override
unsigned get_attr(TPSessionAttr attr) override { return flags & attr; }
^~~~~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc: In member function ‘TPState
ThirdPartyAppIDSessionImpl::get_state()’:
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:123:43: error: ‘state’ was not declared in this scope
TPState get_state() override { return state; }
^~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:123:43: note: suggested alternative: ‘stime’
TPState get_state() override { return state; }
^~~~~
stime
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc: In member function ‘void
ThirdPartyAppIDSessionImpl::set_state(TPState)’:
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:124:42: error: ‘state’ was not declared in this scope
void set_state(TPState s) override { state=s; }
^~~~~
/root/sources/snort3_extra/src/tp_appid/mock/tp_mock.cc:124:42: note: suggested alternative: ‘stime’
void set_state(TPState s) override { state=s; }
^~~~~
stime
make[2]: *** [src/tp_appid/mock/CMakeFiles/tp_mock.dir/build.make:63:
src/tp_appid/mock/CMakeFiles/tp_mock.dir/tp_mock.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1856: src/tp_appid/mock/CMakeFiles/tp_mock.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
_______________________________________________ Snort-devel mailing list Snort-devel () lists snort org https://lists.snort.org/mailman/listinfo/snort-devel Please visit http://blog.snort.org for the latest news about Snort!
Current thread:
- Building Extra against Snort 3 build 268 Y M via Snort-devel (Feb 28)
- <Possible follow-ups>
- Re: Building Extra against Snort 3 build 268 Shravan Rangarajuvenkata (shrarang) via Snort-devel (Feb 28)
- Re: Building Extra against Snort 3 build 268 Y M via Snort-devel (Feb 28)
- Re: Building Extra against Snort 3 build 268 Michael Altizer (mialtize) via Snort-devel (Feb 28)
- Re: Building Extra against Snort 3 build 268 Y M via Snort-devel (Feb 28)
- Re: Building Extra against Snort 3 build 268 Y M via Snort-devel (Feb 28)
