That wouldn't cause it to fail in this manner. If you notice the depfiles are running g++ with the -std=gnu++0x attribute set.
Code: Select all
$ make
g++ -std=gnu++0x -DHAVE_CONFIG_H -I. -I./src/common -DdsUDPSERV -g -O2 -MT dsgame-instance_loader.o -MD -MP -MF .deps/dsgame-instance_loader.Tpo -c -o dsgame-instance_loader.o `test -f 'src/map/instance_loader.cpp' || echo './'`src/map/instance_loader.cpp
In file included from src/map/instance_loader.cpp:24:
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/chrono:535:6: error:
no matching constructor for initialization of 'duration' (aka
'std::chrono::duration<long, std::ratio<1, 1000000> >')
: __d(__t.time_since_epoch())
^ ~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/condition_variable:106:42: note:
in instantiation of function template specialization
'std::chrono::time_point<std::chrono::system_clock,
std::chrono::duration<long, std::ratio<1, 1000000> >
>::time_point<std::chrono::duration<long, std::ratio<1, 1000000000> > >'
requested here
const __clock_t::time_point __s_atime = __s_entry + __delta;
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/chrono:234:12: note:
candidate constructor not viable: no known conversion from
'duration<[...], ratio<[...], 1000000000>>' to 'const duration<[...],
ratio<[...], 1000000>>' for 1st argument
constexpr duration(const duration&) = default;
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/chrono:240:23: note:
candidate template ignored: couldn't infer template argument ''
constexpr explicit duration(const _Rep2& __rep)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/chrono:247:14: note:
candidate template ignored: couldn't infer template argument ''
constexpr duration(const duration<_Rep2, _Period2>& __d)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/chrono:232:12: note:
candidate constructor not viable: requires 0 arguments, but 1 was provided
constexpr duration() : __r() { }
^
src/map/instance_loader.cpp:70:51: error: invalid operands to binary expression
('int' and 'std::future_status')
...task.wait_for(std::chrono::milliseconds(0)) == std::future_status::ready)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_pair.h:201:5: note:
candidate template ignored: could not match 'pair<type-parameter-0-0,
type-parameter-0-1>' against 'bool'
operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/tuple:575:5: note:
candidate template ignored: could not match 'tuple<type-parameter-0-0...>'
against 'bool'
operator==(const tuple<_TElements...>& __t,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/functional:2227:5: note:
candidate template ignored: could not match 'function<type-parameter-0-0
(type-parameter-0-1...)>' against 'bool'
operator==(const function<_Res(_Args...)>& __f, nullptr_t)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/functional:2233:5: note:
candidate template ignored: could not match 'function<type-parameter-0-0
(type-parameter-0-1...)>' against 'std::future_status'
operator==(nullptr_t, const function<_Res(_Args...)>& __f)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_iterator.h:285:5: note:
candidate template ignored: could not match
'reverse_iterator<type-parameter-0-0>' against 'bool'
operator==(const reverse_iterator<_Iterator>& __x,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_iterator.h:335:5: note:
candidate template ignored: could not match
'reverse_iterator<type-parameter-0-0>' against 'bool'
operator==(const reverse_iterator<_IteratorL>& __x,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_iterator.h:1025:5: note:
candidate template ignored: could not match
'move_iterator<type-parameter-0-0>' against 'bool'
operator==(const move_iterator<_IteratorL>& __x,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_iterator.h:1031:5: note:
candidate template ignored: could not match
'move_iterator<type-parameter-0-0>' against 'bool'
operator==(const move_iterator<_Iterator>& __x,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/allocator.h:122:5: note:
candidate template ignored: could not match
'allocator<type-parameter-0-0>' against 'bool'
operator==(const allocator<_T1>&, const allocator<_T2>&)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/allocator.h:127:5: note:
candidate template ignored: could not match
'allocator<type-parameter-0-0>' against 'bool'
operator==(const allocator<_Tp>&, const allocator<_Tp>&)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/postypes.h:218:5: note:
candidate template ignored: could not match 'fpos<type-parameter-0-0>'
against 'bool'
operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/unique_ptr.h:434:5: note:
candidate template ignored: could not match
'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'bool'
operator==(const unique_ptr<_Tp, _Dp>& __x,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/unique_ptr.h:440:5: note:
candidate template ignored: could not match
'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'bool'
operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/unique_ptr.h:445:5: note:
candidate template ignored: could not match
'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against
'std::future_status'
operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __y)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/shared_ptr_base.h:1054:5: note:
candidate template ignored: could not match
'__shared_ptr<type-parameter-0-0, _Lp>' against 'bool'
operator==(const __shared_ptr<_Tp1, _Lp>& __a,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/shared_ptr_base.h:1060:5: note:
candidate template ignored: could not match
'__shared_ptr<type-parameter-0-0, _Lp>' against 'bool'
operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/shared_ptr_base.h:1065:5: note:
candidate template ignored: could not match
'__shared_ptr<type-parameter-0-0, _Lp>' against 'std::future_status'
operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __b)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/shared_ptr.h:328:5: note:
candidate template ignored: could not match
'shared_ptr<type-parameter-0-0>' against 'bool'
operator==(const shared_ptr<_Tp1>& __a, const shared_ptr<_Tp2>& __b)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/shared_ptr.h:333:5: note:
candidate template ignored: could not match
'shared_ptr<type-parameter-0-0>' against 'bool'
operator==(const shared_ptr<_Tp>& __a, nullptr_t)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/shared_ptr.h:338:5: note:
candidate template ignored: could not match
'shared_ptr<type-parameter-0-0>' against 'std::future_status'
operator==(nullptr_t, const shared_ptr<_Tp>& __b)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/basic_string.h:2427:5: note:
candidate template ignored: could not match
'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>'
against 'bool'
operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/basic_string.h:2434:5: note:
candidate template ignored: could not match
'basic_string<type-parameter-0-0, char_traits<type-parameter-0-0>,
allocator<type-parameter-0-0> >' against 'bool'
operator==(const basic_string<_CharT>& __lhs,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/basic_string.h:2448:5: note:
candidate template ignored: could not match 'const _CharT *' against
'bool'
operator==(const _CharT* __lhs,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/basic_string.h:2460:5: note:
candidate template ignored: could not match
'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>'
against 'bool'
operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_vector.h:1273:5: note:
candidate template ignored: could not match 'vector<type-parameter-0-0,
type-parameter-0-1>' against 'bool'
operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/random.h:1730:5: note:
candidate template ignored: could not match
'uniform_int_distribution<type-parameter-0-0>' against 'bool'
operator==(const std::uniform_int_distribution<_IntType>& __d1,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/random.h:1911:5: note:
candidate template ignored: could not match
'uniform_real_distribution<type-parameter-0-0>' against 'bool'
operator==(const std::uniform_real_distribution<_IntType>& __d1,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/random.h:2803:5: note:
candidate template ignored: could not match
'cauchy_distribution<type-parameter-0-0>' against 'bool'
operator==(const std::cauchy_distribution<_RealType>& __d1,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/random.h:3720:5: note:
candidate template ignored: could not match
'geometric_distribution<type-parameter-0-0>' against 'bool'
operator==(const std::geometric_distribution<_IntType>& __d1,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/random.h:4264:5: note:
candidate template ignored: could not match
'exponential_distribution<type-parameter-0-0>' against 'bool'
operator==(const std::exponential_distribution<_RealType>& __d1,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/random.h:4439:5: note:
candidate template ignored: could not match
'weibull_distribution<type-parameter-0-0>' against 'bool'
operator==(const std::weibull_distribution<_RealType>& __d1,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/random.h:4614:5: note:
candidate template ignored: could not match
'extreme_value_distribution<type-parameter-0-0>' against 'bool'
operator==(const std::extreme_value_distribution<_RealType>& __d1,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/random.h:4846:5: note:
candidate template ignored: could not match
'discrete_distribution<type-parameter-0-0>' against 'bool'
operator==(const std::discrete_distribution<_IntType>& __d1,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/random.h:5085:5: note:
candidate template ignored: could not match
'piecewise_constant_distribution<type-parameter-0-0>' against 'bool'
operator==(const std::piecewise_constant_distribution<_RealType>& __d1,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/random.h:5327:5: note:
candidate template ignored: could not match
'piecewise_linear_distribution<type-parameter-0-0>' against 'bool'
operator==(const std::piecewise_linear_distribution<_RealType>& __d1,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/random.tcc:1686:5: note:
candidate template ignored: could not match
'normal_distribution<type-parameter-0-0>' against 'bool'
operator==(const std::normal_distribution<_RealType>& __d1,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:246:5: note:
candidate template ignored: could not match
'_Deque_iterator<type-parameter-0-0, type-parameter-0-1,
type-parameter-0-2>' against 'bool'
operator==(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:253:5: note:
candidate template ignored: could not match
'_Deque_iterator<type-parameter-0-0, type-parameter-0-1,
type-parameter-0-2>' against 'bool'
operator==(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:1917:5: note:
candidate template ignored: could not match 'deque<type-parameter-0-0,
type-parameter-0-1>' against 'bool'
operator==(const deque<_Tp, _Alloc>& __x,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_queue.h:103:9: note:
candidate template ignored: could not match 'queue<type-parameter-0-0,
type-parameter-0-1>' against 'bool'
operator==(const queue<_Tp1, _Seq1>&, const queue<_Tp1, _Seq1>&);
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_list.h:275:5: note:
candidate template ignored: could not match
'_List_iterator<type-parameter-0-0>' against 'bool'
operator==(const _List_iterator<_Val>& __x,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_list.h:1564:5: note:
candidate template ignored: could not match 'list<type-parameter-0-0,
type-parameter-0-1>' against 'bool'
operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_tree.h:309:5: note:
candidate template ignored: could not match
'_Rb_tree_iterator<type-parameter-0-0>' against 'bool'
operator==(const _Rb_tree_iterator<_Val>& __x,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_tree.h:856:5: note:
candidate template ignored: could not match '_Rb_tree<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2, type-parameter-0-3,
type-parameter-0-4>' against 'bool'
operator==(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_map.h:861:9: 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
'bool'
operator==(const map<_K1, _T1, _C1, _A1>&,
^
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_multimap.h:800:5: 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
'bool'
operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
^
src/map/instance_loader.cpp:84:3: warning: conversion from string literal to
'int8 *' (aka 'char *') is deprecated [-Wdeprecated-writable-strings]
"SELECT name, mobid, pos_rot, pos_x, pos_y, pos_z, \
^
src/map/instance_loader.cpp:198:29: warning: using the result of an assignment
as a condition without parentheses [-Wparentheses]
...if (PMob->m_AllowRespawn = PMob->m_SpawnType == SPAWNTYPE_NORMAL)
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/map/instance_loader.cpp:198:29: note: place parentheses around the
assignment to silence this warning
...if (PMob->m_AllowRespawn = PMob->m_SpawnType == SPAWNTYPE_NORMAL)
^
( )
src/map/instance_loader.cpp:198:29: note: use '==' to turn this assignment into
an equality comparison
if (PMob->m_AllowRespawn = PMob->m_SpawnType == ...
^
==
src/map/instance_loader.cpp:224:9: warning: conversion from string literal to
'int8 *' (aka 'char *') is deprecated [-Wdeprecated-writable-strings]
"SELECT npcid, name, pos_rot, pos_x, pos_y, pos_z,\
^
3 warnings and 2 errors generated.
make: *** [dsgame-instance_loader.o] Error 1