devel/mongo-c-driver failed with undefined reference due to --no-allow-shlib-undefined: ERR_load_BIO_strings

From: KIRIYAMA Kazuhiko <kiri_at_truefc.org>
Date: Sat, 22 Jul 2023 06:52:06 UTC
Hi, list

devel/mongo-c-driver failed with "undefined reference due to
--no-allow-shlib-undefined: ERR_load_BIO_strings" in recent
14.0-CURRENT (c5312bd79e66:2023-07-18):

[ 95% 231/241] /usr/bin/cc -DBSON_STATIC -DHAVE_STDARG_H -DHAVE_UNISTD_H -DKMS_MESSAGE_ENABLE_CRYPTO -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -DKMS_MSG_STATIC -DMCOMMON_NAME_PREFIX=_mongoc_mcommon -DMONGOC_COMPILATION -DMONGOC_STATIC -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -I/usr/local/include -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/../kms-message/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/../../src/common -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/../../src -I/var/ports/work/usr/po!
 rts/devel/mongo-c-driver/work/.build/src/libmongoc/../../src/common -isystem /usr/local/include/libbson-1.0 -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=ignored-qualifiers -Werror=uninitialized -fPIC -w -MD -MT src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_request.c.o -MF src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_request.c.o.d -o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_request.c.o -c /var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/kms-message/src/kms_request.c
[ 95% 232/241] /usr/bin/cc -DBSON_STATIC -DHAVE_STDARG_H -DHAVE_UNISTD_H -DKMS_MESSAGE_ENABLE_CRYPTO -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -DKMS_MSG_STATIC -DMCOMMON_NAME_PREFIX=_mongoc_mcommon -DMONGOC_COMPILATION -DMONGOC_STATIC -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -I/usr/local/include -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/../kms-message/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/../../src/common -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/../../src -I/var/ports/work/usr/po!
 rts/devel/mongo-c-driver/work/.build/src/libmongoc/../../src/common -isystem /usr/local/include/libbson-1.0 -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=ignored-qualifiers -Werror=uninitialized -fPIC -w -MD -MT src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_response.c.o -MF src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_response.c.o.d -o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_response.c.o -c /var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/kms-message/src/kms_response.c
[ 96% 233/241] /usr/bin/cc -DBSON_STATIC -DHAVE_STDARG_H -DHAVE_UNISTD_H -DKMS_MESSAGE_ENABLE_CRYPTO -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -DKMS_MSG_STATIC -DMCOMMON_NAME_PREFIX=_mongoc_mcommon -DMONGOC_COMPILATION -DMONGOC_STATIC -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -I/usr/local/include -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/../kms-message/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/../../src/common -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/../../src -I/var/ports/work/usr/po!
 rts/devel/mongo-c-driver/work/.build/src/libmongoc/../../src/common -isystem /usr/local/include/libbson-1.0 -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=ignored-qualifiers -Werror=uninitialized -fPIC -w -MD -MT src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_request_str.c.o -MF src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_request_str.c.o.d -o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_request_str.c.o -c /var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/kms-message/src/kms_request_str.c
[ 96% 234/241] /usr/bin/cc -DBSON_STATIC -DHAVE_STDARG_H -DHAVE_UNISTD_H -DKMS_MESSAGE_ENABLE_CRYPTO -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -DKMS_MSG_STATIC -DMCOMMON_NAME_PREFIX=_mongoc_mcommon -DMONGOC_COMPILATION -DMONGOC_STATIC -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -I/usr/local/include -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/../kms-message/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/../../src/common -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/../../src -I/var/ports/work/usr/po!
 rts/devel/mongo-c-driver/work/.build/src/libmongoc/../../src/common -isystem /usr/local/include/libbson-1.0 -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=ignored-qualifiers -Werror=uninitialized -fPIC -w -MD -MT src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/sort.c.o -MF src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/sort.c.o.d -o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/sort.c.o -c /var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/kms-message/src/sort.c
[ 97% 235/241] /usr/bin/cc -DBSON_STATIC -DHAVE_STDARG_H -DHAVE_UNISTD_H -DKMS_MESSAGE_ENABLE_CRYPTO -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -DKMS_MSG_STATIC -DMCOMMON_NAME_PREFIX=_mongoc_mcommon -DMONGOC_COMPILATION -DMONGOC_STATIC -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -I/usr/local/include -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/../kms-message/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/../../src/common -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/../../src -I/var/ports/work/usr/po!
 rts/devel/mongo-c-driver/work/.build/src/libmongoc/../../src/common -isystem /usr/local/include/libbson-1.0 -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=ignored-qualifiers -Werror=uninitialized -fPIC -w -MD -MT src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_response_parser.c.o -MF src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_response_parser.c.o.d -o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_response_parser.c.o -c /var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/kms-message/src/kms_response_parser.c
[ 97% 236/241] : && /usr/local/bin/cmake -E rm -f src/libmongoc/libmongoc-static-1.0.a && /usr/bin/llvm-ar qc src/libmongoc/libmongoc-static-1.0.a  src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-aggregate.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-apm.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-array.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-async.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-async-cmd.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-buffer.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-bulk-operation.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-change-stream.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-client.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-client-pool.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-client-side-encryption.c.o src/libmongo!
 c/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cluster.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cluster-aws.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cluster-sasl.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-collection.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-compression.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-counters.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-crypt.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cursor-array.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cursor.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cursor-cmd.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cursor-change-stream.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cursor-cmd-deprecated.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cursor-find.c.!
 o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc!
 -cursor-find-cmd.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cursor-find-opquery.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cursor-legacy.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-database.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-error.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-find-and-modify.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-generation-map.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-init.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-gridfs.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-gridfs-bucket.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-gridfs-bucket-file.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-gridfs-file.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-gridfs-file-list.c.o src/libmongoc/CMakeFiles/mongoc_s!
 tatic.dir/src/mongoc/mongoc-gridfs-file-page.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-handshake.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-host-list.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-http.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-index.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-interrupt.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-list.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-linux-distro-scanner.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-log.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-matcher.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-matcher-op.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-memcmp.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-cmd.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mong!
 oc-optional.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/m!
 ongoc-opts-helpers.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-opts.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-queue.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-read-concern.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-read-prefs.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-rpc.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-server-api.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-server-description.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-server-stream.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-client-session.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-server-monitor.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-set.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-shared.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-!
 socket.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-stream-buffered.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-stream.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-stream-file.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-stream-gridfs.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-stream-gridfs-download.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-stream-gridfs-upload.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-stream-socket.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-timeout.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-topology.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-topology-background-monitoring.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-topology-description.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-topology-description-apm.!
 c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-topolo!
 gy-scanner.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-ts-pool.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-uri.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-util.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-version-functions.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-write-command.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-write-command-legacy.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-write-concern.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/common/common-b64.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/common/common-md5.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/common/common-thread.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-crypto.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-scram.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-stream-tls.c.o src/libm!
 ongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-ssl.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-crypto-openssl.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-rand-openssl.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-stream-tls-openssl.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-stream-tls-openssl-bio.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-openssl.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/src/mongoc/mongoc-ocsp-cache.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/hexlify.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_b64.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_caller_identity_request.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_crypto_apple.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_crypto_libcrypto.c.o src/libmongoc/CMakeFiles/mongoc_stat!
 ic.dir/__/kms-message/src/kms_crypto_none.c.o src/libmongoc/CMakeFiles/!
 mongoc_static.dir/__/kms-message/src/kms_crypto_windows.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_decrypt_request.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_encrypt_request.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_kv_list.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_message.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_port.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_request.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_request_opt.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_request_str.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_response.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/kms_response_parser.c.o src/libmongoc/CMakeFiles/mongoc_static.dir/__/kms-message/src/sort.c.o && /usr/bin/llvm-ranlib src/libmongoc/libmongoc!
 -static-1.0.a && :
[ 97% 237/241] /usr/bin/cc -DHAVE_STDARG_H -DHAVE_UNISTD_H -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -I/usr/local/include -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/src/mongoc -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/../../src/common -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/../../src -I/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/../../src/common -isystem /usr/local/include/libbson-1.0 -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Werror=impli!
 cit -Werror=return-type -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=ignored-qualifiers -Werror=uninitialized -pthread -MD -MT src/libmongoc/CMakeFiles/mongoc-stat.dir/__/tools/mongoc-stat.c.o -MF src/libmongoc/CMakeFiles/mongoc-stat.dir/__/tools/mongoc-stat.c.o.d -o src/libmongoc/CMakeFiles/mongoc-stat.dir/__/tools/mongoc-stat.c.o -c /var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/tools/mongoc-stat.c
[ 98% 238/241] : && /usr/bin/cc -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fstack-protector-strong    -fuse-ld=lld src/libmongoc/CMakeFiles/mongoc-stat.dir/__/tools/mongoc-stat.c.o -o src/libmongoc/mongoc-stat -L/usr/local/lib -Wl,-rpath,/usr/local/lib:/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc  src/libmongoc/libmongoc-1.0.so.0.0.0  -lssl  -lcrypto  -lrt  -lz  /usr/local/lib/libzstd.so  /usr/local/lib/libbson-1.0.so.0.0.0  -pthread && :
FAILED: src/libmongoc/mongoc-stat 
: && /usr/bin/cc -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -D__BSD_VISIBLE=1 -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fstack-protector-strong    -fuse-ld=lld src/libmongoc/CMakeFiles/mongoc-stat.dir/__/tools/mongoc-stat.c.o -o src/libmongoc/mongoc-stat -L/usr/local/lib -Wl,-rpath,/usr/local/lib:/var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc  src/libmongoc/libmongoc-1.0.so.0.0.0  -lssl  -lcrypto  -lrt  -lz  /usr/local/lib/libzstd.so  /usr/local/lib/libbson-1.0.so.0.0.0  -pthread && :
ld.lld: error: undefined reference due to --no-allow-shlib-undefined: ERR_load_BIO_strings
>>> referenced by src/libmongoc/libmongoc-1.0.so.0.0.0
cc: error: linker command failed with exit code 1 (use -v to see invocation)
[ 98% 238/241] cd /var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/doc && /usr/local/bin/cmake -E env PYTHONDONTWRITEBYTECODE=1 /usr/local/bin/sphinx-build -qEW -b html -c /var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/doc /var/ports/work/usr/ports/devel/mongo-c-driver/work/mongo-c-driver-1.23.2/src/libmongoc/doc /var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/doc/html && rm -rf /var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/doc/html/.doctrees /var/ports/work/usr/ports/devel/mongo-c-driver/work/.build/src/libmongoc/doc/html/.buildinfo
Not creating man page for api
Not creating man page for gridfs
Not creating man page for index
Not creating man page for lifecycle
Not creating man page for queryable-encryption
Not creating man page for using_client_side_encryption
Not creating man page for visual-studio-guide
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /var/ports/jwebkx/devel/mongo-c-driver
*** Error code 1

Stop.
make: stopped in /usr/ports/www/nginx-full

But in a little old revision (9d6ae1e3c26a:2023-06-04),
compilation completed. What happen between 9d6ae1e3c26a and
c5312bd79e66 ? It seems only libssl and libcrypto changed.

14.0-CURRENT (9d6ae1e3c26a:2023-06-04) environments are:

root@msrvkxb:/var/ports/msrvkxb/devel/mongo-c-driver # make -VPKGNAME
mongo-c-driver-1.23.2_3
root@msrvkxb:/var/ports/msrvkxb/devel/mongo-c-driver # uname -a
FreeBSD msrvkxb 14.0-CURRENT FreeBSD 14.0-CURRENT #0 n263415-9d6ae1e3c26a: Wed Jun  7 00:46:49 JST 2023     root@tbedfc:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
root@msrvkxb:/var/ports/msrvkxb/devel/mongo-c-driver # ldd /usr/local/lib/libmongoc-1.0.so.0.0.0
/usr/local/lib/libmongoc-1.0.so.0.0.0:
        libssl.so.111 => /usr/lib/libssl.so.111 (0x193a70ddd000)
        libcrypto.so.111 => /lib/libcrypto.so.111 (0x193a7267b000)
        librt.so.1 => /usr/lib/librt.so.1 (0x193a74130000)
        libz.so.6 => /lib/libz.so.6 (0x193a730f6000)
        libzstd.so.1 => /usr/local/lib/libzstd.so.1 (0x193a74734000)
        libbson-1.0.so.0 => /usr/local/lib/libbson-1.0.so.0 (0x193a74c4e000)
        libthr.so.3 => /lib/libthr.so.3 (0x193a757ff000)
        libc.so.7 => /lib/libc.so.7 (0x193a6f0e9000)
root@msrvkxb:/var/ports/msrvkxb/devel/mongo-c-driver # cat /etc/make.conf
PORTSDIR=               /var/ports/msrvkxb
INDEXDIR=               /var/ports/msrvkxb
WRKDIRPREFIX=           /var/ports/work
PACKAGES=               /var/ports/packages
DISTDIR=                /var/ports/distfiles
BATCH=                  yes
DEFAULT_VERSIONS=       perl5=5.36 ruby=3.3
COMPILER_TYPE=          clang
USE_PACKAGE_DEPENDS=    yes
DISABLE_VULNERABILITIES=yes
root@msrvkxb:/var/ports/msrvkxb/devel/mongo-c-driver # df -h
Filesystem                                                                     Size    Used   Avail Capacity  Mounted on
/dev/vtbd0p2                                                                    11G    4.7G    5.1G    48%    /
devfs                                                                          1.0K      0B    1.0K     0%    /dev
linprocfs                                                                      8.0K      0B    8.0K     0%    /compat/linux/proc
tmpfs                                                                          7.0G    4.0K    7.0G     0%    /compat/linux/dev/shm
linsysfs                                                                       8.0K      0B    8.0K     0%    /compat/linux/sys
devfs                                                                          1.0K      0B    1.0K     0%    /compat/linux/dev
fdescfs                                                                        1.0K      0B    1.0K     0%    /compat/linux/dev/fd
vm.tfc:/.dake                                                                   11T    1.1T    9.9T    10%    /.dake
vm.tfc:/ds/src/freebsd/current/14.0/9d6ae1e3c26a.xij                           9.9T     81G    9.9T     1%    /usr/src
vm.tfc:/ds/obj/freebsd/current/14.0/9d6ae1e3c26a.xij                            10T    430G    9.9T     4%    /usr/obj
vm.tfc:/ds/ports/freebsd/d830ac4c7cfd                                           10T    134G    9.9T     1%    /usr/ports
vm.tfc:/ds/distfiles                                                           9.9T     74G    9.9T     1%    /var/ports/distfiles
vm.tfc:/ds/packages/freebsd/amd64/amd64/14.0C/9d6ae1e3c26a.xij/d830ac4c7cfd     10T    145G    9.9T     1%    /var/ports/packages
root@msrvkxb:/var/ports/msrvkxb/devel/mongo-c-driver # 

And 14.0-CURRENT (c5312bd79e66:2023-07-18) environments are:

root@jwebkx:/var/ports/jwebkx/devel/mongo-c-driver # make -VPKGNAME
mongo-c-driver-1.23.2_3
root@jwebkx:/var/ports/jwebkx/devel/mongo-c-driver # uname -a
FreeBSD jwebkx 14.0-CURRENT FreeBSD 14.0-CURRENT amd64 1400093 #0 n264203-c5312bd79e66: Thu Jul 20 02:46:54 JST 2023     root@tbedfc:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
root@jwebkx:/var/ports/jwebkx/devel/mongo-c-driver # ldconfig -r | grep '\(libssl\|libcrypto\|librt\|libz\|libzstd\|libbson-1.0\|libthr\|libc\)\.so'
        2:-lthr.3 => /lib/libthr.so.3
        15:-lz.6 => /lib/libz.so.6
        41:-lc.7 => /lib/libc.so.7
        65:-lcrypto.30 => /lib/libcrypto.so.30
        103:-lrt.1 => /usr/lib/librt.so.1
        154:-lssl.30 => /usr/lib/libssl.so.30
        186:-lbson-1.0.0 => /usr/local/lib/libbson-1.0.so.0
        188:-lzstd.1 => /usr/local/lib/libzstd.so.1
root@jwebkx:/var/ports/jwebkx/devel/mongo-c-driver # cat /etc/make.conf
PORTSDIR=               /var/ports/jwebkx
INDEXDIR=               /var/ports/jwebkx
WRKDIRPREFIX=           /var/ports/work
PACKAGES=               /var/ports/packages
DISTDIR=                /var/ports/distfiles
BATCH=                  yes
DEFAULT_VERSIONS=       perl5=5.38 ruby=3.3
COMPILER_TYPE=          clang
USE_PACKAGE_DEPENDS=    yes
DISABLE_VULNERABILITIES=yes
root@jwebkx:/var/ports/jwebkx/devel/mongo-c-driver # df -h
Filesystem                                                                     Size    Used   Avail Capacity  Mounted on
/dev/vtbd0p2                                                                    59G    4.9G     49G     9%    /
devfs                                                                          1.0K      0B    1.0K     0%    /dev
linprocfs                                                                      8.0K      0B    8.0K     0%    /compat/linux/proc
tmpfs                                                                          5.9G    4.0K    5.9G     0%    /compat/linux/dev/shm
vm.tfc:/.dake                                                                   11T    1.1T    9.9T    10%    /.dake
vm.tfc:/ds/src/freebsd/current/14.0/c5312bd79e66.xij                           9.9T     81G    9.9T     1%    /usr/src
vm.tfc:/ds/obj/freebsd/current/14.0/c5312bd79e66.xij                            10T    430G    9.9T     4%    /usr/obj
vm.tfc:/ds/ports/freebsd/b704b729f179                                           10T    134G    9.9T     1%    /usr/ports
vm.tfc:/ds/distfiles                                                           9.9T     74G    9.9T     1%    /var/ports/distfiles
vm.tfc:/ds/packages/freebsd/amd64/amd64/14.0C/c5312bd79e66.xij/b704b729f179     10T    145G    9.9T     1%    /var/ports/packages
root@jwebkx:/var/ports/jwebkx/devel/mongo-c-driver # 

ports/src repositories are:

root@vm:~ # git -C /ds/ports/freebsd/d830ac4c7cfd show --quiet --max-count=1 --format="%cs" HEAD
2023-06-20
root@vm:~ # git -C /ds/ports/freebsd/b704b729f179 show --quiet --max-count=1 --format="%cs" HEAD
2023-07-19
root@vm:~ # git -C /ds/src/freebsd/current/14.0/9d6ae1e3c26a.xij show --quiet --max-count=1 --format="%cs" HEAD
2023-06-04
root@vm:~ # git -C /ds/src/freebsd/current/14.0/c5312bd79e66.xij show --quiet --max-count=1 --format="%cs" HEAD
2023-07-18
root@vm:~ # 


Best regards.
---
Kazuhiko Kiriyama