[Snort-devel] Snort extra version 1.0.0-a4 built incomplete.

Chatsiri Rattana rchatsiri at gmail.com
Tue Dec 12 04:22:41 EST 2017


Hello Contributor,

Snort  version 3.0  Version 3.0.0 (Build 240) from 2.9.8-383   and hash
committing  is 1b646c46a Merge pull request #1002 in SNORT/snort3 from
sum_stuff to master. After was snort built completed. I'm try to build
snort-extra package name  snort_extra-1.0.0-a4. Error show as below.

snort3-distfw/snort_extra-1.0.0-a4/src/inspectors/data_log/data_log.cc:95:22:
error: ‘get_data_bus’ was not declared in this scope
         get_data_bus().subscribe(key.c_str(), new LogHandler(key));
                      ^
src/inspectors/data_log/CMakeFiles/data_log.dir/build.make:62: recipe for
target 'src/inspectors/data_log/CMakeFiles/data_log.dir/data_log.cc.o'
failed
make[2]: ***
[src/inspectors/data_log/CMakeFiles/data_log.dir/data_log.cc.o] Error 1
CMakeFiles/Makefile2:981: recipe for target
'src/inspectors/data_log/CMakeFiles/data_log.dir/all' failed
make[1]: *** [src/inspectors/data_log/CMakeFiles/data_log.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Recheck source code from snort core at directory
'src/framework/data_bus.cc'. It had static function name 'get_data_bus()',
but built results return an error as above. How to workaround that issues?
I using declare static function name before class name DataLog defined such
as

static DataBus & get_data_bus();

class DataLog : public Inspector {...}


Best Regards,
R.Chatsiri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20171212/591df57c/attachment.html>


More information about the Snort-devel mailing list