hilti icon indicating copy to clipboard operation
hilti copied to clipboard

Hilti source build plugin error

Open ghuband opened this issue 6 years ago • 5 comments

I'm building hilti with bro following the instructions on the web site: http://www.icir.org/hilti/install/index.html

I'm building on Ubuntu 14.04 with clang 3.9.

I've successfully built bro. I've run the bro tests and all passed.

During the hilti build I get the following error:

In file included from /home/user1/hilti/bro/src/Converter.cc:3: /home/user1/hilti/bro/src/Plugin.h:50:71: error: non-virtual member function marked 'override' hides virtual member function int HookLoadFile(const std::string& file, const std::string& ext) override; ^ /home/user1/bro/src/plugin/Plugin.h:644:14: note: hidden overloaded virtual function 'plugin::Plugin::HookLoadFile' declared here: different number of parameters (3 vs 2) virtual int HookLoadFile(const LoadType type, const std::string& file, const std::string& resolved);

ghuband avatar Apr 19 '18 17:04 ghuband

Which Bro version is that, git master? It should work with 2.5 but master has some incompatible changes.

rsmmr avatar Apr 19 '18 20:04 rsmmr

OK, I checked out v2.5 of bro, then I built bro:

CXX="/usr/bin/clang++ --stdlib=libc++" ./configure && make No errors.  Then I ran the bro tests: cd testing> CXX="/usr/bin/clang++ --stdlib=libc++" make[58%] plugins.hooks ... failed[58%] istate.broccoli-ipv6 ... failed No other errors. I'll try building hilti with bro tonight. Thanks Gary

On ‎Thursday‎, ‎April‎ ‎19‎, ‎2018‎ ‎04‎:‎33‎:‎39‎ ‎PM‎ ‎EDT, Robin Sommer <[email protected]> wrote:  

Which Bro version is that, git master? It should work with 2.5 but master has some incompatible changes.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ghuband avatar Apr 19 '18 21:04 ghuband

hilti built with no errors. When I try to run the tests:

cd tests> makebtest -j -f diag.logmake: btest: Command not foundmake: *** [tests] Error 127

Gary

On ‎Thursday‎, ‎April‎ ‎19‎, ‎2018‎ ‎04‎:‎33‎:‎39‎ ‎PM‎ ‎EDT, Robin Sommer <[email protected]> wrote:  

Which Bro version is that, git master? It should work with 2.5 but master has some incompatible changes.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ghuband avatar Apr 20 '18 01:04 ghuband

You need btest: https://www.bro.org/development/README.btest.html

rsmmr avatar Apr 20 '18 15:04 rsmmr

Thanks.

git clone https://github.com/bro/btest cd btest> sudo python setup.py install Now I can go into hilti/testing: make hello-worldsall 2 tests successful> make all(some failed and failed expected)139 of 892 tests failed, 8 skipped

Is this normal?

On ‎Friday‎, ‎April‎ ‎20‎, ‎2018‎ ‎11‎:‎04‎:‎36‎ ‎AM‎ ‎EDT, Robin Sommer <[email protected]> wrote:  

You need btest: https://www.bro.org/development/README.btest.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ghuband avatar Apr 21 '18 02:04 ghuband