I am trying to run suricata on my napatech card however after configuring when i run make command i get this error at last
source-napatech.c: In function ‘ProgramFlow’:
source-napatech.c:584:30: error: ‘ACTION_DROP’ undeclared (first use in this function)
584 | if (PacketCheckAction(p, ACTION_DROP)) {
| ^~~~~~~~~~~
source-napatech.c:584:30: note: each undeclared identifier is reported only once for each function it appears in
source-napatech.c: In function ‘NapatechReleasePacket’:
source-napatech.c:685:43: error: ‘ACTION_DROP’ undeclared (first use in this function)
685 | if (is_inline && PacketCheckAction(p, ACTION_DROP)) {
| ^~~~~~~~~~~
source-napatech.c: In function ‘RecommendNUMAConfig’:
source-napatech.c:743:9: error: too few arguments to function ‘SCLog’
743 | SCLog(log_level, __FILE__, __FUNCTION__, __LINE__,
| ^~~~~
In file included from decode.h:33,
from source-napatech.c:29:
util-debug.h:214:6: note: declared here
214 | void SCLog(int x, const char *file, const char *func, const int line, const char *module,
| ^~~~~
source-napatech.c:747:18: warning: passing argument 6 of ‘SCLog’ makes pointer from integer without a cast [-Wint-conversion]
747 | (SC_ATOMIC_GET(numa0_count)));
| ^~~~~~~~~~~~~
| |
| uint16_t {aka short unsigned int}
In file included from decode.h:33,
from source-napatech.c:29:
util-debug.h:215:21: note: expected ‘const char *’ but argument is of type ‘uint16_t’ {aka ‘short unsigned int’}
215 | const char *fmt, ...) ATTR_FMT_PRINTF(6, 7);
| ~~~~~~~~~~~~^~~
source-napatech.c:747:17: warning: format not a string literal and no format arguments [-Wformat-security]
747 | (SC_ATOMIC_GET(numa0_count)));
| ^
source-napatech.c:751:45: warning: passing argument 6 of ‘SCLog’ makes pointer from integer without a cast [-Wint-conversion]
751 | " NUMA Node 1: %d ", (SC_ATOMIC_GET(numa1_count)));
| ^~~~~~~~~~~~~
| |
| uint16_t {aka short unsigned int}
In file included from decode.h:33,
from source-napatech.c:29:
util-debug.h:215:21: note: expected ‘const char *’ but argument is of type ‘uint16_t’ {aka ‘short unsigned int’}
215 | const char *fmt, ...) ATTR_FMT_PRINTF(6, 7);
| ~~~~~~~~~~~~^~~
source-napatech.c:751:21: warning: format not a string literal and no format arguments [-Wformat-security]
751 | " NUMA Node 1: %d ", (SC_ATOMIC_GET(numa1_count)));
| ^~~~~~~~~~~~~~~~~~~~~
source-napatech.c:755:45: warning: passing argument 6 of ‘SCLog’ makes pointer from integer without a cast [-Wint-conversion]
755 | " NUMA Node 2: %d ", (SC_ATOMIC_GET(numa2_count)));
| ^~~~~~~~~~~~~
| |
| uint16_t {aka short unsigned int}
In file included from decode.h:33,
from source-napatech.c:29:
util-debug.h:215:21: note: expected ‘const char *’ but argument is of type ‘uint16_t’ {aka ‘short unsigned int’}
215 | const char *fmt, ...) ATTR_FMT_PRINTF(6, 7);
| ~~~~~~~~~~~~^~~
source-napatech.c:755:21: warning: format not a string literal and no format arguments [-Wformat-security]
755 | " NUMA Node 2: %d ", (SC_ATOMIC_GET(numa2_count)));
| ^~~~~~~~~~~~~~~~~~~~~
source-napatech.c:759:45: warning: passing argument 6 of ‘SCLog’ makes pointer from integer without a cast [-Wint-conversion]
759 | " NUMA Node 3: %d ", (SC_ATOMIC_GET(numa3_count)));
| ^~~~~~~~~~~~~
| |
| uint16_t {aka short unsigned int}
In file included from decode.h:33,
from source-napatech.c:29:
util-debug.h:215:21: note: expected ‘const char *’ but argument is of type ‘uint16_t’ {aka ‘short unsigned int’}
215 | const char *fmt, ...) ATTR_FMT_PRINTF(6, 7);
| ~~~~~~~~~~~~^~~
source-napatech.c:759:21: warning: format not a string literal and no format arguments [-Wformat-security]
759 | " NUMA Node 3: %d ", (SC_ATOMIC_GET(numa3_count)));
| ^~~~~~~~~~~~~~~~~~~~~
source-napatech.c: In function ‘NapatechPacketLoop’:
source-napatech.c:849:44: error: implicit declaration of function ‘NapatechGetNumConfiguredStreams’ [-Werror=implicit-function-declaration]
849 | if (SC_ATOMIC_GET(stream_count) == NapatechGetNumConfiguredStreams()) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source-napatech.c:862:43: error: implicit declaration of function ‘NapatechGetNumFirstStream’; did you mean ‘NapatechGetNumAdapters’? [-Werror=implicit-function-declaration]
862 | status = NapatechSetupTraffic(NapatechGetNumFirstStream(),
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| NapatechGetNumAdapters
source-napatech.c:863:21: error: implicit declaration of function ‘NapatechGetNumLastStream’; did you mean ‘NapatechGetNumAdapters’? [-Werror=implicit-function-declaration]
863 | NapatechGetNumLastStream());
| ^~~~~~~~~~~~~~~~~~~~~~~~
| NapatechGetNumAdapters
source-napatech.c:952:23: error: invalid operands to binary + (have ‘SCTime_t’ {aka ‘struct <anonymous>’} and ‘SCTime_t’ {aka ‘struct <anonymous>’})
952 | p->ts += SCTIME_FROM_USECS(
| ^~
source-napatech.c:957:23: error: invalid operands to binary + (have ‘SCTime_t’ {aka ‘struct <anonymous>’} and ‘SCTime_t’ {aka ‘struct <anonymous>’})
957 | p->ts += SCTIME_FROM_USECS(pkt_ts & 0xFFFFFFFF);
| ^~
source-napatech.c:961:23: error: invalid operands to binary + (have ‘SCTime_t’ {aka ‘struct <anonymous>’} and ‘SCTime_t’ {aka ‘struct <anonymous>’})
961 | p->ts += SCTIME_FROM_USECS(
| ^~
source-napatech.c:967:23: error: invalid operands to binary + (have ‘SCTime_t’ {aka ‘struct <anonymous>’} and ‘SCTime_t’ {aka ‘struct <anonymous>’})
967 | p->ts += SCTIME_FROM_USECS(
| ^~
cc1: some warnings being treated as errors
make[2]: *** [Makefile:3485: source-napatech.o] Error 1
make[2]: Leaving directory '/home/administrator/suricata-7.0.0/src'
make[1]: *** [Makefile:2684: all] Error 2
make[1]: Leaving directory '/home/administrator/suricata-7.0.0/src'
make: *** [Makefile:494: all-recursive] Error 1
I am new to this can someone help me