Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591294 - 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
Summary: app-emulation/virtualbox-5.1.2 - .../work/VirtualBox-5.1.2/src/VBox/Runtime/c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2016-08-15 06:17 UTC by kott
Modified: 2019-04-28 11:27 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,197.03 KB, text/plain)
2016-08-15 06:17 UTC, kott
Details
environment (environment,224.00 KB, text/plain)
2016-08-15 06:19 UTC, kott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kott 2016-08-15 06:17:27 UTC
Created attachment 443340 [details]
build.log

Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.23-r2, 4.7.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.7.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-4710MQ_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     7834680 total,   4190944 free
KiB Swap:    4194288 total,   4194288 free
Timestamp of repository gentoo: Mon, 15 Aug 2016 02:30:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
ccache version 3.2.7 [disabled]
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.7::gentoo
dev-util/cmake:           3.6.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/openrc:          0.21.3::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.12.6-r1::gentoo, 1.13.4::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

libressl
    location: /var/lib/layman/libressl
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/libressl.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 Oracle-BCLA-JavaSE AdobeFlash-11.x skype-4.0.0.7-copyright Vivaldi"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=core-avx2 -mfpmath=sse -fno-align-labels -ftree-loop-if-convert"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=core-avx2 -mfpmath=sse -fno-align-labels -ftree-loop-if-convert"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --load-average 7 --jobs 6"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j9 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="lbunzip2 -n7"
PORTAGE_BZIP2_COMMAND="lbzip2 -n7"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacplus acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cjk cleartype cli consolekit cpudetection cracklib crypt cups curl custom-optimization cxx dbus declarative djvu dri dri2 drm dts dvd dvdr egl emboss encode eselect exif fam ffmpeg firefox flac fontconfig fontforge fortran gdbm gif glamor gles gles1 glib gpm gsm gtk iconv introspection ipv6 jpeg jpeg2k kde kipi lcms ldap libnotify libressl lm_sensors lzma mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pda pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt5 raw readline samba sdl seccomp semantic-desktop session sna spell sse sse2 ssl startup-notification svg system-sqlite tcpd theora tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi vorbis widgets wifi wmf wxwidgets x264 xattr xcb xcomposite xinerama xml xorg xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport" LINGUAS="ru en ru_RU en_US" LIRC_DEVICES="audio audio_alsa serial" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7 python3_4 pypy" PYTHON_TARGETS="python2_7 python3_4 pypy" RUBY_TARGETS="ruby23" SANE_BACKENDS="epson epson2 hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s mustek mustek_pp mustek_usb net xerox_mfp" USERLAND="GNU" VIDEO_CARDS="intel i965 nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

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"
Comment 1 kott 2016-08-15 06:19:06 UTC
Created attachment 443342 [details]
environment
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-08-15 06:47:28 UTC
/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....
Comment 3 masterzorag 2016-08-15 20:32:58 UTC
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!
Comment 4 masterzorag 2016-08-15 20:37:19 UTC
Or just try USE="... libressl... " and give it a try!

Sorry for the double comment
Comment 5 kott 2016-08-16 01:00:32 UTC
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"
Comment 6 jospezial 2016-08-26 21:39:44 UTC
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.
Comment 7 jospezial 2016-08-26 21:53:28 UTC
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?
Comment 8 jospezial 2016-08-28 12:58:16 UTC
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"
Comment 9 Stefan Strogin gentoo-dev 2019-02-14 04:06:24 UTC
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.