Details
Description
When trying to build Mesos (recent master) on OS X El Capitan (public beta 1) with apple's clang distribution via Xcode 7 (beta 3) the following warnings trigger build failures;
Boost: unused-local-typedef
../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/tuple/detail/tuple_basic.hpp:228:31: error: unused typedef 'cons_element' [-Werror,-Wunused-local-typedef] typedef typename impl::type cons_element;
CyrusSASL2: deprecated-declarations
distcc[57619] ERROR: compile /Users/till/.ccache/tmp/authentica.stdout.lobomacpro2.fritz.box.48363.0QJikQ.ii on localhost failed ../../src/authentication/cram_md5/authenticatee.cpp:75:7: error: 'sasl_dispose' is deprecated: first deprecated in OS X 10.11 [-Werror,-Wdeprecated-declarations] sasl_dispose(&connection); ^ /usr/include/sasl/sasl.h:746:13: note: 'sasl_dispose' has been explicitly marked deprecated here extern void sasl_dispose(sasl_conn_t **pconn) __attribute__((availability(macosx,introduced=10.0,deprecated=10.11))); ^
A simple workaround is disabling those warnings for now;
export CXXFLAGS="-Wno-unused-local-typedef -Wno-deprecated-declarations" export CCFLAGS="-Wno-unused-local-typedef -Wno-deprecated-declarations"