aosp_x86-eng构建于AOSP 4.3源代码失败,错误__strlen_chk

时间:2014-04-29 19:45:03

标签: android

我正在尝试在AOSP 4.3源代码上构建x86映像。 遵循以下步骤:

  • source build / envsetup.sh
  • 午餐(选择aosp_x86-eng)
  • make -j4

它给出了以下错误。

bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'
bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'
bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'
bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'

问题:

  1. 在AOSP 4.3中构建x86的步骤是否正确?
  2. 我们如何解决上述错误。

2 个答案:

答案 0 :(得分:1)

我在构建libcurl时解决了这个问题。关键的想法是在标志中设置D_FORTIFY_SOURCE=0以禁用检查,如source code中所述。

答案 1 :(得分:-1)

LOCAL_STATIC_LIBRARIES + = libc