Can't compile with ssl on CentOS 6

Bug #865500 reported by Vadim Tkachenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Galera
Fix Released
Critical
Alex Yurchenko

Bug Description

On RedHat/CentOS/Oracle 6 system
running

scripts/build.sh
I am getting error:
"ssl support required but asio/ssl.hpp not found or not usable
compile with ssl=0 or check that openssl devel headers are usable
"

I have openssl-devel package installed

Also it is not really obvious how I can compile with ssl=0

Related branches

Revision history for this message
Alex Yurchenko (ayurchen) wrote :

while we're figuring out how to deal with it, compiling without SSL: in root directory issue

shell> scons ssl=0

Revision history for this message
Alex Yurchenko (ayurchen) wrote :

Looks like asio stable series (1.4.x) has a bug:

asio/asio/ssl/context_base.hpp:94: error: overflow in implicit constant conversion

The problematic line:
  BOOST_STATIC_CONSTANT(int, default_workarounds = SSL_OP_ALL);
  BOOST_STATIC_CONSTANT(int, single_dh_use = SSL_OP_SINGLE_DH_USE);
  BOOST_STATIC_CONSTANT(int, no_sslv2 = SSL_OP_NO_SSLv2);
  BOOST_STATIC_CONSTANT(int, no_sslv3 = SSL_OP_NO_SSLv3);
  BOOST_STATIC_CONSTANT(int, no_tlsv1 = SSL_OP_NO_TLSv1);

In OpenSSL 1.0 SSL_OP_ALL is a long int which occupies 32 bits. On 64-bit systems it is a positive value that cannot be represented by (signed) int.

Changed in galera:
assignee: nobody → Alex Yurchenko (ayurchen)
importance: Undecided → Critical
milestone: none → 21.0.8.4
status: New → In Progress
Changed in galera:
status: In Progress → Fix Committed
Revision history for this message
Alex Yurchenko (ayurchen) wrote :

this fix was released in 1.x and 2.x branches

Changed in galera:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.