[CXX-86] C++ driver can't compile with glibc 2.16 Created: 11/Jul/12  Updated: 04/May/14  Resolved: 28/Mar/14

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

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: cxxmove, legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-6449 TIME_UTC_ does not compile in C++ driver Closed
related to SERVER-4314 Add support for boost filesystem v3 Closed
is related to SERVER-6340 TIME_UTC is a macro in C11, compilati... Closed

 Description   

Boost 1.49 and earlier cannot compile with glibc 2.16. However, Boost 1.50 requires filesystem 3.0. Need a stopgap solution so that the driver can compile with glibc 2.16 and Boost 1.49.



 Comments   
Comment by Githook User [ 28/Mar/14 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-86 The driver doesn't vendorize boost so the hack is no longer relevant
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/3c09cf2c2b75bae31d38de2ca78a8b13f1655687

Comment by Andrew Morrow (Inactive) [ 27/Mar/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/39

Comment by Eric Milkie [ 10/Mar/14 ]

True. So let's change the code to just take out the HACK macro (which is only used with our vendorized Boost 1.49). That will make the header in time_support.h look much nicer; it will just look at the Boost version to determine which UTC macro to use.

Comment by Andrew Morrow (Inactive) [ 10/Mar/14 ]

Well, the current ubuntu LTS ships with 1.48. I'm not sure we want to bump the minimum to 1.50 yet.

Comment by Eric Milkie [ 10/Mar/14 ]

Now that we've divested from the server code, we could just make Boost 1.50 the minimum supported version, which would allow us to clean up the UTC code in Eliot's commit. Or we could just resolve this as Done.

Comment by Andrew Morrow (Inactive) [ 10/Mar/14 ]

milkie Is this ticket still relevant for the C++ driver now that we always build against an external boost?

Comment by Eric Milkie [ 11/Jul/12 ]

Mathias's commit for SERVER-6340 modified our boost 1.49 files' TIME_UTC so it works now.

Comment by Andy Schwerin [ 11/Jul/12 ]

I think the upgrade to boost fs v3. Also, does this mean we need to
upgrade our in-tree boost?

-Andy

Comment by Eric Milkie [ 11/Jul/12 ]

SERVER-6340 shows the reason for the compilation issues

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