[SERVER-2324] compilation error with boost filesystem v3 Created: 04/Jan/11  Updated: 12/Jul/16  Resolved: 18/Mar/11

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 1.7.4
Fix Version/s: 1.8.1, 1.9.0

Type: Bug Priority: Minor - P4
Reporter: Guanqun Lu Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

with latest boost lib environment installed, boost filesystem v3 is used.


Operating System: ALL
Participants:

 Description   

it fails to compile when it meets functions such as leaf().
the return value is not string type anymore.

I've come up with a simple fix and change the functions according to this page:
http://www.boost.org/doc/libs/1_45_0/libs/filesystem/v3/doc/deprecated.html



 Comments   
Comment by auto [ 19/Mar/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'redbeard0531@gmail.com'}

Message: support boost 1.46 SERVER-2324 181?
https://github.com/mongodb/mongo/commit/6187cea64f8f193365a22463473eef7e9b37d3ee

Comment by Mathias Stearn [ 18/Mar/11 ]

For now just using version 2. Its a small localized change that should be safe to backport.

Comment by auto [ 18/Mar/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'redbeard0531@gmail.com'}

Message: support boost 1.46 SERVER-2324 181?
https://github.com/mongodb/mongo/commit/d1dd3e51cd0be5216aa81a613420ca1dd09464d7

Comment by Eliot Horowitz (Inactive) [ 08/Jan/11 ]

We'll do this unless we complete bringing boost source into source tree.

Comment by Guanqun Lu [ 08/Jan/11 ]

Here's the fix.

it can compile under boost filesystem v2 as well.

https://github.com/mongodb/mongo/pull/12

thanks.

Generated at Thu Feb 08 02:59:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.