mongodb70 fails on 14? advice?

From: Ronald Klop <>
Date: Mon, 15 May 2023 12:17:16 UTC

My port compiles fine on FreeBSD 12 and 13 but fails on 14.
In file included from build/opt/mongo/s/mongos_server_parameters_gen.cpp:9:
In file included from build/opt/mongo/s/mongos_server_parameters_gen.h:9:
In file included from /usr/include/c++/v1/algorithm:1716:
In file included from /usr/include/c++/v1/__algorithm/adjacent_find.h:13:
/usr/include/c++/v1/__algorithm/comp.h:36:71: error: invalid operands to binary expression ('const mongo::SSLX509Name::Entry' and 'const mongo::SSLX509Name::Entry')
    bool operator()(const _T1& __x, const _T1& __y) const {return __x == __y;}
                                                                  ~~~ ^  ~~~
I tried older llvm versions but that does not help. So I get the idea it has something to do with the c++ libraries in 14.0.
Is this a known issue?
Any advice or suggestion on how to resolve this? Or should this go to upstream mongodb?