cundong / cundong/SmartAppUpdates

dlopen failed: cannot locate symbol "__fwrite_chk" referenced by 错误

Open
#24 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
2.7k
Forks
820
Avg merge
41m
Merged PRs (30d)
1

Description

AndroidRuntime: java.lang.UnsatisfiedLinkError:
dlopen failed: cannot locate symbol "__fwrite_chk" referenced by "/data/app/com
.android.sign.appstore-1/lib/arm64/libApkPatchLibrary.so "...

如上,使用您的https://github.com/cundong/SmartAppUpdates
github上的库,编译成64位so,。mk如下,

include $(CLEAR_VARS)

LOCAL_MODULE := libApkPatchLibrary
LOCAL_SRC_FILES := com_cundong_utils_PatchUtils.c

APP_PLATFORM := android-16
LOCAL_LDLIBS := -lz -llog

include $(BUILD_SHARED_LIBRARY)

但是使用的时候会直接报错,log是最上方那个,求解答是否有碰到过

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with com_cundong_utils_PatchUtils.c and the Android NDK build configuration shown in the report. Reproduce the arm64 build and the UnsatisfiedLinkError involving __fwrite_chk, then inspect the project’s native-library compatibility assumptions. Done means the arm64 library loads successfully or the supported configuration and limitation are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.