可能的原因是编译时只依赖了对应的头文件,没有将对应的实现编译进so导致,可按如下步骤排查:
按以下步骤排查:
arm64-v8a/lib# file libxxx.so libxxx.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=xxxxxxxxx, not stripped
# nm libxxx.so 0000000000000270 r abitag 000000000000aa78 t add_format_xxx 000000000000ab98 t add_sheet_xxx 000000000000ab1c t add_xf_xxx
# objdump -x libxxx.so | grep NEEDED NEEDED libc.so
# readelf -d libxxx.so Dynamic section at offset 0x15b48 contains 24 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so]