[SERVER-11325] mongoclient fails to compile with Visual C++ 2008 SP1 Created: 23/Oct/13 Updated: 22/Jan/20 Resolved: 07/Nov/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Client |
| Affects Version/s: | 2.4.7 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Balint Szente | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | cstdint, eaddrinuse, econnaborted, errno | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows XP SP3, Visual C++ 2008 SP1, Boost 1.46.1 |
||
| Operating System: | Windows | ||||||||||||||||||||||||||||||||||||||||
| Steps To Reproduce: | Just issue the command:
Result:
One possible (ugly) workaround:
Next, there are 2 undefined macros in src\mongo\util\net\listen.cpp: EADDRINUSE and ECONNABORTED. Both of them were added to errno.h in Visual C++ 2010. But they must be defined for 2008. Quick and very dirty workaround: modify src\mongo\util\net\listen.cpp in the following way:
By fixing these two issues, the c++ driver can be compiled successfully. |
||||||||||||||||||||||||||||||||||||||||
| Participants: |
| Description |
|
The mongoclient c++ library does not compile with Visual C++ 2008. |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 07/Nov/13 ] |
|
I'm closing this as 'wontfix' since we do not plan to support 2008. The VC version check in the SConstruct file is a good suggestion though, and I've filed |
| Comment by Balint Szente [ 07/Nov/13 ] |
|
Hello! Thanks for your reply. I understand. In the mean time we switched to VS2012. Thanks, |
| Comment by Andrew Morrow (Inactive) [ 06/Nov/13 ] |
|
Hi - Building the client driver with VS2008 is not currently supported, for either the 2.4 release series or the 2.5 release series driver. It is unlikely that we will add VS2008 support to 2.5 or backport that support to 2.4. However, we believe that a driver built with a newer version of visual studio should be usable in a VS2008 project, since the issues you have identified are only visible at .cpp scope. We intend to validate this arrangement (build with VS2010+, use in VS2008) as part of the 2.5 release cycle. Please let us know if you have any questions or if there is anything more we can help with, otherwise we will be closing this ticket as 'wont fix'. Thanks, |