Closed eworm-de closed 6 years ago
Hi,
This sounds a bit strange since Galera should not use boost asio, but uses standalone asio instead. Can you give more detailed information about compilation errors or point me to Linux distro which has boost 1.66.0 or higher?
A workaround is to compile with scons system_asio=0
, then it will use the bundled ASIO which has been verified to work.
system_asio=1
should also work if Asio 1.10.8 from http://think-async.com/Asio/ is installed system wide.
And yes, as @temeo mentioned - can you provide the exact command you ran with its full output?
This is with Arch Linux, which has boost 1.67.0-7 at the moment. I am trying to bump galera to version 25.3.24. Had to add boost to the make dependencies for boost/shared_ptr.hpp
- did anything change here?
See the current galera PKGBUILD for details.
Our asio is version 1.12.0-1.
This is full build log:
scons: Reading SConscript files ...
Host: linux x86_64 64bit
Signature: version: 3.24, revision: f216443
Using C compiler executable: gcc
C compiler version is: gcc (GCC) 8.2.1 20180831
Using C++ compiler executable: g++
C++ compiler version is: g++ (GCC) 8.2.1 20180831
Checking for C library pthread... yes
Checking for C library rt... yes
Checking for C header file sys/epoll.h... yes
Checking for C header file byteswap.h... yes
Checking for C header file endian.h... yes
Checking for C header file execinfo.h... yes
Checking if compiling in C++11 mode ... no
Checking for std::tr1::array ... yes
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking for std::tr1::unordered_map ... yes
Checking for C++ header file boost/program_options.hpp... yes
Checking for C++ header file asio.hpp... yes
Checking ASIO version (> 1.10.1) ... yes
Checking for C++ header file asio/ssl.hpp... yes
Checking for C library ssl... yes
Checking for C library crypto... yes
Checking for SSL_CTX_set_ecdh_auto() ... yes
Checking whether to enable -Weffc++ ... yes
Global flags:
CFLAGS: -std=c99 -fno-strict-aliasing -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt
CXXFLAGS: -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt
CCFLAGS: -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter
CPPFLAGS: -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO
Checking for C header file check.h... yes
Checking for C library check... yes
Checking for C library m... yes
Checking for C library subunit... no
Checking for C library rt... yes
gcs flags:
CFLAGS: -std=c99 -fno-strict-aliasing -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt
CXXFLAGS: -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt
CCFLAGS: -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-variadic-macros
CPPFLAGS: -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -DGCS_USE_GCOMM -DGALERA_LOG_H_ENABLE_CXX
scons: done reading SConscript files.
scons: Building targets ...
g++ -o galera/src/certification.o -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/certification.cpp
g++ -o galera/src/certification.os -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -fPIC -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/certification.cpp
g++ -o galera/src/data_set.o -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/data_set.cpp
g++ -o galera/src/data_set.os -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -fPIC -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/data_set.cpp
g++ -o galera/src/galera_info.o -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/galera_info.cpp
g++ -o galera/src/galera_info.os -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -fPIC -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/galera_info.cpp
g++ -o galera/src/galera_service_thd.o -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/galera_service_thd.cpp
g++ -o galera/src/galera_service_thd.os -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -fPIC -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/galera_service_thd.cpp
g++ -o galera/src/gcs_action_source.o -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/gcs_action_source.cpp
g++ -o galera/src/gcs_action_source.os -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -fPIC -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/gcs_action_source.cpp
g++ -o galera/src/gcs_dummy.o -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/gcs_dummy.cpp
g++ -o galera/src/gcs_dummy.os -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -fPIC -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/gcs_dummy.cpp
g++ -o galera/src/ist.o -c -Wold-style-cast -Weffc++ -pipe -Wno-long-long -Wno-deprecated -ansi -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -O3 -DNDEBUG -m64 -pthread -fPIC -Wall -Wextra -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_EXECINFO_H -DHAVE_TR1_ARRAY -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DOPENSSL_HAS_SET_ECDH_AUTO -Iwsrep/src -I. -Icommon -Igalerautils/src -Igcache/src -Igcs/src galera/src/ist.cpp
galera/src/ist.cpp: In constructor 'galera::ist::Receiver::Receiver(gu::Config&, galera::TrxHandle::SlavePool&, const char*)':
galera/src/ist.cpp:108:25: error: no matching function for call to 'asio::ssl::context::context(asio::io_service&, asio::ssl::context_base::method)'
ready_ (false)
^
In file included from /usr/include/asio/ssl/context.hpp:755,
from /usr/include/asio/ssl.hpp:18,
from galerautils/src/gu_asio.hpp:47,
from galera/src/ist.hpp:15,
from galera/src/ist.cpp:5:
/usr/include/asio/ssl/impl/context.ipp:62:1: note: candidate: 'asio::ssl::context::context(asio::ssl::context_base::method)'
context::context(context::method m)
^~~~~~~
/usr/include/asio/ssl/impl/context.ipp:62:1: note: candidate expects 1 argument, 2 provided
In file included from /usr/include/asio/ssl.hpp:18,
from galerautils/src/gu_asio.hpp:47,
from galera/src/ist.hpp:15,
from galera/src/ist.cpp:5:
/usr/include/asio/ssl/context.hpp:35:7: note: candidate: 'asio::ssl::context::context(const asio::ssl::context&)'
class context
^~~~~~~
/usr/include/asio/ssl/context.hpp:35:7: note: candidate expects 1 argument, 2 provided
galera/src/ist.cpp: In constructor 'galera::ist::Sender::Sender(const gu::Config&, gcache::GCache&, const string&, int)':
galera/src/ist.cpp:637:22: error: no matching function for call to 'asio::ssl::context::context(asio::io_service&, asio::ssl::context_base::method)'
use_ssl_ (false)
^
In file included from /usr/include/asio/ssl/context.hpp:755,
from /usr/include/asio/ssl.hpp:18,
from galerautils/src/gu_asio.hpp:47,
from galera/src/ist.hpp:15,
from galera/src/ist.cpp:5:
/usr/include/asio/ssl/impl/context.ipp:62:1: note: candidate: 'asio::ssl::context::context(asio::ssl::context_base::method)'
context::context(context::method m)
^~~~~~~
/usr/include/asio/ssl/impl/context.ipp:62:1: note: candidate expects 1 argument, 2 provided
In file included from /usr/include/asio/ssl.hpp:18,
from galerautils/src/gu_asio.hpp:47,
from galera/src/ist.hpp:15,
from galera/src/ist.cpp:5:
/usr/include/asio/ssl/context.hpp:35:7: note: candidate: 'asio::ssl::context::context(const asio::ssl::context&)'
class context
^~~~~~~
/usr/include/asio/ssl/context.hpp:35:7: note: candidate expects 1 argument, 2 provided
In file included from galera/src/ist.hpp:15,
from galera/src/ist.cpp:5:
galerautils/src/gu_asio.hpp: In instantiation of 'void gu::set_fd_options(S&) [with S = asio::basic_socket_acceptor<asio::ip::tcp>]':
galera/src/ist.cpp:317:37: required from here
galerautils/src/gu_asio.hpp:197:26: error: 'class asio::basic_socket_acceptor<asio::ip::tcp>' has no member named 'native'
if (fcntl(socket.native(), F_SETFD, flags) == -1)
~~~~~~~^~~~~~
galerautils/src/gu_asio.hpp: In instantiation of 'void gu::set_fd_options(S&) [with S = asio::basic_socket<asio::ip::tcp>]':
galera/src/ist.cpp:366:57: required from here
galerautils/src/gu_asio.hpp:197:26: error: 'class asio::basic_socket<asio::ip::tcp>' has no member named 'native'
galerautils/src/gu_asio.hpp: In instantiation of 'void gu::set_fd_options(S&) [with S = asio::basic_stream_socket<asio::ip::tcp>]':
galera/src/ist.cpp:372:38: required from here
galerautils/src/gu_asio.hpp:197:26: error: 'class asio::basic_stream_socket<asio::ip::tcp>' has no member named 'native'
In file included from galera/src/ist.cpp:6:
galera/src/ist_proto.hpp: In member function 'void galera::ist::Proto::recv_handshake_response(ST&) [with ST = asio::ssl::stream<asio::basic_stream_socket<asio::ip::tcp> >]':
galera/src/ist_proto.hpp:364:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
gu_throw_error(EINTR) << "interrupted by ctrl";
galera/src/ist_proto.hpp:365:21: note: here
default:
^~~~~~~
galera/src/ist_proto.hpp:367:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
<< msg.ctrl();
galera/src/ist_proto.hpp:369:17: note: here
default:
^~~~~~~
galera/src/ist_proto.hpp: In member function 'void galera::ist::Proto::recv_handshake_response(ST&) [with ST = asio::basic_stream_socket<asio::ip::tcp>]':
galera/src/ist_proto.hpp:364:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
gu_throw_error(EINTR) << "interrupted by ctrl";
galera/src/ist_proto.hpp:365:21: note: here
default:
^~~~~~~
galera/src/ist_proto.hpp:367:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
<< msg.ctrl();
galera/src/ist_proto.hpp:369:17: note: here
default:
^~~~~~~
galera/src/ist_proto.hpp: In member function 'galera::TrxHandle* galera::ist::Proto::recv_trx(ST&) [with ST = asio::ssl::stream<asio::basic_stream_socket<asio::ip::tcp> >]':
galera/src/ist_proto.hpp:576:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (msg.ctrl() >= 0)
^~
galera/src/ist_proto.hpp:586:17: note: here
default:
^~~~~~~
galera/src/ist_proto.hpp: In member function 'galera::TrxHandle* galera::ist::Proto::recv_trx(ST&) [with ST = asio::basic_stream_socket<asio::ip::tcp>]':
galera/src/ist_proto.hpp:576:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (msg.ctrl() >= 0)
^~
galera/src/ist_proto.hpp:586:17: note: here
default:
^~~~~~~
In file included from galerautils/src/gu_serializable.hpp:13,
from galerautils/src/gu_digest.hpp:14,
from galerautils/src/gu_rset.hpp:18,
from galera/src/key_set.hpp:9,
from galera/src/write_set_ng.hpp:18,
from galera/src/galera_gcs.hpp:8,
from galera/src/ist.hpp:10,
from galera/src/ist.cpp:5:
galera/src/ist_proto.hpp: In member function 'void galera::ist::Proto::recv_handshake(ST&) [with ST = asio::ssl::stream<asio::basic_stream_socket<asio::ip::tcp> >]':
galerautils/src/gu_throw.hpp:115:63: warning: this statement may fall through [-Wimplicit-fallthrough=]
gu::ThrowError(__FILE__, __FUNCTION__, __LINE__, err_).msg()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
galera/src/ist_proto.hpp:304:25: note: in expansion of macro 'gu_throw_error'
gu_throw_error(EINTR);
^~~~~~~~~~~~~~
In file included from galera/src/ist.cpp:6:
galera/src/ist_proto.hpp:305:21: note: here
default:
^~~~~~~
In file included from galerautils/src/gu_serializable.hpp:13,
from galerautils/src/gu_digest.hpp:14,
from galerautils/src/gu_rset.hpp:18,
from galera/src/key_set.hpp:9,
from galera/src/write_set_ng.hpp:18,
from galera/src/galera_gcs.hpp:8,
from galera/src/ist.hpp:10,
from galera/src/ist.cpp:5:
galera/src/ist_proto.hpp: In member function 'void galera::ist::Proto::recv_handshake(ST&) [with ST = asio::basic_stream_socket<asio::ip::tcp>]':
galerautils/src/gu_throw.hpp:115:63: warning: this statement may fall through [-Wimplicit-fallthrough=]
gu::ThrowError(__FILE__, __FUNCTION__, __LINE__, err_).msg()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
galera/src/ist_proto.hpp:304:25: note: in expansion of macro 'gu_throw_error'
gu_throw_error(EINTR);
^~~~~~~~~~~~~~
In file included from galera/src/ist.cpp:6:
galera/src/ist_proto.hpp:305:21: note: here
default:
^~~~~~~
In file included from galera/src/galera_gcs.hpp:8,
from galera/src/ist.hpp:10,
from galera/src/ist.cpp:5:
galera/src/write_set_ng.hpp: In static member function 'static galera::WriteSetNG::Version galera::WriteSetNG::version(int)':
galera/src/write_set_ng.hpp:94:77: warning: control reaches end of non-void function [-Wreturn-type]
gu_throw_error (EPROTO) << "Unrecognized writeset version: " << v;
^
scons: *** [galera/src/ist.o] Error 1
scons: building terminated because of errors.
@eworm-de The system asio lib is too new for current Galera codebase. Giving system_asio=0 option to scons should make it compile.
You are right, galera builds just fine with bundled asio. Thanks a lot!
With boost 1.66.0 API changed for ASIO, breaking build for galera. More information:
https://www.boost.org/users/history/version_1_66_0.html https://www.boost.org/doc/libs/1_66_0/doc/html/boost_asio/net_ts.html