HomeFreeBSD

databases/mongodb60: fix build with llvm16/clang16

Description

databases/mongodb60: fix build with llvm16/clang16

  • BOOST_NO_CXX98_FUNCTION_BASE fixes:

In file included from src/third_party/boost/boost/functional/hash.hpp:6:
src/third_party/boost/boost/container_hash/hash.hpp:131:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?

struct hash_base : std::unary_function<T, std::size_t> {};
                   ~~~~~^~~~~~~~~~~~~~
                        __unary_function

/usr/include/c++/v1/__functional/unary_function.h:46:1: note: 'unary_function' declared here
using
unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
^

  • And "#if 1" fixes:

In file included from src/third_party/boost/boost/mpl/integral_c.hpp:32:
src/third_party/boost/boost/mpl/aux_/integral_wrapper.hpp:73:31: error:
integer value -1 is outside the valid range of values [0, 3] for the enumeration
type 'lock_access_mode' [-Wenum-constexpr-conversion]

typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE,

(value - 1)) ) prior;

PR: 272295

Details

Provenance
ronald_klop.wsAuthored on Jul 2 2023, 6:57 PM
Parents
R11:7711191a2af6: databases/mongodb50: fix build with llvm16/clang16
Branches
Unknown
Tags
Unknown