Giter VIP home page Giter VIP logo

Comments (5)

cernekee avatar cernekee commented on July 19, 2024

referenced by "/data/app/com.example.test-1/lib/arm64/libopenconnect.so"

Doesn't look familiar to me. What app is this? How was the library built?

cannot locate symbol "in6addr_any"

Possibly related: this symbol is an extern in API level 24 (Nougat) and above. If I run make_standalone_toolchain.py from NDK r17b twice, once for API level 18 (JB) and once for API level 28 (Pie), only the API 28 libc.so stub includes this symbol. This leads me to wonder if the toolchain used to build your copy of libopenconnect.so is using an API level that is higher than what the device is actually running. i.e. the library was compiled expecting libc.so to provide this symbol, but libc.so on the device is too old to have it.

Is the device's OS older or newer than Nougat?

from ics-openconnect.

andrew-sharapo avatar andrew-sharapo commented on July 19, 2024

Hi,

Just want to confirm the issue with arm64 version of libopenconnect.so on Android 5 & 6. At the same time, 32-bit lib works fine, so I'm pretty sure it is due to:
CFLAGS_arm64 := -Os -D__ANDROID_API__=26
While for 32 (armeabi) it's 14 in:
Makefile

Is there a reason to have the API = 26 for arm64 and 21 for x86_64?

from ics-openconnect.

cernekee avatar cernekee commented on July 19, 2024

Is there a reason to have the API = 26 for arm64 and 21 for x86_64?

This does look suspicious. make_standalone_toolchain on r17c will take API 21 for both x86_64 and arm64. If I rebuild the ARM64 library with API=21, it compiles and passes a basic smoke test.

The original commit was here. Let's test with 21 for a while and see if anything breaks.

from ics-openconnect.

andrew-sharapo avatar andrew-sharapo commented on July 19, 2024

Hi Kevin,

Testing of arm64 targeted to API=21 build works fine on devices with Android 5 & 6 so far.
Will post another update in a couple of days.

from ics-openconnect.

andrew-sharapo avatar andrew-sharapo commented on July 19, 2024

To follow on the above, targeting arm64 build to API 21 fixes the issue, and it doesn't seem to have any side effects.

from ics-openconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.