cundong / cundong/SmartAppUpdates

生成so包得时候怎么老是报这个错误

Open
#8 9 comments 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

/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:264: error: undefined reference to 'errx'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:272: error: undefined reference to 'err'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:275: error: undefined reference to 'err'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:287: error: undefined reference to 'err'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:290: error: undefined reference to 'err'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:316: error: undefined reference to 'BZ2_bzWriteOpen'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:317: error: undefined reference to 'errx'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:401: error: undefined reference to 'BZ2_bzWrite'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:403: error: undefined reference to 'errx'

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 by inspecting jni/com_cundong_utils_DiffUtils.c around lines 264-403 and the native build/link configuration used to generate the .so. Check how the err, errx, BZ2_bzWriteOpen, and BZ2_bzWrite symbols are provided, then reproduce the build. Done means the shared library is generated without these undefined-reference errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
build-system, 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.