kBuild: Compiling RuntimeBldProg - /tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/src/VBox/Runtime/common/crypto/digest-vfs.cpp /tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/src/VBox/Runtime/common/crypto/digest-builtin.cpp:568:12: error: use of undeclared identifier 'EVP_MD_CTX_new' return EVP_MD_CTX_new(); ^ /tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/src/VBox/Runtime/common/crypto/digest-builtin.cpp:573:5: error: use of undeclared identifier 'EVP_MD_CTX_free' EVP_MD_CTX_free((EVP_MD_CTX*)pvState); ^ /tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/src/VBox/Runtime/common/crypto/digest-builtin.cpp:601:9: error: use of undeclared identifier 'EVP_MD_CTX_reset'; did you mean 'EVP_MD_CTX_init'? EVP_MD_CTX_reset(pThis); ^~~~~~~~~~~~~~~~ EVP_MD_CTX_init /usr/local/include/openssl/evp.h:538:6: note: 'EVP_MD_CTX_init' declared here void EVP_MD_CTX_init(EVP_MD_CTX *ctx); ^ /tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/src/VBox/Runtime/common/crypto/digest-builtin.cpp:620:5: error: use of undeclared identifier 'EVP_MD_CTX_reset'; did you mean 'EVP_MD_CTX_init'? EVP_MD_CTX_reset(pThis); ^~~~~~~~~~~~~~~~ EVP_MD_CTX_init /usr/local/include/openssl/evp.h:538:6: note: 'EVP_MD_CTX_init' declared here void EVP_MD_CTX_init(EVP_MD_CTX *ctx); ^ 4 errors generated. kmk: *** [/tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/out/freebsd.amd64/release/obj/RuntimeBldProg/common/crypto/digest-builtin.o] Error 1 The failing command: @clang++ -c -O2 -g -pipe -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wno-language-extension-token -Wno-extended-offsetof -Wno-gnu-folding-constant -Wno-string-plus-int -Wno-nested-anon-types -Wno-variadic-macros -Wno-long-long -Wno-variadic-macros -O2 -fno-omit-frame-pointer -fno-strict-aliasing -m64 -I/tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/src/VBox/Runtime/include -I/tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/src/libs/liblzf-3.4 -I/tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/src/libs/kStuff/kStuff/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2 -I/tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/include -I/tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/out/freebsd.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DVBOX_WITH_RAW_MODE -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/local/share/virtualbox-ose\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\" -DRTPATH_APP_DOCS=\"/usr/local/share/doc/virtualbox-ose\" -D_REENTRANT -DIN_RING3 -DLOG_DISABLED -DIN_BLD_PROG -DIN_RT_R3 -DIN_ADV_BLD_PROG -DIN_RT_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 -DLDR_WITH_PE -DRT_WITH_VBOX -DRT_NO_GIP -DRT_WITHOUT_NOCRT_WRAPPERS -DIPRT_WITH_OPENSSL -DNOFILEID -DLDR_WITH_KLDR -DRT_WITH_ICONV_CACHE -DIPRT_WITHOUT_LDR_VERIFY -DRT_NO_GIP -Wp,-MD,/tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/out/freebsd.amd64/release/obj/RuntimeBldProg/common/crypto/digest-builtin.o.dep -Wp,-MT,/tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/out/freebsd.amd64/release/obj/RuntimeBldProg/common/crypto/digest-builtin.o -Wp,-MP -o /tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/out/freebsd.amd64/release/obj/RuntimeBldProg/common/crypto/digest-builtin.o /tmp/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.4/src/VBox/Runtime/common/crypto/digest-builtin.cpp kmk: *** Waiting for unfinished jobs.... kmk: *** Exiting with status 2 *** Error code 2 Stop. make[1]: stopped in /usr/ports/emulators/virtualbox-ose *** Error code 1 FreeBSD rimwks 11.0-PRERELEASE FreeBSD 11.0-PRERELEASE #2 r305546: Thu Sep 8 04:09:03 MSK 2016 root@rimwks:/usr/obj/usr/src/sys/RIMWKSx64 amd64 make.conf contains: DEFAULT_VERSIONS+=ssl=libressl
It looks like the port is incompatible with recent LibreSSL. In fact, I'm not even sure whether we have to keep chasing LibreSSL API changes. :-(
A commit references this bug: Author: jkim Date: Thu Sep 8 05:14:47 UTC 2016 New revision: 421530 URL: https://svnweb.freebsd.org/changeset/ports/421530 Log: Attempt to fix build with LibreSSL. PR: 212473 Changes: head/emulators/virtualbox-ose/files/patch-src_VBox_Runtime_common_crypto_digest-builtin.cpp
It should be fixed in r421530. Please let us know if it wasn't enough.
Assign to committer that resolved (and cc libressl maintainer)