In the last commit I removed a patch that excluded -Werror from the compiler
flags. It was building on amd64, but apparently it breaks on the cluster. This
commit restores the removal of -Werror.
In file included from src/config.hpp:23,
from src/cluster.hpp:20,
from src/cluster.cpp:17:
src/execution_profile.hpp: In member function 'datastax::internal::core::ExecutionProfile& datastax::internal::core::ExecutionProfile::operator=(const datastax::internal::core::ExecutionProfile&)':
src/execution_profile.hpp:28:7: error: implicitly-declared 'datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >& datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >::operator=(const datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >&)' is deprecated [-Werror=deprecated-copy]
28 | class ExecutionProfile : public Allocated {
| ^~~~~~~~~~~~~~~~
In file included from src/address.hpp:24,
from src/serialization.hpp:20,
from src/buffer.hpp:21,
from src/auth.hpp:20,
from src/config.hpp:20,
from src/cluster.hpp:20,
from src/cluster.cpp:17:
src/vector.hpp:31:3: note: because 'datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >' has user-provided 'datastax::internal::Vector<T>::Vector(const datastax::internal::Vector<T>&) [with T = std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> >]'
31 | Vector(const Vector& other)
| ^~~~~~
In file included from src/config.hpp:23,
from src/cluster.hpp:20,
from src/cluster.cpp:17:
src/execution_profile.hpp:28:7: error: implicitly-declared 'datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >& datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >::operator=(const datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >&)' is deprecated [-Werror=deprecated-copy]
28 | class ExecutionProfile : public Allocated {
| ^~~~~~~~~~~~~~~~
In file included from src/address.hpp:24,
from src/serialization.hpp:20,
from src/buffer.hpp:21,
from src/auth.hpp:20,
from src/config.hpp:20,
from src/cluster.hpp:20,
from src/cluster.cpp:17:
src/vector.hpp:31:3: note: because 'datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >' has user-provided 'datastax::internal::Vector<T>::Vector(const datastax::internal::Vector<T>&) [with T = std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> >]'
31 | Vector(const Vector& other)
| ^~~~~~
In file included from src/config.hpp:23,
from src/cluster.hpp:20,
from src/cluster.cpp:17:
src/execution_profile.hpp:28:7: error: implicitly-declared 'datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >& datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >::operator=(const datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >&)' is deprecated [-Werror=deprecated-copy]
28 | class ExecutionProfile : public Allocated {
| ^~~~~~~~~~~~~~~~
In file included from src/address.hpp:24,
from src/serialization.hpp:20,
from src/buffer.hpp:21,
from src/auth.hpp:20,
from src/config.hpp:20,
from src/cluster.hpp:20,
from src/cluster.cpp:17:
src/vector.hpp:31:3: note: because 'datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >' has user-provided 'datastax::internal::Vector<T>::Vector(const datastax::internal::Vector<T>&) [with T = std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> >]'
31 | Vector(const Vector& other)
| ^~~~~~
In file included from src/config.hpp:23,
from src/cluster.hpp:20,
from src/cluster.cpp:17:
src/execution_profile.hpp:28:7: error: implicitly-declared 'datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >& datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >::operator=(const datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >&)' is deprecated [-Werror=deprecated-copy]
28 | class ExecutionProfile : public Allocated {
| ^~~~~~~~~~~~~~~~
In file included from src/address.hpp:24,
from src/serialization.hpp:20,
from src/buffer.hpp:21,
from src/auth.hpp:20,
from src/config.hpp:20,
from src/cluster.hpp:20,
from src/cluster.cpp:17:
src/vector.hpp:31:3: note: because 'datastax::internal::Vector<std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> > >' has user-provided 'datastax::internal::Vector<T>::Vector(const datastax::internal::Vector<T>&) [with T = std::__cxx11::basic_string<char, std::char_traits<char>, datastax::internal::Allocator<char> >]'
31 | Vector(const Vector& other)
| ^~~~~~
In file included from src/cluster.hpp:20,
from src/cluster.cpp:17:
src/config.hpp: In member function 'void datastax::internal::core::Config::set_execution_profile(const String&, const datastax::internal::core::ExecutionProfile*)':
src/config.hpp:318:23: note: synthesized method 'datastax::internal::core::ExecutionProfile& datastax::internal::core::ExecutionProfile::operator=(const datastax::internal::core::ExecutionProfile&)' first required here
318 | profiles_[name] = copy;
| ^~~~
src/cluster.cpp: In member function 'datastax::internal::core::LockedHostMap& datastax::internal::core::LockedHostMap::operator=(const HostMap&)':
src/cluster.cpp:194:12: error: implicitly-declared 'datastax::internal::Map<datastax::internal::core::Address, datastax::internal::SharedRefPtr<datastax::internal::core::Host> >& datastax::internal::Map<datastax::internal::core::Address, datastax::internal::SharedRefPtr<datastax::internal::core::Host> >::operator=(const datastax::internal::Map<datastax::internal::core::Address, datastax::internal::SharedRefPtr<datastax::internal::core::Host> >&)' is deprecated [-Werror=deprecated-copy]
194 | hosts_ = hosts;
| ^~~~~
In file included from src/serialization.hpp:22,
from src/buffer.hpp:21,
from src/auth.hpp:20,
from src/config.hpp:20,
from src/cluster.hpp:20,
from src/cluster.cpp:17:
src/map.hpp:28:3: note: because 'datastax::internal::Map<datastax::internal::core::Address, datastax::internal::SharedRefPtr<datastax::internal::core::Host> >' has user-provided 'datastax::internal::Map<K, V, Compare>::Map(const datastax::internal::Map<K, V, Compare>&) [with K = datastax::internal::core::Address; V = datastax::internal::SharedRefPtr<datastax::internal::core::Host>; Compare = std::less<datastax::internal::core::Address>]'
28 | Map(const Map& other)
| ^~~
cc1plus: all warnings being treated as errors
src/utils.cpp:106:65: error: 'ptr_fun<int, int>' is deprecated [-Werror,-Wdeprecated-declarations]
std::find_if(str.begin(), str.end(), std::not1(std::ptr_fun<int, int>(::isspace))));
^
/usr/include/c++/v1/functional:1100:1: note: 'ptr_fun<int, int>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/usr/include/c++/v1/__config:944:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
# define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
^
/usr/include/c++/v1/__config:933:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
src/utils.cpp:109:61: error: 'ptr_fun<int, int>' is deprecated [-Werror,-Wdeprecated-declarations]
std::find_if(str.rbegin(), str.rend(), std::not1(std::ptr_fun<int, int>(::isspace))).base(),
^
/usr/include/c++/v1/functional:1100:1: note: 'ptr_fun<int, int>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/usr/include/c++/v1/__config:944:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
# define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
^
/usr/include/c++/v1/__config:933:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
Reported by: pkg-fallout, antoine (via bug 240629 exp-run)
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".
I tried to only set insource where explictely needed.
PR: 232038
Exp-run by: antoine
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
DataStax Cpp Driver is modern, feature-rich, and highly tunable C/C++
client library for Apache Cassandra (1.2+) and DataStax Enterprise
(3.1+) using exclusively Cassandra's native protocol and Cassandra
Query Language v3.
WWW: http://datastax.github.io/cpp-driver/