[MacPorts] #38334: mongodb @2.2.3 unable to link with libmongoclient.a

MacPorts noreply at macports.org
Fri Mar 8 15:50:35 PST 2013


#38334: mongodb @2.2.3 unable to link with libmongoclient.a
----------------------+--------------------------
  Reporter:  ralf@…   |      Owner:  ryandesign@…
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.1.3
Resolution:           |   Keywords:
      Port:  mongodb  |
----------------------+--------------------------

Comment (by ryandesign@…):

 Apologies for this. I must admit I was unaware of the existence of
 libmongoclient.a or that using it required a copy of the same version of
 boost as was used to build mongodb.

 Boost is one of those libraries that changes in major ways from version to
 version, and often in ways that break other software that uses it. So it
 seems common for developers to bundle a version of boost that works for
 them and to use that. In MacPorts we usually try not to use bundled
 libraries since usually it's a waste of time and disk space to build them
 when we already have working ports for those libraries, but boost seems to
 be an exception to the rule. I used to have the mongodb port using the
 MacPorts boost, but when boost was upgraded to version 1.50.0, mongodb no
 longer compiled, and I fixed it by using the bundled boost instead; see
 #35118 for more about that. In this specific case, the way that the boost
 upgrade broke mongodb is that mongodb uses the boost filesystem API
 version 2, and in version 1.50.0, after having been deprecated for several
 versions, filesystem v2 was finally removed, leaving only filesystem v3.
 [https://jira.mongodb.org/browse/SERVER-4314 Mongodb ticket 4314] tracks
 the need for the mongodb developers to port their code to boost filesystem
 v3. That ticket says it was
 [https://github.com/mongodb/mongo/commit/b3b1949de30b5dc1bde3d91aa197a8587d17d193
 fixed in October 2012] and will be included in mongodb 2.3.0.

 So you could downgrade to boost 1.49.0 or older, or try a development
 version of mongodb, or encourage the developers to release version 2.3.0.
 Or we could see whether we can port that change back to mongodb 2.2.3 and
 include it in our port.

-- 
Ticket URL: <https://trac.macports.org/ticket/38334#comment:4>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list