Error building Folly: OPENSSL_cleanup was not declared in this scope

130 views
Skip to first unread message

eamonnc...@gmail.com

unread,
Apr 2, 2019, 2:03:51 PM4/2/19
to Folly: the Facebook Open-source LibrarY
As per the attached file I'm getting an error when I run make.

OPENSSL_cleanup was not declared in this scope

OPENSSL_cleanup();

I'm trying to build this on Void Linux.
I'm wondering if the fact that it uses libreSSL has any bearing on this?

Any ideas??

Thanks Eamonn
folly_make_output

Eamonn Costello

unread,
May 9, 2019, 5:35:17 PM5/9/19
to Folly: the Facebook Open-source LibrarY
This is a more complete output



In file included from ./../folly/io/async/AsyncSSLSocket.h:28,
                 from io/async/AsyncSSLSocket.cpp:17:
./../folly/io/async/SSLContext.h: In member function 'void folly::SSLContext::setSignatureAlgorithms(Iterator, Iterator)':
./../folly/io/async/SSLContext.h:175:12: error: there are no arguments to 'SSL_CTX_set1_sigalgs_list' that depend on a template parameter, so a declaration of 'SSL_CTX_set1_sigalgs_list' must be available [-fpermissive]
       if (!SSL_CTX_set1_sigalgs_list(ctx_, opensslSigAlgsList.c_str())) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~
./../folly/io/async/SSLContext.h:175:12: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
io/async/AsyncSSLSocket.cpp: In member function 'bool folly::AsyncSSLSocket::isServerNameMatch() const':
io/async/AsyncSSLSocket.cpp:590:25: error: 'SSL_SESSION_get0_hostname' was not declared in this scope
   auto tlsextHostname = SSL_SESSION_get0_hostname(ss);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~
io/async/AsyncSSLSocket.cpp:590:25: note: suggested alternative: 'SSL_SESSION_get_time'
   auto tlsextHostname = SSL_SESSION_get0_hostname(ss);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~
                         SSL_SESSION_get_time
make[2]: *** [Makefile:2308: io/async/AsyncSSLSocket.lo] Error 1
make[2]: Leaving directory '/home/eamoc/CODE/folly/folly'
make[1]: *** [Makefile:2427: all-recursive] Error 1
make[1]: Leaving directory '/home/eamoc/CODE/folly/folly'
make: *** [Makefile:1448: all] Error 2
Reply all
Reply to author
Forward
0 new messages