Summary: | app-emulation/virtualbox-5.1.2 - .../work/VirtualBox-5.1.2/src/VBox/Runtime/common/crypto/digest-builtin.cpp:559:27: error: ‘EVP_MD_CTX_new’ was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | kott <gsm9147060855> |
Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kernelpanic, masterzorag, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 561854 | ||
Attachments: |
build.log
environment |
Description
kott
2016-08-15 06:17:27 UTC
Created attachment 443342 [details]
environment
/var/tmp/portage/app-emulation/virtualbox-5.1.2/work/VirtualBox-5.1.2/src/VBox/Runtime/common/crypto/digest-builtin.cpp: In function ‘void* rtCrDigestOsslEvp_New()’: /var/tmp/portage/app-emulation/virtualbox-5.1.2/work/VirtualBox-5.1.2/src/VBox/Runtime/common/crypto/digest-builtin.cpp:559:27: error: ‘EVP_MD_CTX_new’ was not declared in this scope return EVP_MD_CTX_new(); ^ /var/tmp/portage/app-emulation/virtualbox-5.1.2/work/VirtualBox-5.1.2/src/VBox/Runtime/common/crypto/digest-builtin.cpp: In function ‘void rtCrDigestOsslEvp_Free(void*)’: /var/tmp/portage/app-emulation/virtualbox-5.1.2/work/VirtualBox-5.1.2/src/VBox/Runtime/common/crypto/digest-builtin.cpp:564:41: error: ‘EVP_MD_CTX_free’ was not declared in this scope EVP_MD_CTX_free((EVP_MD_CTX*)pvState); ^ /var/tmp/portage/app-emulation/virtualbox-5.1.2/work/VirtualBox-5.1.2/src/VBox/Runtime/common/crypto/digest-builtin.cpp: In function ‘int rtCrDigestOsslEvp_Init(void*, void*, bool)’: /var/tmp/portage/app-emulation/virtualbox-5.1.2/work/VirtualBox-5.1.2/src/VBox/Runtime/common/crypto/digest-builtin.cpp:592:31: error: ‘EVP_MD_CTX_reset’ was not declared in this scope EVP_MD_CTX_reset(pThis); ^ /var/tmp/portage/app-emulation/virtualbox-5.1.2/work/VirtualBox-5.1.2/src/VBox/Runtime/common/crypto/digest-builtin.cpp: In function ‘void rtCrDigestOsslEvp_Delete(void*)’: /var/tmp/portage/app-emulation/virtualbox-5.1.2/work/VirtualBox-5.1.2/src/VBox/Runtime/common/crypto/digest-builtin.cpp:611:27: error: ‘EVP_MD_CTX_reset’ was not declared in this scope EVP_MD_CTX_reset(pThis); ^ /var/tmp/portage/app-emulation/virtualbox-5.1.2/work/VirtualBox-5.1.2/src/VBox/Runtime/common/crypto/digest-builtin.cpp: In function ‘void* rtCrDigestOsslEvp_New()’: /var/tmp/portage/app-emulation/virtualbox-5.1.2/work/VirtualBox-5.1.2/src/VBox/Runtime/common/crypto/digest-builtin.cpp:560:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ kmk: *** [/var/tmp/portage/app-emulation/virtualbox-5.1.2/work/VirtualBox-5.1.2/out/linux.amd64/release/obj/RuntimeBldProg/common/crypto/digest-builtin.o] Error 1 kmk: *** Waiting for unfinished jobs.... Just reading attached build.log: Checking for ssl: found version LibreSSL 2.4.2, OK. Then you pass USE="... -libressl..." to emerge, but trigged error due lack of openssl (since you have libressl in your system) EVP* defines and functions comes from openssl, so you should try removing libressl and stick with openssl Let us know your results! Or just try USE="... libressl... " and give it a try! Sorry for the double comment the main way is to switch on libressl from openssl. I try emerge this with USE="libressl" # grep app-emulation/virtualbox /etc/portage/package.use/package.use app-emulation/virtualbox qt4 libressl emerge =app-emulation/virtualbox-5.1.2::gentoo -avq [ebuild R ] app-emulation/virtualbox-5.1.2 USE="alsa libressl* opengl pam pulseaudio qt5 sdk udev -debug -doc -headless -java -lvm -python -vboxwebsrv -vnc" PYTHON_TARGETS="python2_7" But the strange I see in build.log '-libressl' app-emulation/virtualbox-5.1.2::gentoo was built with the following: USE="alsa opengl pam pulseaudio qt5 sdk udev -debug -doc -headless -java -libressl -lvm -python -vboxwebsrv -vnc" ABI_X86="64" PYTHON_TARGETS="python2_7" same here. These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild U ] app-emulation/virtualbox-extpack-oracle-5.1.4.110228::gentoo [5.0.26.108824::gentoo] 0 KiB [ebuild U ] app-emulation/virtualbox-5.1.4::gentoo [5.0.26::gentoo] USE="alsa java libressl opengl pam pulseaudio python qt5%* sdk udev vnc -debug -doc -headless -lvm -vboxwebsrv (-qt4%*)" PYTHON_TARGETS="python2_7" 0 KiB ================================================================= Package Settings ================================================================= dev-libs/libressl-2.4.2::overlay_jl was built with the following: USE="asm -static-libs" ABI_X86="32 64 -x32" dev-libs/openssl-9999::libressl was built with the following: USE="zlib -bindist -kerberos -static-libs" ABI_X86="32 64 -x32" The openssl-9999 was the dummy ebuild to satisfy the ebuilds that depend on openssl. The only change in my libressl ebuild is to allow to install it together with openssl dummy. What does upstream say? Does virtualbox support libressl? Is there any configure option to control the ssl use in virtualbox? The libressl USE flag in the ebuild does only change the dependency. What if we remove these functions from the source code to get it compiled, will virtualbox still work? @kott How were you able to install this virtualbox version? Did you have real openssl installed instead of libressl? This is the cause I think: https://github.com/mdaniel/virtualbox-org-svn-vbox-trunk/commit/deb142aacfce5616e7fb6e3f4e1b91915a4b0882 "Runtime/crypto: some fixes for OpenSSL 1.1, work in progress" Shouldn't this bug be closed? LibreSSL support is fixed for virtualbox-6.x in https://bugs.gentoo.org/673800. virtualbox-5.2.22 (stable) successfully builds with libressl-2.6.5. |