[graph-tool] Could not link against boost_coroutine

Tiago de Paula Peixoto tiago at skewed.de
Tue Feb 7 18:40:25 CET 2017


On 07.02.2017 17:33, dperry324 wrote:
> config.log
> <http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/n4027003/config.log>  
> 
> Ok, I found the correct More button. 

The relevant section is:

onfigure:20248: checking for exit in -lboost_coroutine

configure:20283: g++ -std=gnu++14 -o conftest -fvisibility=default -fvisibility-inlines-hidden -O3 -Wno-deprecated -Wno-unknown-pragmas -ftemplate-depth-250 -DNDEBUG -Wall -Wextra -ftemplate-backtrace-limit=0  -Wno-unknown-pragmas -I/opt/rh/python27/root/usr/include/python2.7  -I/usr/local/boost161/include   -L/usr/local/boost161/lib conftest.cpp -lboost_coroutine  -lbz2 -lm  >&5

/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_context.so.1.61.0, needed by /usr/local/boost161/lib/libboost_coroutine.so, not found (try using -rpath or -rpath-link)

/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_thread.so.1.61.0, needed by /usr/local/boost161/lib/libboost_coroutine.so, not found (try using -rpath or -rpath-link)

/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_chrono.so.1.61.0, needed by /usr/local/boost161/lib/libboost_coroutine.so, not found (try using -rpath or -rpath-link)

/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_system.so.1.61.0, needed by /usr/local/boost161/lib/libboost_coroutine.so, not found (try using -rpath or -rpath-link)

/usr/local/boost161/lib/libboost_coroutine.so: undefined reference to `boost::thread_detail::commit_once_region(boost::once_flag&)'

/usr/local/boost161/lib/libboost_coroutine.so: undefined reference to `jump_fcontext'

/usr/local/boost161/lib/libboost_coroutine.so: undefined reference to `boost::thread_detail::enter_once_region(boost::once_flag&)'

/usr/local/boost161/lib/libboost_coroutine.so: undefined reference to `make_fcontext'

collect2: error: ld returned 1 exit status

This probably means that the location of the libraries is not in the linker's path. You need something like

    ./configure LDFLAGS=-L/usr/local/boost161/lib/

Best,
Tiago

-- 
Tiago de Paula Peixoto <tiago at skewed.de>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20170207/5096659c/attachment.asc>


More information about the graph-tool mailing list