mongodb70 fails on 14? advice?

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Mon, 15 May 2023 12:17:16 UTC
Hi,

My port compiles fine on FreeBSD 12 and 13 but fails on 14.

http://beefy18.nyi.freebsd.org/data/main-amd64-default/p93c4b3fbc498_sd489b2a39d/logs/errors/mongodb70-7.0.0.r0_1.log
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?

Regards,
Ronald.
Â