Boost logo

Boost Users :

Subject: Re: [Boost-users] Struggling to compile encfs linking with boost library
From: Jean Jordaan (jean.jordaan_at_[hidden])
Date: 2009-03-22 04:49:19


Hi there

> Ok.  There's something a little odd going on because when the
> output says that it's checking -lboost_filesystem-gcc41-mt-1_38,
> config.log says that it's checking -lgcc41-mt.

I see those two in different parts of the output.

> Anyway, try running the link command manually and add -Wl,--verbose
> to see exactly what files the linker searches for.

I don't see the link command logged anywhere .. running the g++
commandline directly doesn't help, since conftest.cpp doesn't exist .. I
guess it only exists during the build process.

>From the logfile, here are two other unrelated ld failures:

"""
configure:22229: gcc -o conftest -g -O2
-I/home/zope/local/include/boost-1_38 conftest.c -lpthreads >&5
/usr/bin/ld: cannot find -lpthreads

configure:22229: gcc -o conftest -g -O2
-I/home/zope/local/include/boost-1_38 conftest.c -llthread >&5
/usr/bin/ld: cannot find -llthread
"""

Here are the two relevant-looking ones:

"""
configure:23688: checking for exit in -lgcc41-mt
configure:23723: g++ -o conftest -g -O2
-I/home/zope/local/include/boost-1_38 -I/usr/include
-L/home/zope/local/lib conftest.cpp -lgcc41-mt >&5
/usr/bin/ld: cannot find -lgcc41-mt

configure:23688: checking for exit in -lboost_filesystem-gcc41-mt
configure:23723: g++ -o conftest -g -O2
-I/home/zope/local/include/boost-1_38 -I/usr/include
-L/home/zope/local/lib conftest.cpp -lboost_filesystem-gcc41-mt >&5
/usr/bin/ld: warning: libboost_system-gcc41-mt-1_38.so.1.38.0, needed
by /home/zope/local/lib/libboost_filesystem-gcc41-mt.so, not found
(try using -rpath or -rpath-link)
/home/zope/local/lib/libboost_filesystem-gcc41-mt.so: undefined
reference to `boost::system::get_system_category()'
/home/zope/local/lib/libboost_filesystem-gcc41-mt.so: undefined
reference to `boost::system::get_generic_category()'
"""

I don't understand those last three lines:
libboost_filesystem-gcc41-mt.so is a symlink to
libboost_system-gcc41-mt-1_38.so.1.38.0, so how can the first one be
found and not the second?

-- 
jean                                              . .. .... //\\\oo///\\

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net