centos 5.3 64bit compile ryzom client error,help

Added by ankye about 5 years ago

when i compile
Ryzom Client with CMake on GNU/Linux

[root@localhost build]# cmake DCPACK_PACKAGE_CONTACT:STRING="" ..
-
DEBUG size_t is 8
-- DEBUG off_t is 8
-- Configuring done
-- Generating done
-- Build files have been written to: /root/code/ryzom/build

[root@localhost build]# make
[ 13%] Built target game_share
[ 17%] Built target client_sheets
[ 18%] Built target seven_zip
[ 18%] Building CXX object client/src/CMakeFiles/client.dir/fx_manager.cpp.o
/root/code/ryzom/common/src/game_share/utils.h:378: warning: ‘class ICallStackEntry’ has virtual functions but non-virtual destructor
/root/code/ryzom/common/src/game_share/time_weather_season/static_light_cycle.h:32: warning: ‘class CStaticLightCycle’ has virtual functions but non-virtual destructor
/root/code/ryzom/client/src/client_cfg.h:50: warning: ‘struct CClientConfig’ has virtual functions but non-virtual destructor
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ext/hashtable.h: In member function ‘size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&, size_t) const [with _Val = std::pair<const long long int, CFXManager::CDeferredFX>, _Key = long long int, _HashFcn = __gnu_cxx::hash<long long int>, _ExtractKey = std::_Select1st<std::pair<const long long int, CFXManager::CDeferredFX> >, _EqualKey = std::equal_to<long long int>, _Alloc = std::allocator<CFXManager::CDeferredFX>]’:
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ext/hashtable.h:588: instantiated from ‘size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&) const [with _Val = std::pair<const long long int, CFXManager::CDeferredFX>, _Key = long long int, _HashFcn = __gnu_cxx::hash<long long int>, _ExtractKey = std::_Select1st<std::pair<const long long int, CFXManager::CDeferredFX> >, _EqualKey = std::equal_to<long long int>, _Alloc = std::allocator<CFXManager::CDeferredFX>]’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ext/hashtable.h:592: instantiated from ‘size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num(const _Val&) const [with _Val = std::pair<const long long int, CFXManager::CDeferredFX>, _Key = long long int, _HashFcn = __gnu_cxx::hash<long long int>, _ExtractKey = std::_Select1st<std::pair<const long long int, CFXManager::CDeferredFX> >, _EqualKey = std::equal_to<long long int>, _Alloc = std::allocator<CFXManager::CDeferredFX>]’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ext/hashtable.h:913: instantiated from ‘void __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::erase(const __gnu_cxx::_Hashtable_iterator<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>&) [with _Val = std::pair<const long long int, CFXManager::CDeferredFX>, _Key = long long int, _HashFcn = __gnu_cxx::hash<long long int>, _ExtractKey = std::_Select1st<std::pair<const long long int, CFXManager::CDeferredFX> >, _EqualKey = std::equal_to<long long int>, _Alloc = std::allocator<CFXManager::CDeferredFX>]’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ext/hash_map:481: instantiated from ‘void __gnu_cxx::hash_multimap<_Key, _Tp, _HashFcn, _EqualKey, _Alloc>::erase(typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFcn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::iterator) [with _Key = long long int, _Tp = CFXManager::CDeferredFX, _HashFcn = __gnu_cxx::hash<long long int>, _EqualKey = std::equal_to<long long int>, _Alloc = std::allocator<CFXManager::CDeferredFX>]’
/root/code/ryzom/client/src/fx_manager.cpp:158: instantiated from here
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ext/hashtable.h:596: error: no match for call to ‘(const __gnu_cxx::hash<long long int>) (const long long int&)’
make2: * [client/src/CMakeFiles/client.dir/fx_manager.cpp.o] Error 1
make1:
[client/src/CMakeFiles/client.dir/all] Error 2
make: *
* [all] Error 2

[root@localhost build]# cat /etc/redhat-release
CentOS release 5.3 (Final)

[root@localhost build]# gcc v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable
__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)