Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined reference when Linking CXX executable blockmon #6

Open
10186937 opened this issue Aug 10, 2016 · 2 comments
Open

Undefined reference when Linking CXX executable blockmon #6

10186937 opened this issue Aug 10, 2016 · 2 comments

Comments

@10186937
Copy link

10186937 commented Aug 10, 2016

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
Copy link
Contributor

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
Copy link
Author

It's ok now, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants