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

MacPorts noreply at macports.org
Fri Mar 8 14:15:20 PST 2013


#38334: mongodb @2.2.3 unable to link with libmongoclient.a
--------------------+--------------------------------
 Reporter:  ralf@…  |      Owner:  macports-tickets@…
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.1.3
 Keywords:          |       Port:  mongodb
--------------------+--------------------------------
 After updating to the current version of mongodb I'm unable to link my
 application with libmongodb.a

 To make it reproducible I tried to compile the attached micro example (see
 x.cpp):
 {{{
 clang++ -I /opt/local/include/ -L /opt/local/lib -lboost_system-mt -l
 boost_filesystem-mt -lboost_thread-mt -lmongoclient x.cpp
 Undefined symbols for architecture x86_64:
   "boost::filesystem2::detail::status_api(std::string const&,
 boost::system::error_code&)", referenced from:
 ...
 }}}

 When I compile the mongodb package I can see it compiles against an own
 version of boost - that is not compatible with the installed boost
 provided by macports. I copied this version and linked my example against
 this version - this worked but it is plain stupid. I read the comments
 about the incompatibility between mongodb and boost. So yes - I know there
 is a problem.

 Anyway: Is there a supposed/supported way to actually use libmongoclient.a
 or is this file a mere placeholder currently? I could live with using an
 older version of boost for my application, I could even live with an older
 version of  libmongodb - but a broken binary is way too hard to deal with.

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


More information about the macports-tickets mailing list