__system_property_get arm64 Link Error

Source: Internet
Author: User

Undefined reference to ' __system_property_get '

This series of functions is defined in the arm64 header file, but is not found in the libc.so.
Header:sys/system_properties.h

__system_property_get__system_property_set__system_property_find__system_property_read__system_property_find_nth__system_property_foreach

Compile a library of 64-bit arm platform when reported a such link error, __system_property_get is the Android NDK provides a function, 32 bits is always OK, compile 64 when the error is reported, Readelf looking at the 64-bit libc.so did not find this symbol. So Google found:
Http://stackoverflow.com/questions/28413530/api-to-get-android-system-properties-is-removed-in-arm64-platforms

Also found this bug in Google's issues
https://code.google.com/p/android/issues/detail?id=143627

Workaround:
Find an Android 5.1 device or virtual machine on an arm platform and take the/system/lib64/libc.so out and replace the repository inside the NDK.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

__system_property_get arm64 Link Error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.