Latest git fails to compile

Description

Bummer:

[ 79%] Linking CXX executable bro
input/readers/raw/libplugin-Bro-RawReader.a(Plugin.cc.o): In function `input::reader::Raw::Instantiate(input::ReaderFrontend*)':
/home/build/bro/src/input/readers/raw/Raw.h:29: undefined reference to `input::reader::Raw::Raw(input::ReaderFrontend*)'
collect2: error: ld returned 1 exit status
src/CMakeFiles/bro.dir/build.make:3167: recipe for target 'src/bro' failed
make[3]: *** [src/bro] Error 1
make[3]: Leaving directory '/home/build/bro/build'
CMakeFiles/Makefile2:829: recipe for target 'src/CMakeFiles/bro.dir/all' failed
make[2]: *** [src/CMakeFiles/bro.dir/all] Error 2
make[2]: Leaving directory '/home/build/bro/build'
Makefile:138: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/build/bro/build'
Makefile:15: recipe for target 'all' failed
make: *** [all] Error 2

git status:
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

Environment

None

Activity

Show:
Daniel Thayer
November 11, 2016, 9:47 PM

Try this:
make distclean
./configure
make

jamesl
November 12, 2016, 11:22 AM

Ya this works fine elsewhere...just...not on this crappy cloud platform I'm testing 8-| You can close this out thanks and sorry for the noise. CloudatCost sucks.

{{[ 92%] Linking CXX executable bro
CMakeFiles/bro.dir/plugins.cc.o: In function `__make_sure_to_use_plugin_globals()':
/home//build/bro/build/src/plugins.cc:142: undefined reference to `plugin::Bro_X509:lugin'
CMakeFiles/bro.dir/Func.cc.o: In function `plugin::_RegisterBif::_RegisterBif(char const*, void (plugin:lugin*))':
/home//build/bro/src/plugin/Manager.h:389: undefined reference to `plugin::Bro_SMB::__bif_smb1_com_write_andx_init(plugin:lugin*)'
/home//build/bro/src/plugin/Manager.h:389: undefined reference to `plugin::Bro_SMB::__bif_smb1_events_init(plugin:lugin*)'
/home//build/bro/src/plugin/Manager.h:389: undefined reference to `plugin::Bro_SMB::__bif_smb2_com_close_init(plugin:lugin*)'
/home//build/bro/src/plugin/Manager.h:389: undefined reference to `plugin::Bro_SMB::__bif_smb2_com_create_init(plugin:lugin*)'
/home//build/bro/src/plugin/Manager.h:389: undefined reference to `plugin::Bro_SMB::__bif_smb2_com_negotiate_init(plugin:lugin*)'
/home//build/bro/src/plugin/Manager.h:389: undefined reference to `plugin::Bro_SMB::__bif_smb2_com_read_init(plugin:lugin*)'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `binpac::SMB::SMB_Conn:roc_smb_no_msg(binpac::SMB::SMB_Header*, bool)':
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1443: undefined reference to `BifEvent::generate_smb1_empty_response(analyzer::Analyzer*, Connection*, Val*)'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `EventHandlerPtr::operator bool() const':
/home//build/bro/src/EventHandler.h:105: undefined reference to `smb1_message'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `binpac::SMB::SMB_Conn:roc_smb_message(binpac::SMB::SMB_Header*, bool)':
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1417: undefined reference to `BifEvent::generate_smb1_message(analyzer::Analyzer*, Connection*, Val*, int)'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `EventHandlerPtr::operator bool() const':
/home//build/bro/src/EventHandler.h:105: undefined reference to `smb1_empty_response'
/home//build/bro/src/EventHandler.h:105: undefined reference to `smb1_empty_response'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `binpac::SMB::SMB_Conn:roc_smb_no_msg(binpac::SMB::SMB_Header*, bool)':
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1450: undefined reference to `BifEvent::generate_smb1_error(analyzer::Analyzer*, Connection*, Val*, int)'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `EventHandlerPtr::operator bool() const':
/home//build/bro/src/EventHandler.h:105: undefined reference to `smb2_negotiate_request'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `binpac::SMB::SMB_Conn:roc_smb2_negotiate_request(binpac::SMB::SMB2_Header*, binpac::SMB::SMB2_negotiate_request*)':
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1135: undefined reference to `BifEvent::generate_smb2_negotiate_request(analyzer::Analyzer*, Connection*, Val*, Val*)'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `EventHandlerPtr::operator bool() const':
/home//build/bro/src/EventHandler.h:105: undefined reference to `smb2_close_request'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `binpac::SMB::SMB_Conn:roc_smb2_close_request(binpac::SMB::SMB2_Header*, binpac::SMB::SMB2_close_request*)':
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1017: undefined reference to `BifEvent::generate_smb2_close_request(analyzer::Analyzer*, Connection*, Val*, Val*)'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `EventHandlerPtr::operator bool() const':
/home//build/bro/src/EventHandler.h:105: undefined reference to `smb2_negotiate_response'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `binpac::SMB::SMB_Conn:roc_smb2_negotiate_response(binpac::SMB::SMB2_Header*, binpac::SMB::SMB2_negotiate_response*)':
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1147: undefined reference to `BifType::Record::SMB2::NegotiateResponse'
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1156: undefined reference to `BifEvent::generate_smb2_negotiate_response(analyzer::Analyzer*, Connection*, Val*, Val*)'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `EventHandlerPtr::operator bool() const':
/home//build/bro/src/EventHandler.h:105: undefined reference to `smb2_close_response'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `binpac::SMB::SMB_Conn:roc_smb2_close_response(binpac::SMB::SMB2_Header*, binpac::SMB::SMB2_close_response*)':
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1032: undefined reference to `BifType::Record::SMB2::CloseResponse'
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1045: undefined reference to `BifEvent::generate_smb2_close_response(analyzer::Analyzer*, Connection*, Val*, Val*)'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `EventHandlerPtr::operator bool() const':
/home//build/bro/src/EventHandler.h:105: undefined reference to `smb2_create_response'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `binpac::SMB::SMB_Conn:roc_smb2_create_response(binpac::SMB::SMB2_Header*, binpac::SMB::SMB2_create_response*)':
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1094: undefined reference to `BifEvent::generate_smb2_create_response(analyzer::Analyzer*, Connection*, Val*, Val*, unsigned long, Val*, Val*)'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `EventHandlerPtr::operator bool() const':
/home//build/bro/src/EventHandler.h:105: undefined reference to `smb2_create_request'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `binpac::SMB::SMB_Conn:roc_smb2_create_request(binpac::SMB::SMB2_Header*, binpac::SMB::SMB2_create_request*)':
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1069: undefined reference to `BifEvent::generate_smb2_create_request(analyzer::Analyzer*, Connection*, Val*, StringVal*)'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `EventHandlerPtr::operator bool() const':
/home//build/bro/src/EventHandler.h:105: undefined reference to `smb2_read_request'
analyzer/protocol/smb/libplugin-Bro-SMB.a(smb_pac.cc.o): In function `binpac::SMB::SMB_Conn:roc_smb2_read_request(binpac::SMB::SMB2_Header*, binpac::SMB::SMB2_read_request*)':
/home//build/bro/build/src/analyzer/protocol/smb/smb_pac.cc:1187: undefined reference to `BifEvent::generate_smb2_read_request(analyzer::Analyzer*, Connection*, Val*, Val*, unsigned long, unsigned long)'
file_analysis/analyzer/x509/libplugin-Bro-X509.a(functions.bif.cc.o): In function `x509_get_untrusted_stack(VectorVal*)':
/home//build/bro/build/src/file_analysis/analyzer/x509/functions.bif:95: undefined reference to `file_analysis::X509Val::GetCertificate() const'
file_analysis/analyzer/x509/libplugin-Bro-X509.a(functions.bif.cc.o): In function `BifFunc::bro_x509_get_certificate_string(Frame*, ValPList*)':
/home//build/bro/build/src/file_analysis/analyzer/x509/functions.bif:184: undefined reference to `file_analysis::X509Val::GetCertificate() const'
/home//build/bro/build/src/file_analysis/analyzer/x509/functions.bif:186: undefined reference to `file_analysis::X509::GetExtensionFromBIO(bio_st*)'
/home//build/bro/build/src/file_analysis/analyzer/x509/functions.bif:181: undefined reference to `file_analysis::X509Val::GetCertificate() const'
file_analysis/analyzer/x509/libplugin-Bro-X509.a(functions.bif.cc.o): In function `BifFunc::bro_x509_ocsp_verify(Frame*, ValPList*)':
/home//build/bro/build/src/file_analysis/analyzer/x509/functions.bif:236: undefined reference to `file_analysis::X509Val::GetCertificate() const'
file_analysis/analyzer/x509/libplugin-Bro-X509.a(functions.bif.cc.o): In function `BifFunc::bro_x509_verify(Frame*, ValPList*)':
/home//build/bro/build/src/file_analysis/analyzer/x509/functions.bif:480: undefined reference to `file_analysis::X509Val::GetCertificate() const'
/home//build/bro/build/src/file_analysis/analyzer/x509/functions.bif:520: undefined reference to `file_analysis::X509Val::X509Val(x509_st*)'
file_analysis/analyzer/x509/libplugin-Bro-X509.a(functions.bif.cc.o): In function `BifFunc::bro_x509_parse(Frame*, ValPList*)':
/home//build/bro/build/src/file_analysis/analyzer/x509/functions.bif:158: undefined reference to `file_analysis::X509:arseCertificate(file_analysis::X509Val*, char const*)'
collect2: error: ld returned 1 exit status
src/CMakeFiles/bro.dir/build.make:3167: recipe for target 'src/bro' failed
make[3]: *** [src/bro] Error 1
make[3]: Leaving directory '/home//build/bro/build'
CMakeFiles/Makefile2:828: recipe for target 'src/CMakeFiles/bro.dir/all' failed
make[2]: *** [src/CMakeFiles/bro.dir/all] Error 2
make[2]: Leaving directory '/home//build/bro/build'
Makefile:149: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home//build/bro/build'
Makefile:15: recipe for target 'all' failed
make: *** [all] Error 2}}

Johanna Amann
November 28, 2016, 5:40 PM

Thanks for the followup - closing.

Works for Me

Assignee

Unassigned

Reporter

jamesl

Labels

None

External issue ID

None

Components

Affects versions

Priority

Normal