Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
janedoe-lab opened this issue Oct 10, 2023 · 2 comments

Comments

@janedoe-lab
Copy link

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.

@s1lvershad0w
Copy link

Came across the same error on Kali as well. Thanks for the tip. Essentially add WINBASEAPI on line 21721 within AceLdr-main/src/native.h

@bananabr
Copy link

bananabr commented Jun 4, 2024

Thanks for the tip @s1lvershad0w. #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants