Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648698 - 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
Summary: sys-fs/encfs-1.9.4 with dev-libs/openssl-1.1.0g-r2 - .../work/encfs-1.9.4/enc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: openssl-1.1
  Show dependency tree
 
Reported: 2018-02-24 13:06 UTC by bug2017
Modified: 2018-10-24 15:44 UTC (History)
3 users (show)

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


Attachments
emerge output (build.log,73.92 KB, text/plain)
2018-02-24 13:06 UTC, bug2017
Details
encfs-1.9.4-openssl-1.1.patch (encfs-1.9.4-openssl-1.1.patch,3.35 KB, patch)
2018-03-03 22:37 UTC, Johannes Hirte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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