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

undefined reference from libz.so and libm.so how to fix it help plz #75

Open
hosseinkhojany opened this issue Mar 18, 2023 · 0 comments

Comments

@hosseinkhojany
Copy link

I want to build openconnect for android arm64 but in the building opeconnect throwing this below errors please if it possible help me

sudo make
[sudo] password for khoujani:
make -C aarch64-linux-android/openconnect
make[1]: Entering directory '/home/khoujani/Documents/openconnect/android/aarch64-linux-android/openconnect'
make all-recursive
make[2]: Entering directory '/home/khoujani/Documents/openconnect/android/aarch64-linux-android/openconnect'
Making all in tests
make[3]: Entering directory '/home/khoujani/Documents/openconnect/android/aarch64-linux-android/openconnect/tests'
CCLD serverhash
/home/khoujani/Documents/openconnect/android/aarch64-linux-android/toolchain/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: warning: libz.so, needed by ../.libs/libopenconnect.so, not found (try using -rpath or -rpath-link)
/home/khoujani/Documents/openconnect/android/aarch64-linux-android/toolchain/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: warning: libm.so, needed by ../.libs/libopenconnect.so, not found (try using -rpath or -rpath-link)
../.libs/libopenconnect.so: undefined reference to inflate' ../.libs/libopenconnect.so: undefined reference to deflate'
../.libs/libopenconnect.so: undefined reference to deflateInit2_' ../.libs/libopenconnect.so: undefined reference to inflateEnd'
../.libs/libopenconnect.so: undefined reference to adler32' ../.libs/libopenconnect.so: undefined reference to deflateBound'
../.libs/libopenconnect.so: undefined reference to deflateEnd' ../.libs/libopenconnect.so: undefined reference to inflateInit2_'
../.libs/libopenconnect.so: undefined reference to `pow@LIBC'
clang90: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [Makefile:878: serverhash] Error 1
make[3]: Leaving directory '/home/khoujani/Documents/openconnect/android/aarch64-linux-android/openconnect/tests'
make[2]: *** [Makefile:1797: all-recursive] Error 1
make[2]: Leaving directory '/home/khoujani/Documents/openconnect/android/aarch64-linux-android/openconnect'
make[1]: *** [Makefile:907: all] Error 2
make[1]: Leaving directory '/home/khoujani/Documents/openconnect/android/aarch64-linux-android/openconnect'
make: *** [Makefile:385: openconnect] Error 2

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

1 participant