Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 648698

Summary: sys-fs/encfs-1.9.4 with dev-libs/openssl-1.1.0g-r2 - .../work/encfs-1.9.4/encfs/openssl.cpp:47:33: error: ?CRYPTO_num_locks? was not declared in this scope
Product: Gentoo Linux Reporter: bug2017
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED FIXED    
Severity: normal CC: asturm, johannes.hirte, thomas.bettler
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 592438    
Attachments: emerge output
encfs-1.9.4-openssl-1.1.patch

Description bug2017 2018-02-24 13:06:21 UTC
Created attachment 520882 [details]
emerge output

Pulled in by kde-plasma/plasma-vault. My workaround is change to cryfs.

The first lines of the build error:

/var/tmp/portage/sys-fs/encfs-1.9.4/work/encfs-1.9.4/encfs/openssl.cpp: In function ‘void encfs::pthreads_locking_callback(int, int, const char*, int)’:
/var/tmp/portage/sys-fs/encfs-1.9.4/work/encfs-1.9.4/encfs/openssl.cpp:47:33: error: ‘CRYPTO_num_locks’ was not declared in this scope
     VLOG(1) << "Allocating " << CRYPTO_num_locks() << " locks for OpenSSL";
Comment 1 Johannes Hirte 2018-03-03 22:37:37 UTC
Created attachment 522222 [details, diff]
encfs-1.9.4-openssl-1.1.patch

patch for building encfs-1.9.4 with openssl-1.1 without compat layer
Comment 2 Anthony Basile gentoo-dev 2018-03-04 00:51:55 UTC
(In reply to Johannes Hirte from comment #1)
> Created attachment 522222 [details, diff] [details, diff]
> encfs-1.9.4-openssl-1.1.patch
> 
> patch for building encfs-1.9.4 with openssl-1.1 without compat layer

Did this patch go upstream?
Comment 3 Andreas Sturmlechner gentoo-dev 2018-08-18 13:35:59 UTC
Much to my surprise, 1.9.4 and 1.9.5 built fine against openssl-1.1.0i.
Comment 4 Johannes Hirte 2018-08-20 06:17:06 UTC
(In reply to Andreas Sturmlechner from comment #3)
> Much to my surprise, 1.9.4 and 1.9.5 built fine against openssl-1.1.0i.

I assume openssl was build with the compat-API now, right?
Comment 5 Andreas Sturmlechner gentoo-dev 2018-08-21 15:17:36 UTC
Not to my knowledge. I'm using regular 1.1.0i Gentoo repo ebuild, and API=1.0.0 option is dropped since v1.1.0h.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-10-24 15:44:10 UTC
Either fixed by removal of "disable-deprecated" in openssl or by the following encfs upstream commit:

https://github.com/vgough/encfs/commit/441fa20ed6a501115d07252787d6c99dd3dd5538