Created attachment 150791 [details] specify c++11 lib for libmapi 2.1 build mail/libmapi-2.1 has two problems on freebsd systems that don't have a default compiler that support newer c++ standards used by libmapi: The Makefile has "CXX11FLAGS=-std=c++0x". When you build on 9.x, you get: . . Linking libmapi.so.2.0 Compiling libmapi++/src/attachment.cpp with -fPIC cc1plus: error: unrecognized command line option "-std=c++0x" . . Adding USES=compiler:c++0x fixes that problem, but libmapi 2.1 also needs a c++ library that has shared_ptr: . . In file included from ./libmapi++/attachment.h:29: ./libmapi++/message.h:47:16: error: no type named 'shared_ptr' in namespace 'std' typedef std::shared_ptr<attachment> attachment_shared_ptr; . . USES=compiler:c++11-lib fixes both issues. Patch attached. See also http://beefy1.isc.freebsd.org/bulk/84i386-default/latest/logs/errors/libmapi-2.1_2.log
Auto-assigned to maintainer kwm@FreeBSD.org
A commit references this bug: Author: antoine Date: Wed Jan 14 18:04:58 UTC 2015 New revision: 377031 URL: https://svnweb.freebsd.org/changeset/ports/377031 Log: MFH: r376507 Unbreak libmapi on 9.x and 8.x. Libmapi uses -std=c++0x however we need to add c++11-lib or else there will be link errors. PR: 196143 Submitted by: John Hein <z7dr6ut7gs@snkmail.com> Changes: _U branches/2015Q1/ branches/2015Q1/mail/libmapi/Makefile