Created attachment 457336 [details] build.log [ 37%] Built target winpr-tools make -f winpr/tools/makecert-cli/CMakeFiles/winpr-makecert.dir/build.make winpr/tools/makecert-cli/CMakeFiles/winpr-makecert.dir/depend make[2]: Entering directory '/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build' cd /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert-cli /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/tools/makecert-cli /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/tools/makecert-cli/CMakeFiles/winpr-makecert.dir/DependInfo.cmake Dependee "/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/tools/makecert-cli/CMakeFiles/winpr-makecert.dir/DependInfo.cmake" is newer than depender "/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/tools/makecert-cli/CMakeFiles/winpr-makecert.dir/depend.internal". Dependee "/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/tools/makecert-cli/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/tools/makecert-cli/CMakeFiles/winpr-makecert.dir/depend.internal". Scanning dependencies of target winpr-makecert make[2]: Leaving directory '/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build' make -f winpr/tools/makecert-cli/CMakeFiles/winpr-makecert.dir/build.make winpr/tools/makecert-cli/CMakeFiles/winpr-makecert.dir/build make[2]: Entering directory '/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build' [ 37%] Building C object winpr/tools/makecert-cli/CMakeFiles/winpr-makecert.dir/main.c.o cd /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/tools/makecert-cli && /usr/bin/x86_64-pc-linux-gnu-gcc -DFREERDP_EXPORTS -DHAVE_CONFIG_H -DWINPR_EXPORTS -DWITH_OPENSSL -I/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build -I/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/include -I/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/include -I/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/include -I/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/include -DNDEBUG -march=native -O2 -pipe -fPIC -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -g -msse2 -DWINPR_EXPORTS -fPIE -o CMakeFiles/winpr-makecert.dir/main.c.o -c /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert-cli/main.c [ 38%] Linking C executable winpr-makecert cd /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/tools/makecert-cli && /usr/bin/cmake -E cmake_link_script CMakeFiles/winpr-makecert.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fPIC -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -g -msse2 -DWINPR_EXPORTS -Wl,-O1 -Wl,--as-needed CMakeFiles/winpr-makecert.dir/main.c.o -o winpr-makecert -Wl,-rpath,/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/tools:/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/libwinpr: -rdynamic ../libwinpr-tools.so.2.0.0 -Wl,-rpath-link,/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/libwinpr /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/libwinpr/libwinpr.so.2: undefined reference to `HMAC_CTX_new' /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/libwinpr/libwinpr.so.2: undefined reference to `EVP_MD_CTX_free' /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/libwinpr/libwinpr.so.2: undefined reference to `EVP_MD_CTX_new' /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/libwinpr/libwinpr.so.2: undefined reference to `HMAC_CTX_free' collect2: error: ld returned 1 exit status make[2]: *** [winpr/tools/makecert-cli/CMakeFiles/winpr-makecert.dir/build.make:96: winpr/tools/makecert-cli/winpr-makecert] Error 1 make[2]: Leaving directory '/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build' make[1]: *** [CMakeFiles/Makefile2:1124: winpr/tools/makecert-cli/CMakeFiles/winpr-makecert.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build' make: *** [Makefile:150: all] Error 2 * ERROR: net-misc/freerdp-2.0.0_pre20161219::gentoo failed (compile phase): * emake failed ================================================================= Package Settings ================================================================= dev-libs/libressl-2.5.0::overlay_jl was built with the following: USE="asm -static-libs" ABI_X86="32 64 -x32" net-misc/freerdp-2.0.0_pre20160722::gentoo was built with the following: USE="X alsa client cups ffmpeg gstreamer jpeg libressl pulseaudio usb xinerama xv -debug -doc -libav (-neon) -server -smartcard -systemd -test -wayland" ABI_X86="64" CPU_FLAGS_X86="sse2" freerdp-2.0.0_pre20160722 compiles without problems.
Created attachment 457340 [details] build.log The wrong auto-detect is annoying.
Please report this upstream. https://github.com/FreeRDP/FreeRDP/issues
Created attachment 457346 [details, diff] LibreSSL patch. I was able to make a patch that should theoretically work, but while libwinpr now links correctly, during the build of libfreerdp, "-DWITH_OPENSSL" is not passed to the commandline, so the build fails anyway. I can't find any issues that mention this so far -- I guess everyone is building this package with OpenSSL-1.1.0?
Created attachment 457348 [details, diff] LibreSSL Patch (v2) Whoops nevermind, I was just building with the wrong version of the patch :P
(In reply to Aric Belsito from comment #4) > Created attachment 457348 [details, diff] [details, diff] > LibreSSL Patch (v2) > > Whoops nevermind, I was just building with the wrong version of the patch :P Patch works.
(In reply to Aric Belsito from comment #4) Thanks. Please submit this upstream, and I will be happy to backport it.
I totally forgot about this and I'll submit the patch upstream now. Need to figure out a better way to use the Bugzilla..
Done. Patch was merged. https://github.com/FreeRDP/FreeRDP/commit/70ab61c8e6083080093fc42e8e7172969864e2bd
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=419c9cbad4248fdf0fd043341026a60f423d561b commit 419c9cbad4248fdf0fd043341026a60f423d561b Author: Mike Gilbert <floppym@gentoo.org> Date: Mon Mar 20 16:57:54 2017 -0400 net-misc/freerdp: fix build with libressl Thanks to Aric Belsito for the patch. Bug: https://bugs.gentoo.org/603656 Package-Manager: Portage-2.3.5_p2, Repoman-2.3.2_p32 net-misc/freerdp/files/freerdp-libressl.patch | 148 ++++++++++++++++++++++ net-misc/freerdp/freerdp-2.0.0_pre20161219.ebuild | 6 +- 2 files changed, 153 insertions(+), 1 deletion(-)