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

[obj/local/armeabi/objs/AMExtractor/kernel_pfn.o] Error 1 #1

Open
mcanonic opened this issue Apr 22, 2016 · 2 comments
Open

[obj/local/armeabi/objs/AMExtractor/kernel_pfn.o] Error 1 #1

mcanonic opened this issue Apr 22, 2016 · 2 comments

Comments

@mcanonic
Copy link

Hi,
I have created a Nexus4 emulator and set

define CONFIG_NEXUS4

define DEVICE "CONFIG_NEXUS4"

in config.h.

When I try to run the first command I got an error:
[mex@shrek AMExtractor-master]$ /home/mex/prj/cyber/mobiFore/android-ndk-r11c/ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk
[armeabi] Compile thumb : AMExtractor <= main.c
[armeabi] Compile thumb : AMExtractor <= kmem.c
[armeabi] Compile thumb : AMExtractor <= kallsyms.c
[armeabi] Compile thumb : AMExtractor <= kernel_tcp.c
[armeabi] Compile thumb : AMExtractor <= kernel_pfn.c
In file included from ./kernel_pfn.c:1:0:
./kernel_struct.h:30:5: error: unknown type name 'loff_t'
loff_t llseek;
^
/home/mex/prj/cyber/mobiFore/android-ndk-r11c/build/core/build-binary.mk:460: recipe for target 'obj/local/armeabi/objs/AMExtractor/kernel_pfn.o' failed
make: *
* [obj/local/armeabi/objs/AMExtractor/kernel_pfn.o] Error 1

Have you an idea how to fix it, please?
Thanks
Massimo

@dadreamer
Copy link

Add #include <sys/types.h> into kernel_struct.h.

@ir193
Copy link
Owner

ir193 commented Aug 27, 2018

Seems like loff_t is not defined.
There might be mistakes about include path in my code

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