Actions
Bug #5629
closedwindivert compile fails on 7.0.0-beta1
Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:
Description
The compile without WinDivert works fine.
CC source-pfring.o CC source-windivert.o source-windivert.c: In function 'WinDivertInitQPCValues': source-windivert.c:218:5: error: implicit declaration of function 'TimeGet' [-Werror=implicit-function-declaration] 218 | TimeGet(&now); | ^~~~~~~ source-windivert.c: In function 'ReceiveWinDivertThreadInit': source-windivert.c:201:35: error: implicit declaration of function 'Win32GetErrorString'; did you mean 'mciGetErrorString'? [-Werror=implicit-function-declaration] 201 | const char *win_err_str = Win32GetErrorString((err_code), NULL); \ | ^~~~~~~~~~~~~~~~~~~ source-windivert.c:201:35: note: in definition of macro 'WinDivertLogError' 201 | const char *win_err_str = Win32GetErrorString((err_code), NULL); \ | ^~~~~~~~~~~~~~~~~~~ source-windivert.c:201:35: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 201 | const char *win_err_str = Win32GetErrorString((err_code), NULL); \ | ^~~~~~~~~~~~~~~~~~~ source-windivert.c:201:35: note: in definition of macro 'WinDivertLogError' 201 | const char *win_err_str = Win32GetErrorString((err_code), NULL); \ | ^~~~~~~~~~~~~~~~~~~ source-windivert.c: In function 'WinDivertCollectFilterDevices': source-windivert.c:589:24: error: implicit declaration of function 'Win32GetAdaptersAddresses' [-Werror=implicit-function-declaration] 589 | DWORD err = (DWORD)Win32GetAdaptersAddresses(&if_info_list); | ^~~~~~~~~~~~~~~~~~~~~~~~~ source-windivert.c: In function 'WinDivertVerdictHelper': source-windivert.c:201:35: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 201 | const char *win_err_str = Win32GetErrorString((err_code), NULL); \ | ^~~~~~~~~~~~~~~~~~~ source-windivert.c:201:35: note: in definition of macro 'WinDivertLogError' 201 | const char *win_err_str = Win32GetErrorString((err_code), NULL); \ | ^~~~~~~~~~~~~~~~~~~ CC stream.o cc1.exe: some warnings being treated as errors make[2]: *** [Makefile:3464: source-windivert.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/home/Administrator/suricata-7.0.0-beta1/src' make[1]: *** [Makefile:2667: all] Error 2 make[1]: Leaving directory '/home/Administrator/suricata-7.0.0-beta1/src' make: *** [Makefile:489: all-recursive] Error 1
Actions