Android ndk 与libcrypto.so相关的ndk生成抛出错误

Android ndk 与libcrypto.so相关的ndk生成抛出错误,android-ndk,libcrypto,Android Ndk,Libcrypto,我不知道从哪里开始,所以如果你还需要什么,请告诉我。谢谢 我正在使用ndk build为我的Android项目构建一个本机组件 $ ndk-build -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTA

我不知道从哪里开始,所以如果你还需要什么,请告诉我。谢谢

我正在使用ndk build为我的Android项目构建一个本机组件

$ ndk-build -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-apple-darwin
当我运行ndk build时,我得到了这个结果,只是错误显示:

/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__strlen_chk'
/Users/me/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__strrchr_chk'
/Users/me/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__strchr_chk'
/Users/me/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__sprintf_chk'
/Users/me/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__strncpy_chk2'
/Users/me/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__strcat_chk'

看起来这个人也有同样的问题,不确定这个帖子是否有帮助:我在android-4.4_r1上遇到了同样的问题。我花了很长时间看同一个网页,但没有任何运气。如果我没记错的话,这是一个与添加到AOSP的新代码安全性相关的问题,或者您无法再链接到Android的openssl库。具体来说,我试图构建一个VPN客户端,该客户端与Android中的openssl相链接。最后,维护人员告诉我,在较新版本的Android中,再也不可能与之链接-如果适用,请参阅此线程: