hpcc-systems/GraphControl — Issue #32: build error on linux
Author: chmduquesne
Created: 2012-02-28 10:26:47+00:00
State: open

Following the build tutorial,

[previous steps go perfectly fine]

$ cmake -DGRAPHVIZSRC_DIR=../../graphviz-2.26.3/ -DAGGSRC_DIR=../../agg/ -DFIREBREATH_DIR=../../FireBreath/ -DFIREBREATH_BUILD_DIR=../FireBreath/ ../../GraphControl/

[↑ This step goes fine too, I just put it here to better locate the problem]

$ make
Scanning dependencies of target agg
[ 0%] Building CXX object agg/CMakeFiles/agg.dir/home/cduquesne/code/or/GraphControl/agg/agg-2.4/src/agg_arc.cpp.o
...
[100%] Building CXX object HPCCSystemsGraphViewControl/CMakeFiles/HPCCSystemsGraphViewControl.dir/Version.cpp.o
HPCCSystemsGraphViewControl/Version.cpp:25:23: fatal error: ..\config.h: No such file or directory
compilation terminated.
make[2]: *** [HPCCSystemsGraphViewControl/CMakeFiles/HPCCSystemsGraphViewControl.dir/Version.cpp.o] Error 1
make[1]: *** [HPCCSystemsGraphViewControl/CMakeFiles/HPCCSystemsGraphViewControl.dir/all] Error 2
make: *** [all] Error 2

Ok, this seems to be a basic platform error: I edit the file to turn the include into "../config.h", and then:

$ make
[ 10%] Built target agg
[ 13%] Built target vpsc
[ 17%] Built target pathplan
[ 24%] Built target cdt
[ 28%] Built target graph
[ 38%] Built target common
[ 43%] Built target gvc
[ 44%] Built target xdot
[ 45%] Built target pack
[ 61%] Built target neatogen
[ 65%] Built target circogen
[ 71%] Built target dotgen
[ 75%] Built target fdpgen
[ 79%] Built target sfdpgen
[ 83%] Built target gvplugin_core
[ 84%] Built target gvplugin_dot_layout
[ 85%] Built target twopigen
[ 86%] Built target osage
[ 86%] Built target patchwork
[ 87%] Built target gvplugin_neato_layout
[ 87%] Built target sparse
[ 87%] Built target graphlayout
[ 94%] Built target graphdb
[ 95%] Built target graphrender
[ 98%] Built target PluginAuto
[ 99%] Building CXX object HPCCSystemsGraphViewControl/CMakeFiles/HPCCSystemsGraphViewControl.dir/Version.cpp.o
[ 99%] Building CXX object HPCCSystemsGraphViewControl/CMakeFiles/HPCCSystemsGraphViewControl.dir/DotViewX11.cpp.o
Linking CXX shared library ../bin/npHPCCSystemsGraphViewControl.so
../bin/libgraphdb.a(GraphvizLayout.cpp.o): In function `hpcc::DoGraphvizLayout(hpcc::IGraph*, std::basic_string, std::allocator >&, boost::signals2::slot2, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > const&)':
GraphvizLayout.cpp:(.text+0x45c): undefined reference to `boost::thread::~thread()'
GraphvizLayout.cpp:(.text+0x4a4): undefined reference to `boost::thread::~thread()'
GraphvizLayout.cpp:(.text+0x4d2): undefined reference to `boost::thread::~thread()'
../bin/libgraphdb.a(GraphvizLayout.cpp.o): In function `hpcc::DoGraphvizLayoutFromDot(hpcc::IGraph*, std::basic_string, std::allocator > const&, boost::signals2::slot2, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > const&)':
GraphvizLayout.cpp:(.text+0x5f7): undefined reference to `boost::thread::~thread()'
GraphvizLayout.cpp:(.text+0x63f): undefined reference to `boost::thread::~thread()'
../bin/libgraphdb.a(GraphvizLayout.cpp.o):GraphvizLayout.cpp:(.text+0x66d): more undefined references to `boost::thread::~thread()' follow
../bin/libgraphdb.a(GraphvizLayout.cpp.o): In function `boost::detail::thread_data_base::thread_data_base()':
GraphvizLayout.cpp:(.text._ZN5boost6detail16thread_data_baseC2Ev[_ZN5boost6detail16thread_data_baseC5Ev]+0x24): undefined reference to `vtable for boost::detail::thread_data_base'
../bin/libgraphdb.a(GraphvizLayout.cpp.o): In function `boost::thread::thread, std::allocator >, std::basic_string, std::allocator >, boost::signals2::slot2, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > const&), boost::_bi::list3, boost::_bi::value, std::allocator > >, boost::_bi::value, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > > > > >(boost::_bi::bind_t, std::allocator >, std::basic_string, std::allocator >, boost::signals2::slot2, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > const&), boost::_bi::list3, boost::_bi::value, std::allocator > >, boost::_bi::value, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > > > >, boost::disable_if, std::allocator >, std::basic_string, std::allocator >, boost::signals2::slot2, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > const&), boost::_bi::list3, boost::_bi::value, std::allocator > >, boost::_bi::value, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > > > >&, boost::detail::thread_move_t, std::allocator >, std::basic_string, std::allocator >, boost::signals2::slot2, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > const&), boost::_bi::list3, boost::_bi::value, std::allocator > >, boost::_bi::value, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > > > > > >, boost::thread::dummy*>::type)':
GraphvizLayout.cpp:(.text._ZN5boost6threadC2INS_3_bi6bind_tIvPFvSsSsRKNS_8signals25slot2IvRKSsS7_NS_8functionIFvS7_S7_EEEEEENS2_5list3INS2_5valueIPKcEENSH_ISsEENSH_ISB_EEEEEEEET_NS_10disable_ifINS_14is_convertibleIRSP_NS_6detail13thread_move_tISP_EEEEPNS0_5dummyEE4typeE[_ZN5boost6threadC5INS_3_bi6bind_tIvPFvSsSsRKNS_8signals25slot2IvRKSsS7_NS_8functionIFvS7_S7_EEEEEENS2_5list3INS2_5valueIPKcEENSH_ISsEENSH_ISB_EEEEEEEET_NS_10disable_ifINS_14is_convertibleIRSP_NS_6detail13thread_move_tISP_EEEEPNS0_5dummyEE4typeE]+0x5f): undefined reference to `boost::thread::start_thread()'
../bin/libgraphdb.a(GraphvizLayout.cpp.o): In function `boost::detail::thread_data, std::allocator >, std::basic_string, std::allocator >, boost::signals2::slot2, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > const&), boost::_bi::list3, boost::_bi::value, std::allocator > >, boost::_bi::value, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > > > > >::thread_data(boost::_bi::bind_t, std::allocator >, std::basic_string, std::allocator >, boost::signals2::slot2, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > const&), boost::_bi::list3, boost::_bi::value, std::allocator > >, boost::_bi::value, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > > > >)':
GraphvizLayout.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvSsSsRKNS_8signals25slot2IvRKSsS7_NS_8functionIFvS7_S7_EEEEEENS2_5list3INS2_5valueIPKcEENSH_ISsEENSH_ISB_EEEEEEEC2ESO_[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvSsSsRKNS_8signals25slot2IvRKSsS7_NS_8functionIFvS7_S7_EEEEEENS2_5list3INS2_5valueIPKcEENSH_ISsEENSH_ISB_EEEEEEEC5ESO_]+0x56): undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
../bin/libgraphdb.a(GraphvizLayout.cpp.o): In function `boost::detail::thread_data, std::allocator >, std::basic_string, std::allocator >, boost::signals2::slot2, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > const&), boost::_bi::list3, boost::_bi::value, std::allocator > >, boost::_bi::value, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > > > > >::~thread_data()':
GraphvizLayout.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvSsSsRKNS_8signals25slot2IvRKSsS7_NS_8functionIFvS7_S7_EEEEEENS2_5list3INS2_5valueIPKcEENSH_ISsEENSH_ISB_EEEEEEED2Ev[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvSsSsRKNS_8signals25slot2IvRKSsS7_NS_8functionIFvS7_S7_EEEEEENS2_5list3INS2_5valueIPKcEENSH_ISsEENSH_ISB_EEEEEEED5Ev]+0x38): undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
../bin/libgraphdb.a(GraphvizLayout.cpp.o):(.data.rel.ro._ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvSsSsRKNS_8signals25slot2IvRKSsS7_NS_8functionIFvS7_S7_EEEEEENS2_5list3INS2_5valueIPKcEENSH_ISsEENSH_ISB_EEEEEEEE[typeinfo for boost::detail::thread_data, std::allocator >, std::basic_string, std::allocator >, boost::signals2::slot2, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > const&), boost::_bi::list3, boost::_bi::value, std::allocator > >, boost::_bi::value, std::allocator > const&, std::basic_string, std::allocator > const&, boost::function, std::allocator > const&, std::basic_string, std::allocator > const&)> > > > > >]+0x10): undefined reference to `typeinfo for boost::detail::thread_data_base'
/home/cduquesne/code/or/GraphControl/build/FireBreath/ScriptingCore/libScriptingCore.a(BrowserHost.cpp.o): In function `FB::BrowserHost::BrowserHost()':
BrowserHost.cpp:(.text+0x57): undefined reference to `boost::this_thread::get_id()'
/home/cduquesne/code/or/GraphControl/build/FireBreath/ScriptingCore/libScriptingCore.a(BrowserHost.cpp.o): In function `FB::BrowserHost::isMainThread() const':
BrowserHost.cpp:(.text+0x18cb): undefined reference to `boost::this_thread::get_id()'
/home/cduquesne/code/or/GraphControl/build/FireBreath/ScriptingCore/libScriptingCore.a(BrowserHost.cpp.o): In function `boost::detail::interruption_checker::interruption_checker(pthread_cond_t*)':
BrowserHost.cpp:(.text._ZN5boost6detail20interruption_checkerC2EP14pthread_cond_t[_ZN5boost6detail20interruption_checkerC5EP14pthread_cond_t]+0x12): undefined reference to `boost::detail::get_current_thread_data()'
/home/cduquesne/code/or/GraphControl/build/FireBreath/ScriptingCore/libScriptingCore.a(BrowserHost.cpp.o): In function `boost::shared_mutex::lock_upgrade()':
BrowserHost.cpp:(.text._ZN5boost12shared_mutex12lock_upgradeEv[boost::shared_mutex::lock_upgrade()]+0x15): undefined reference to `boost::this_thread::disable_interruption::disable_interruption()'
BrowserHost.cpp:(.text._ZN5boost12shared_mutex12lock_upgradeEv[boost::shared_mutex::lock_upgrade()]+0xa8): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
BrowserHost.cpp:(.text._ZN5boost12shared_mutex12lock_upgradeEv[boost::shared_mutex::lock_upgrade()]+0xcf): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
/home/cduquesne/code/or/GraphControl/build/FireBreath/NpapiCore/libNpapiCore.a(NpapiPluginModule.cpp.o): In function `FB::Npapi::NpapiPluginModule::NpapiPluginModule()':
NpapiPluginModule.cpp:(.text+0x2e1): undefined reference to `boost::this_thread::get_id()'
/home/cduquesne/code/or/GraphControl/build/FireBreath/NpapiCore/libNpapiCore.a(NPObjectAPI.cpp.o): In function `boost::shared_mutex::lock_shared()':
NPObjectAPI.cpp:(.text._ZN5boost12shared_mutex11lock_sharedEv[boost::shared_mutex::lock_shared()]+0x15): undefined reference to `boost::this_thread::disable_interruption::disable_interruption()'
NPObjectAPI.cpp:(.text._ZN5boost12shared_mutex11lock_sharedEv[boost::shared_mutex::lock_shared()]+0x94): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
NPObjectAPI.cpp:(.text._ZN5boost12shared_mutex11lock_sharedEv[boost::shared_mutex::lock_shared()]+0xbb): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
/home/cduquesne/code/or/GraphControl/build/FireBreath/ScriptingCore/libScriptingCore.a(URI.cpp.o): In function `__static_initialization_and_destruction_0(int, int)':
URI.cpp:(.text+0x1d3f): undefined reference to `boost::system::get_system_category()'
URI.cpp:(.text+0x1d4b): undefined reference to `boost::system::get_generic_category()'
URI.cpp:(.text+0x1d57): undefined reference to `boost::system::get_generic_category()'
URI.cpp:(.text+0x1d63): undefined reference to `boost::system::get_generic_category()'
URI.cpp:(.text+0x1d6f): undefined reference to `boost::system::get_system_category()'
/home/cduquesne/code/or/GraphControl/build/FireBreath/ScriptingCore/libScriptingCore.a(URI.cpp.o): In function `boost::system::error_code::error_code()':
URI.cpp:(.text._ZN5boost6system10error_codeC2Ev[_ZN5boost6system10error_codeC5Ev]+0x17): undefined reference to `boost::system::get_system_category()'
/home/cduquesne/code/or/GraphControl/build/FireBreath/ScriptingCore/libScriptingCore.a(URI.cpp.o): In function `boost::asio::error::get_system_category()':
URI.cpp:(.text._ZN5boost4asio5error19get_system_categoryEv[boost::asio::error::get_system_category()]+0x5): undefined reference to `boost::system::get_system_category()'
collect2: ld returned 1 exit status
make[2]: *** [bin/npHPCCSystemsGraphViewControl.so] Error 1
make[1]: *** [HPCCSystemsGraphViewControl/CMakeFiles/HPCCSystemsGraphViewControl.dir/all] Error 2
make: *** [all] Error 2