Skip to content

‘SetProcessValidCallTargets’ redeclared without dllimport attribute error in Kali #15

@janedoe-lab

Description

@janedoe-lab

Getting multiple errors below when compiling in stock up-to-date Kali Linux:

src/hooks/../native.h:21723:1: error: ‘SetProcessValidCallTargets’ redeclared without dllimport attribute: previous dllimport ignored [-Werror=attributes]

Resolved with copying over extra declaration found in Mingw's include files:

diff --git a/src/native.h b/src/native.h
index d74ce7f..1846046 100644
--- a/src/native.h
+++ b/src/native.h
@@ -21718,6 +21718,7 @@ typedef struct _CFG_CALL_TARGET_INFO {
 } CFG_CALL_TARGET_INFO, *PCFG_CALL_TARGET_INFO;
 #endif
 
+WINBASEAPI
 WINBOOL
 WINAPI
 SetProcessValidCallTargets(

No idea if it is a bug or something with my setup, so sharing just in case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions