Hello,
kgb_arch_posix fails to build under amd64, alpha and ia64 because of the mentioned error. Here' the build log:
g++ kgb_arch_posix_by_slawek.cpp -o kgb
kgb_arch_posix_by_slawek.cpp: In constructor 'Hashtable<T>::Hashtable(U32) [with T = Counter]':
kgb_arch_posix_by_slawek.cpp:1360: instantiated from here
kgb_arch_posix_by_slawek.cpp:1125: error: cast from 'char*' to 'int' loses precision
The error is the same one under the three different architectures.
Logged In: NO
Adding the -m32 flag works.
g++ -m32 -O3 -o kgb_arch kgb_arch_posix.cpp
You get a 32 bit executable, but it works once copied into /usr/local/bin, assuming you did not set your system to disallow 32 bit binaries.
Logged In: YES
user_id=948989
Originator: YES
I've already provided a patch: https://sourceforge.net/tracker/index.php?func=detail&aid=1752177&group_id=162546&atid=824212