【问题标题】:aosp_x86-eng build on AOSP 4.3 source code is failing with error __strlen_chk在 AOSP 4.3 源代码上构建的 aosp_x86-eng 失败并出现错误 __strlen_chk
【发布时间】:2014-04-29 19:45:03
【问题描述】:

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

  • 源码构建/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. 我们如何解决上述错误。

【问题讨论】:

    标签: android


    【解决方案1】:

    我在构建 libcurl 时已经解决了。关键思想是在标志中设置D_FORTIFY_SOURCE=0 以禁用检查,如source code 中所述。

    【讨论】:

      【解决方案2】:

      LOCAL_STATIC_LIBRARIES += libc

      【讨论】:

      • edit 解释这意味着什么,以及它如何回答问题。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-04
      相关资源
      最近更新 更多