Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2018 13:12:37 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478689 - head/databases/hamsterdb
Message-ID:  <201809011312.w81DCbMC041998@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sat Sep  1 13:12:37 2018
New Revision: 478689
URL: https://svnweb.freebsd.org/changeset/ports/478689

Log:
  databases/hamsterdb: unbreak build with Clang 6 (C++14 by default)
  
  In file included from 4env/env_local.cc:21:
  In file included from ./2device/device_factory.h:31:
  ./2device/device_disk.h:72:7: error: no matching function for call to 'swap'
        std::swap(m_state, state);
        ^~~~~~~~~
  /usr/include/c++/v1/type_traits:4643:1: note: candidate template ignored: requirement 'is_move_constructible<State>::value' was not satisfied [with _Tp = hamsterdb::DiskDevice::State]
  swap(_Tp& __x, _Tp& __y) _NOEXCEPT_(is_nothrow_move_constructible<_Tp>::value &&
  ^
  /usr/include/c++/v1/utility:268:1: note: candidate template ignored: could not match '_Tp [_Np]' against 'hamsterdb::DiskDevice::State'
  swap(_Tp (&__a)[_Np], _Tp (&__b)[_Np]) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value)
  ^
  /usr/include/c++/v1/utility:609:1: note: candidate template ignored: could not match 'pair<type-parameter-0-0, type-parameter-0-1>' against 'hamsterdb::DiskDevice::State'
  swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
  ^
  /usr/include/c++/v1/tuple:163:6: note: candidate template ignored: could not match '__tuple_leaf<_Ip, type-parameter-0-1, >' against 'hamsterdb::DiskDevice::State'
  void swap(__tuple_leaf<_Ip, _Hp, _Ep>& __x, __tuple_leaf<_Ip, _Hp, _Ep>& __y)
       ^
  /usr/include/c++/v1/tuple:949:1: note: candidate template ignored: could not match 'tuple<type-parameter-0-0...>' against 'hamsterdb::DiskDevice::State'
  swap(tuple<_Tp...>& __t, tuple<_Tp...>& __u)
  ^
  /usr/include/c++/v1/memory:2257:6: note: candidate template ignored: could not match '__compressed_pair<type-parameter-0-0, type-parameter-0-1>' against 'hamsterdb::DiskDevice::State'
  void swap(__compressed_pair<_T1, _T2>& __x, __compressed_pair<_T1, _T2>& __y)
       ^
  /usr/include/c++/v1/memory:2905:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'hamsterdb::DiskDevice::State'
  swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}
  ^
  /usr/include/c++/v1/memory:4887:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'hamsterdb::DiskDevice::State'
  swap(shared_ptr<_Tp>& __x, shared_ptr<_Tp>& __y) _NOEXCEPT
  ^
  /usr/include/c++/v1/memory:5186:1: note: candidate template ignored: could not match 'weak_ptr<type-parameter-0-0>' against 'hamsterdb::DiskDevice::State'
  swap(weak_ptr<_Tp>& __x, weak_ptr<_Tp>& __y) _NOEXCEPT
  ^
  /usr/include/c++/v1/string:3889:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'hamsterdb::DiskDevice::State'
  swap(basic_string<_CharT, _Traits, _Allocator>& __lhs,
  ^
  /usr/include/c++/v1/__mutex_base:277:1: note: candidate template ignored: could not match 'unique_lock<type-parameter-0-0>' against 'hamsterdb::DiskDevice::State'
  swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) _NOEXCEPT
  ^
  /usr/include/c++/v1/functional:1975:1: note: candidate template ignored: could not match 'function<type-parameter-0-0 (type-parameter-0-1...)>' against 'hamsterdb::DiskDevice::State'
  swap(function<_Rp(_ArgTypes...)>& __x, function<_Rp(_ArgTypes...)>& __y) _NOEXCEPT
  ^
  /usr/include/c++/v1/__bit_reference:86:1: note: candidate template ignored: could not match '__bit_reference<type-parameter-0-0, __has_storage_type<type-parameter-0-0>::value>' against 'hamsterdb::DiskDevice::State'
  swap(__bit_reference<_Cp> __x, __bit_reference<_Cp> __y) _NOEXCEPT
  ^
  /usr/include/c++/v1/__bit_reference:96:1: note: candidate template ignored: could not match '__bit_reference<type-parameter-0-0, __has_storage_type<type-parameter-0-0>::value>' against 'hamsterdb::DiskDevice::State'
  swap(__bit_reference<_Cp> __x, __bit_reference<_Dp> __y) _NOEXCEPT
  ^
  /usr/include/c++/v1/__bit_reference:106:1: note: candidate template ignored: could not match '__bit_reference<type-parameter-0-0, __has_storage_type<type-parameter-0-0>::value>' against 'hamsterdb::DiskDevice::State'
  swap(__bit_reference<_Cp> __x, bool& __y) _NOEXCEPT
  ^
  /usr/include/c++/v1/__bit_reference:116:1: note: candidate template ignored: could not match '__bit_reference<type-parameter-0-0, __has_storage_type<type-parameter-0-0>::value>' against 'hamsterdb::DiskDevice::State'
  swap(bool& __x, __bit_reference<_Cp> __y) _NOEXCEPT
  ^
  /usr/include/c++/v1/__tree:2681:1: note: candidate template ignored: could not match '__tree<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'hamsterdb::DiskDevice::State'
  swap(__tree<_Tp, _Compare, _Allocator>& __x,
  ^
  /usr/include/c++/v1/map:553:1: note: candidate template ignored: could not match '__map_value_compare<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2, >' against 'hamsterdb::DiskDevice::State'
  swap(__map_value_compare<_Key, _CP, _Compare, __b>& __x,
  ^
  /usr/include/c++/v1/map:1452:1: note: candidate template ignored: could not match 'map<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2, type-parameter-0-3>' against 'hamsterdb::DiskDevice::State'
  swap(map<_Key, _Tp, _Compare, _Allocator>& __x,
  ^
  /usr/include/c++/v1/map:1917:1: note: candidate template ignored: could not match 'multimap<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2, type-parameter-0-3>' against 'hamsterdb::DiskDevice::State'
  swap(multimap<_Key, _Tp, _Compare, _Allocator>& __x,
  ^
  /usr/include/c++/v1/sstream:431:1: note: candidate template ignored: could not match 'basic_stringbuf<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'hamsterdb::DiskDevice::State'
  swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x,
  ^
  /usr/include/c++/v1/sstream:718:1: note: candidate template ignored: could not match 'basic_istringstream<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'hamsterdb::DiskDevice::State'
  swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x,
  ^
  /usr/include/c++/v1/sstream:836:1: note: candidate template ignored: could not match 'basic_ostringstream<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'hamsterdb::DiskDevice::State'
  swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x,
  ^
  /usr/include/c++/v1/sstream:955:1: note: candidate template ignored: could not match 'basic_stringstream<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'hamsterdb::DiskDevice::State'
  swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x,
  ^
  /usr/include/c++/v1/__split_buffer:627:1: note: candidate template ignored: could not match '__split_buffer<type-parameter-0-0, type-parameter-0-1>' against 'hamsterdb::DiskDevice::State'
  swap(__split_buffer<_Tp, _Allocator>& __x, __split_buffer<_Tp, _Allocator>& __y)
  ^
  /usr/include/c++/v1/vector:3358:1: note: candidate template ignored: could not match 'vector<type-parameter-0-0, type-parameter-0-1>' against 'hamsterdb::DiskDevice::State'
  swap(vector<_Tp, _Allocator>& __x, vector<_Tp, _Allocator>& __y)
  ^
  /usr/include/c++/v1/list:2411:1: note: candidate template ignored: could not match 'list<type-parameter-0-0, type-parameter-0-1>' against 'hamsterdb::DiskDevice::State'
  swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y)
  ^
  /usr/include/c++/v1/deque:2900:1: note: candidate template ignored: could not match 'deque<type-parameter-0-0, type-parameter-0-1>' against 'hamsterdb::DiskDevice::State'
  swap(deque<_Tp, _Allocator>& __x, deque<_Tp, _Allocator>& __y)
  ^
  /usr/include/c++/v1/set:800:1: note: candidate template ignored: could not match 'set<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'hamsterdb::DiskDevice::State'
  swap(set<_Key, _Compare, _Allocator>& __x,
  ^
  /usr/include/c++/v1/set:1209:1: note: candidate template ignored: could not match 'multiset<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'hamsterdb::DiskDevice::State'
  swap(multiset<_Key, _Compare, _Allocator>& __x,
  ^
  /usr/include/c++/v1/array:286:1: note: candidate template ignored: could not match 'array<type-parameter-0-0, _Size>' against 'hamsterdb::DiskDevice::State'
  swap(array<_Tp, _Size>& __x, array<_Tp, _Size>& __y)
  ^
  
  Reported by:	pkg-fallout

Modified:
  head/databases/hamsterdb/Makefile   (contents, props changed)

Modified: head/databases/hamsterdb/Makefile
==============================================================================
--- head/databases/hamsterdb/Makefile	Sat Sep  1 13:11:28 2018	(r478688)
+++ head/databases/hamsterdb/Makefile	Sat Sep  1 13:12:37 2018	(r478689)
@@ -17,6 +17,7 @@ BROKEN_powerpc64=	fails to configure: checking for the
 BUILD_DEPENDS=	${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
 
 USES=		alias gmake libtool
+USE_CXXSTD=	gnu++98
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS+=	--with-boost=${LOCALBASE}
@@ -31,6 +32,7 @@ post-patch:
 	${REINPLACE_CMD} -e 's#-ldl##g' ${WRKSRC}/configure
 	${REINPLACE_CMD} -e 's#-ldl##g' ${WRKSRC}/unittests/Makefile.in
 	${REINPLACE_CMD} -e 's#-ldl##g' ${WRKSRC}/tools/ham_bench/Makefile.in
+	${REINPLACE_CMD} -e '/^CXXFLAGS=$${CFLAGS}$$/d' ${WRKSRC}/configure
 
 post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809011312.w81DCbMC041998>