0
votes

I am trying to build the x86 image on AOSP 4.3 source code. followed below steps:

  • source build/envsetup.sh
  • lunch ( selected aosp_x86-eng)
  • make -j4

It gives below error.

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'

Question:

  1. It the steps for building x86 in AOSP 4.3 is correct?
  2. How we can fix the above error.
2

2 Answers

1
votes

I've solved it when building libcurl. The key idea is setting D_FORTIFY_SOURCE=0 in flags to disable checks, as mentioned in the source code.

-1
votes

LOCAL_STATIC_LIBRARIES += libc