#47119: mongodb @3.0.0: error: use of undeclared identifier 'strnlen' --------------------------+-------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: snowleopard | Port: mongodb --------------------------+-------------------------- mongodb 3.0.0 was not designed to build on Snow Leopard, unlike prior versions. I've already patched SConstruct to allow building on 10.6, and added compiler blacklists to ensure clang 3.4 or later is used, but the build fails with: {{{ src/mongo/bson/bsonelement.h:485:35: error: use of undeclared identifier 'strnlen' size_t size = strnlen( fieldName(), maxLen - 1 ); ^ }}} `strnlen` was added to OS X in 10.7. Perhaps we can find a compatibility version of `strnlen`. mongodb used to include a version of `strnlen` but I believe it was nonstandard. -- Ticket URL: <https://trac.macports.org/ticket/47119> MacPorts <https://www.macports.org/> Ports system for OS X