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

Master not building with boost 1.58.0 (undefined references) #38

Closed
jdetter opened this issue May 10, 2016 · 6 comments
Closed

Master not building with boost 1.58.0 (undefined references) #38

jdetter opened this issue May 10, 2016 · 6 comments
Labels

Comments

@jdetter
Copy link
Contributor

jdetter commented May 10, 2016

When building master, I am now having an issue with building against boost 1.58.0. I have also merged master into VEX and I am having the same issue. Are we no longer supporting libboost 1.58.0?

[ 98%] Building CXX object dyninstAPI/CMakeFiles/dyninstAPI.dir/src/linux-x86.C.o
Linking CXX shared library libdyninstAPI.so
CMakeFiles/dyninstAPI.dir/src/ast.C.o: In function `AstSnippetNode::generateCode_phase2(codeGen&, bool, unsigned long&, unsigned int&)':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/ast.C:3714: undefined reference to `boost::shared_ptr<Dyninst::PatchAPI::Snippet>::operator->() const'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `PCProcess::createProcess(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, BPatch_hybridMode, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int)':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:106: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Process>::operator!() const'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `PCProcess::attachProcess(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, BPatch_hybridMode)':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:143: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Process>::operator!() const'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `PCProcess::isStopped() const':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:1098: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Process>::shared_ptr()'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `PCProcess::isTerminated() const':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:1103: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Process>::shared_ptr()'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `PCProcess::hasExitedNormally() const':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:1108: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Process>::shared_ptr()'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `PCProcess::markExited()':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:1145: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Process>::operator Dyninst::ProcControlAPI::Process* boost::shared_ptr<Dyninst::ProcControlAPI::Process>::*() const'
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:1145: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Process>::shared_ptr()'
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:1145: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Process>::operator=(boost::shared_ptr<Dyninst::ProcControlAPI::Process>&&)'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `PCProcess::getMemoryPageSize() const':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:1495: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Process>::operator Dyninst::ProcControlAPI::Process* boost::shared_ptr<Dyninst::ProcControlAPI::Process>::*() const'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `PCProcess::postIRPC_internal(void*, unsigned int, unsigned int, unsigned int, unsigned long, void*, bool, PCThread*, bool, bool, bool, void**)':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:2085: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Thread>::operator=(boost::shared_ptr<Dyninst::ProcControlAPI::Thread> const&)'
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:2093: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Thread>::operator Dyninst::ProcControlAPI::Thread* boost::shared_ptr<Dyninst::ProcControlAPI::Thread>::*() const'
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:2131: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Thread>::operator Dyninst::ProcControlAPI::Thread* boost::shared_ptr<Dyninst::ProcControlAPI::Thread>::*() const'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `PCProcess::addSyncRPCThread(boost::shared_ptr<Dyninst::ProcControlAPI::Thread>)':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:3202: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Thread>::operator Dyninst::ProcControlAPI::Thread* boost::shared_ptr<Dyninst::ProcControlAPI::Thread>::*() const'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `PCProcess::removeSyncRPCThread(boost::shared_ptr<Dyninst::ProcControlAPI::Thread>)':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:3208: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Thread>::operator Dyninst::ProcControlAPI::Thread* boost::shared_ptr<Dyninst::ProcControlAPI::Thread>::*() const'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `PCProcess::continueSyncRPCThreads()':
/u/d/e/detter/private/detter/dyninst/dyninstAPI/src/dynProcess.C:3217: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Thread>::operator!() const'
CMakeFiles/dyninstAPI.dir/src/dynProcess.C.o: In function `bool boost::operator==<Dyninst::ProcControlAPI::Process, Dyninst::ProcControlAPI::Process>(boost::shared_ptr<Dyninst::ProcControlAPI::Process> const&, boost::shared_ptr<Dyninst::ProcControlAPI::Process> const&)':
/usr/include/boost/smart_ptr/shared_ptr.hpp:483: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Process>::get() const'
/usr/include/boost/smart_ptr/shared_ptr.hpp:483: undefined reference to `boost::shared_ptr<Dyninst::ProcControlAPI::Process>::get() const'
collect2: ld returned 1 exit status
make[2]: *** [dyninstAPI/libdyninstAPI.so.9.1.0] Error 1
make[1]: *** [dyninstAPI/CMakeFiles/dyninstAPI.dir/all] Error 2
@cuviper
Copy link
Contributor

cuviper commented May 10, 2016

Most likely from ee24199, which claimed to solve linking problems.
cc @mcfadden8

@mcfadden8
Copy link
Contributor

Those are the errors I saw and reported (via email) and removing those lines as prescribed by @wrwilliams did solve the problems for me on multiple platforms. Which version of master branch is being run?

@cuviper
Copy link
Contributor

cuviper commented May 10, 2016

FWIW master (aec8864) links fine for me on Fedora 23 x86_64 with boost-1.58 et al.

@mcfadden8
Copy link
Contributor

mcfadden8 commented May 10, 2016

I noticed these errors after picking up 4c6360a and applying ee24199 fixed it for me.

@jdetter
Copy link
Contributor Author

jdetter commented May 10, 2016

Master was at 015583f when I merged it into VEX. I will try to pull and rebuild.

@jdetter
Copy link
Contributor Author

jdetter commented May 10, 2016

Successful build with latest pull from master.

@jdetter jdetter closed this as completed May 10, 2016
@wrwilliams wrwilliams added the bug label Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants