[CXX-373] libmongoclient.so not generated when compling lateset c++ driver Created: 11/Oct/14 Updated: 11/Sep/19 Resolved: 14/Oct/14 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Build |
| Affects Version/s: | legacy-0.0-26compat-2.6.4, legacy-0.0-26compat-2.6.5 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | heihei1018 | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | driver, legacy-cxx | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
centos6.4 |
||
| Description |
|
I am trying to compile the latest stable c++ driver(26compact branch), https://github.com/mongodb/mongo-cxx-driver build/linux2/use-system-boost/mongo/bson/bson_validate.os: In function `__static_initialization_and_destruction_0': How can I fix this problem? Thanks! |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 14/Oct/14 ] |
|
I'm closing this ticket since we have not heard back. Feel free to ask us to re-open if you are still having problems. |
| Comment by Andrew Morrow (Inactive) [ 11/Oct/14 ] |
|
Without the configuration output of your build it is hard to see exactly what is going wrong. However, it is currently challenging to build against your own compiled version of boost when boost is also installed on the system. You must ensure that the driver is both including the headers from your custom boost build, and linking against the libraries in your custom boost build. This can be tricky to ensure, as the driver configuration step may look for a library by name that does not exist in your build, but does exist in the system install. In such a case you will end up building against your custom boost headers but attempting to link against the system boost library. You must either uninstall the system boost libraries, or ensure that your configuration of boost results in boost headers and libraries that exactly and completely shadow the names of the system headers and libraries. It might be helpful if you provided the following:
|
| Comment by heihei1018 [ 11/Oct/14 ] |
|
Hello Andrew: |
| Comment by Andrew Morrow (Inactive) [ 11/Oct/14 ] |
|
Can you please include the output of the configure checks? Also, I'm a little puzzled by the relationship between your build output and your scons invocation. You are building boost from source, but then you are passing --use-system-boost, which would suggest that you want the boost from /usr/include and /usr/lib, rather than the one from your boost install. Also, I see that the build is referencing headers from /usr/local, but by default the build should not be searching there, unless you have used the --cpppath or --extrapath arguments to your scons invocation. Can you double check that the scons invocation you have provided is complete? |