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

I got undefined reference to 'atexit' when build arm? #43

Open
takboo opened this issue Jul 13, 2016 · 4 comments
Open

I got undefined reference to 'atexit' when build arm? #43

takboo opened this issue Jul 13, 2016 · 4 comments

Comments

@takboo
Copy link

takboo commented Jul 13, 2016

hello, when i build Superuser as instraction, i got this error:

ndk-build
[x86] Install                :su => libs/x86/su
[armeabi] Executable  :su
jni/su/su.c:1001: error: undefined reference to 'atexit'
external/jemalloc/src/jemalloc.c:707: error: undefined reference to 'atexit'
collect2: error: ld returned 1 exit status
make: *** [obj/local/armeabi/su] Error 1

I look it on google,stack overflow,etc. but i got noting useful,please help me.

@wangyunpeng1992
Copy link

Maybe your ndk version is error ,you can build it in R 10 ,but i do not find placehold in the lib.

@phhusson
Copy link
Owner

placeholder is in stableL branch

@ehem
Copy link

ehem commented Aug 2, 2016

I'm seeing this with the 12b NDK. I'd prefer to go with the 12b NDK due to aarch64 (ARM-64) support.

With the later versions of the NDK it is defaulting to using clang instead of GCC. They've also moved their issue tracker onto GitHub (https://github.com/android-ndk/ndk/issues)

Speaking of which, you're certain hooking into app_process32 will work on 64-bit devices?

@ehem
Copy link

ehem commented Aug 3, 2016

Bit more searching and I found: android/ndk#132

Apparently static builds got broken in r12 of the NDK, either we have to wait for r13 or find the r11 NDK for building.

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

4 participants