Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 626636 - sys-fs/encfs-1.9.2 [libressl] fail to build
Summary: sys-fs/encfs-1.9.2 [libressl] fail to build
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: https://forums.gentoo.org/viewtopic-t...
Whiteboard:
Keywords: PATCH
: 644978 (view as bug list)
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2017-07-30 18:30 UTC by Marco Genasci
Modified: 2018-04-13 02:12 UTC (History)
2 users (show)

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


Attachments
encfs-1.9.2-libressl.patch (encfs-1.9.2-libressl.patch,540 bytes, patch)
2017-07-30 18:31 UTC, Marco Genasci
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Genasci 2017-07-30 18:30:57 UTC
sys-fs/encfs-1.9.2 fails to build with libressl use flag:

[ 89%] Building CXX object CMakeFiles/encfs.dir/encfs/XmlReader.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DELPP_DISABLE_DEFAULT_CRASH_HANDLING -DELPP_NO_DEFAULT_LOG_FILE -DELPP_SYSLOG -DELPP_THREAD_SAFE -DENABLE_NLS -DFUSE_USE_VERSION=26 -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"encfs\" -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -I/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2_build -I/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2   -DNDEBUG -O2 -pipe -march=haswell -mtune=haswell   -std=gnu++11 -o CMakeFiles/encfs.dir/encfs/XmlReader.cpp.o -c /var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2/encfs/XmlReader.cpp
/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2/encfs/SSL_Cipher.cpp: In function :
/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2/encfs/SSL_Cipher.cpp:78:35: error: was not declared in this scope
  EVP_MD_CTX *cx = EVP_MD_CTX_new();
                                                                      ^
/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2/encfs/SSL_Cipher.cpp:110:21: error: was not declared in this scope
  EVP_MD_CTX_free(cx);
                                       ^
/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2/encfs/SSL_Cipher.cpp: In constructor :
/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2/encfs/SSL_Cipher.cpp:263:26: error: was not declared in this scope
  mac_ctx = HMAC_CTX_new();
                                                 ^
/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2/encfs/SSL_Cipher.cpp:264:25: error: was not declared in this scope
  HMAC_CTX_reset(mac_ctx);
                                              ^
/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2/encfs/SSL_Cipher.cpp: In destructor :
/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2/encfs/SSL_Cipher.cpp:281:24: error: was not declared in this scope
  HMAC_CTX_free(mac_ctx);
                                            ^
make[2]: *** [CMakeFiles/encfs.dir/build.make:687: CMakeFiles/encfs.dir/encfs/SSL_Cipher.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2_build'
make[1]: *** [CMakeFiles/Makefile2:253: CMakeFiles/encfs.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-fs/encfs-1.9.2/work/encfs-1.9.2_build'
make: *** [Makefile:163: all] Error 2 

See the forum thread https://forums.gentoo.org/viewtopic-t-1066940.html

Reproducible: Always
Comment 1 Marco Genasci 2017-07-30 18:31:45 UTC
Created attachment 487418 [details, diff]
encfs-1.9.2-libressl.patch
Comment 2 Anthony Basile gentoo-dev 2017-11-12 15:56:02 UTC
(In reply to Marco Genasci from comment #1)
> Created attachment 487418 [details, diff] [details, diff]
> encfs-1.9.2-libressl.patch

thanks!  for the record, what version of libressl are you running?
Comment 3 Marco Genasci 2017-11-12 19:42:31 UTC
(In reply to Anthony Basile from comment #2)
> (In reply to Marco Genasci from comment #1)
> > Created attachment 487418 [details, diff] [details, diff] [details, diff]
> > encfs-1.9.2-libressl.patch
> 
> thanks!  for the record, what version of libressl are you running?

Sorry but I don't use libressl, I only created the patch for a user in the forum (https://forums.gentoo.org/viewtopic-t-1066940.html) and reported the bug.
Comment 4 Anthony Basile gentoo-dev 2017-11-12 19:50:49 UTC
(In reply to Marco Genasci from comment #3)
> (In reply to Anthony Basile from comment #2)
> > (In reply to Marco Genasci from comment #1)
> > > Created attachment 487418 [details, diff] [details, diff] [details, diff] [details, diff]
> > > encfs-1.9.2-libressl.patch
> > 
> > thanks!  for the record, what version of libressl are you running?
> 
> Sorry but I don't use libressl, I only created the patch for a user in the
> forum (https://forums.gentoo.org/viewtopic-t-1066940.html) and reported the
> bug.

well i can test at my end.
Comment 5 Arfrever Frehtes Taifersar Arahesis 2018-04-13 02:07:47 UTC
ChangeLog for 1.9.3 contains:
"""
	* Ensure compatibility with LibreSSL
"""


https://github.com/vgough/encfs/commit/566f4e48cfe0a8bd27b53718ec5c51b6235804f1
Comment 6 Arfrever Frehtes Taifersar Arahesis 2018-04-13 02:12:24 UTC
*** Bug 644978 has been marked as a duplicate of this bug. ***