sip_bf_detector.cpp:544:60: error: call of overloaded 'abs(long unsigned int)' is ambiguous
if (((uint64_t) abs(time_actual - user->m_last_action)) > g_free_mem_interval) {
make[3]: Entering directory '/builddir/build/BUILD/nemea-detectors-1.3.0/sip_bf_detector'
CXX sip_bf_detector-sip_bf_detector.o
CC fields.o
sip_bf_detector.cpp:822:24: warning: C++11 requires a space between string literal and macro [-Wc++11-compat]
sscanf(optarg,"%"SCNu64"", &g_alert_threshold);
^
sip_bf_detector.cpp:830:24: warning: C++11 requires a space between string literal and macro [-Wc++11-compat]
sscanf(optarg,"%"SCNu64"", &g_check_mem_interval);
^
sip_bf_detector.cpp:838:24: warning: C++11 requires a space between string literal and macro [-Wc++11-compat]
sscanf(optarg,"%"SCNu64"", &g_free_mem_interval);
^
sip_bf_detector.cpp:846:24: warning: C++11 requires a space between string literal and macro [-Wc++11-compat]
sscanf(optarg,"%"SCNu8"", &g_skip_alerts);
^
sip_bf_detector.cpp: In member function 'bool AttackedServer::free_unused_users(time_t)':
sip_bf_detector.cpp:544:60: error: call of overloaded 'abs(long unsigned int)' is ambiguous
if (((uint64_t) abs(time_actual - user->m_last_action)) > g_free_mem_interval) {
^
In file included from /usr/include/c++/6.1.1/cstdlib:75:0,
from /usr/include/c++/6.1.1/stdlib.h:36,
from /usr/include/libtrap/jansson.h:12,
from /usr/include/libtrap/trap.h:57,
from sip_bf_detector.h:56,
from sip_bf_detector.cpp:44:
/usr/include/stdlib.h:774:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/include/c++/6.1.1/stdlib.h:36:0,
from /usr/include/libtrap/jansson.h:12,
from /usr/include/libtrap/trap.h:57,
from sip_bf_detector.h:56,
from sip_bf_detector.cpp:44:
/usr/include/c++/6.1.1/cstdlib:180:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/6.1.1/cstdlib:172:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
Makefile:407: recipe for target 'sip_bf_detector-sip_bf_detector.o' failed
make[3]: Leaving directory '/builddir/build/BUILD/nemea-detectors-1.3.0/sip_bf_detector'
make[3]: *** [sip_bf_detector-sip_bf_detector.o] Error 1
make[2]: *** [all] Error 2
Makefile:262: recipe for target 'all' failed
make[2]: Leaving directory '/builddir/build/BUILD/nemea-detectors-1.3.0/sip_bf_detector'
Makefile:346: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/nemea-detectors-1.3.0'
Makefile:273: recipe for target 'all' failed
make: *** [all] Error 2