[CXX-653] can't find boost Created: 20/Aug/15  Updated: 26/Aug/15  Resolved: 26/Aug/15

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: legacy-1.0.5
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: nosqldb Assignee: Andrew Morrow (Inactive)
Resolution: Incomplete Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

[root@localhost mongo-cxx-driver]# scons --prefix=/root/mongo-client --cpppath=/root/boost/include/ --libpath=/root/boost/lib/ install
scons: Reading SConscript files ...
scons version: 2.3.6
python version: 2 7 5 'final' 0
Checking whether the C++ compiler works... yes
Checking whether the C compiler works... yes
Checking if C++ compiler "g++" is GCC... yes
Checking if C compiler "gcc" is GCC... yes
Checking if C compiler supports -Wno-unused-local-typedefs... yes
Checking if C compiler supports -Wno-unused-function... yes
Checking if C compiler supports -Wno-unused-private-field... no
Checking if C compiler supports -Wno-deprecated-declarations... yes
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... no
Checking if C compiler supports -Wno-unused-const-variable... no
Checking if C compiler supports -Wno-missing-braces... yes
Checking if we are using libstdc++... yes
Checking for libstdc++ 4.6.0 or better... yes
Checking if we are on a POSIX system... yes
Checking if the POSIX monotonic clock is supported... yes
Checking for __thread... yes
Checking for gcc __atomic builtins... yes
Checking for C++ header file boost/version.hpp... yes
Checking for C++ library boost_regex-mt... no
Checking for C++ library boost_regex... yes
Checking for C++ library boost_thread-mt... no
Checking for C++ library boost_thread... no
can't find boost



 Comments   
Comment by Andrew Morrow (Inactive) [ 24/Aug/15 ]

Hi inosql -

Were you able to get the driver built against your boost installation? Is there anything else we can help with? Otherwise, I would like to close this ticket.

Comment by nosqldb [ 20/Aug/15 ]

It's also OK if LD_LIBRARY_PATH is added.

Comment by Andrew Morrow (Inactive) [ 20/Aug/15 ]

The change you are proposing in that CR should not be necessary with a properly built boost, please see this discussion:

https://groups.google.com/forum/#!msg/mongodb-user/DXF9Tj_DGWY/0lXkPpEp_PwJ

Are you sure that the boost you have built into /root/boost was built such that the shared libraries have a properly configured rpath?

Comment by nosqldb [ 20/Aug/15 ]

solved in my case.
https://github.com/mongodb/mongo-cxx-driver/pull/309

Comment by Andrew Morrow (Inactive) [ 20/Aug/15 ]

Can you attach the output of the file build/scons/config.log? You might want to rebuild with the --config=force flag. Also, what boost_thread libraries are present in /root/boost/lib? In other words, what does

find /root/boost/lib -name '*thread*'

return?

Generated at Wed Feb 07 21:59:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.