sysml / blockmon

A Modular System for Flexible, High-Performance Traffic http://www.ict-mplane.eu/
http://fp7-demons.eu/
Other
24 stars 19 forks source link

Undefined reference when Linking CXX executable blockmon #6

Open 10186937 opened 8 years ago

10186937 commented 8 years ago

Sorry to bother you again, jmmlmendes. This time , I chose the release v1.1 . Since I was forbidden to accesshttp://pugixml.googlecode.com/files/pugixml-1.2.tar.gz(in china.) I download pugixml-1.2.tar.gz fromhttps://github.com/zeux/pugixml/releases, put it in lib/external and tar xzf pugixml-1.2.tar.gz . Then do cmake -DWITH_DAEMON=ON . & make in base dir. The error I get is:

Scanning dependencies of target blockmon
[ 98%] Building CXX object CMakeFiles/blockmon.dir/core/blockmon.cpp.o
Linking CXX executable blockmon
CMakeFiles/blockmon.dir/core/blockmon.cpp.o:In func ‘blockmon::PoolManager::create_pool(pugi::xml_node)’:
/home/qlq/latest_blockmon/blockmon-1.1/core/scheduler/PoolManager.hpp:101:对‘pugi::xml_node::attribute(char const*) const’ Undefined reference
/home/qlq/latest_blockmon/blockmon-1.1/core/scheduler/PoolManager.hpp:101:对‘pugi::xml_attribute::value() const’Undefined reference
/home/qlq/latest_blockmon/blockmon-1.1/core/scheduler/PoolManager.hpp:102:对‘pugi::xml_node::attribute(char const*) const’Undefined reference
..............
libblockmoncore.so:对‘pugi::xml_attribute::set_value(char const*)’Undefined reference
libblockmoncore.so:对‘vtable for IPFIX::CollectorOffsetCache’Undefined reference
collect2: Error:ld return1
make[2]: *** [blockmon] Error 1
make[1]: *** [CMakeFiles/blockmon.dir/all] Error 2
make: *** [all] Error 2

what's wrong? Thanks!

jmmlmendes commented 8 years ago

Can you make sure that the extracted files are under lib/external/pugixml? The same as in INSTALL.md but changing only the URL:

mkdir lib/external/pugixml
cd lib/external/pugixml
wget https://github.com/zeux/pugixml/releases/download/v1.2/pugixml-1.2.tar.gz
tar xzf pugixml-1.2.tar.gz
cd ../../..
10186937 commented 8 years ago

It's ok now, thank you.