m0nad / Diamorphine

LKM rootkit for Linux Kernels 2.6.x/3.x/4.x/5.x/6.x (x86/x86_64 and ARM64)
Other
1.82k stars 431 forks source link

Issue Encountered During Compilation of Diamorphine Module #41

Closed Nuthon01 closed 5 months ago

Nuthon01 commented 8 months ago

Dear Author,

I hope this message finds you well.

I am writing to report an issue I encountered while attempting to compile your Diamorphine module.

Here is the specific error message:

ERROR: modpost: "kallsyms_lookup_name" [/root/Diamorphine/Diamorphine.ko] undefined! make[2]: [../scripts/Makefile.modpost:186: /root/Diamorphine/Module.symvers] Error 1 make[1]: [../Makefile:2009: modpost] Error 2 make[1]: Leaving directory '/root/android-kernel/6.1/common/out' make: *** [Makefile:10: all] Error 2 It seems to be related to an undefined symbol named "kallsyms_lookup_name". I am using the LLVM compiler suite (including clang, ld.lld, llvm-objcopy, etc.) and have specified the ARCH=arm64 parameter during compilation.

I have ensured that my Android kernel source code is located in the '/root/android-kernel/6.1/common/out' directory, and the Diamorphine source code is in the '/root/Diamorphine' directory.

Could you please provide some guidance to help me resolve this compilation issue? I am looking forward to successfully compiling and running your module.

Thank you for your assistance!

Best regards, [Hualanxi]